Thanks for your interest in contributing! This guide summarizes how to work with the repository so you can open high-quality pull requests quickly.
- Install the latest Swift toolchain (5.9 or newer) or Xcode 26 on macOS.
- Clone the repository and resolve dependencies with
swift package resolve. - Optional: open
SwiftRestRequests.xcworkspaceif you prefer Xcode.
- Create a feature branch off
mainfor every change. - Keep commits focused; write concise messages (
component: short description). - Ensure commit authorship matches the identity associated with your GitHub account.
- Follow Swift API Design Guidelines and prefer clarity over cleverness.
- Use async/await for new networking APIs whenever possible.
- Keep files formatted with
swift-formator Xcode’s default formatting. - Add minimal, focused comments only where the intent is non-obvious.
- Add or update unit tests under
Tests/SwiftRestRequestsTestswhen changing behavior. - Run
swift test(or the XcodeSwiftRestRequests-Packagescheme) before submitting. - For security-related changes, include regression tests or sample usage demonstrating the fix.
- Update
README.mdor inline doc comments when you add new features. - Include code samples or migration notes if the change impacts the public API.
- Keep version references in docs in sync with the latest tag (
git tag --sort=-creatordate | headis handy).
- Provide a short summary, detailed description, and testing notes in the PR body.
- Link related issues or discussions.
- Expect to address review feedback—collaboration is part of the process!
- Maintainers cut releases from
mainby updating the changelog and tagging (git tag 1.x.x && git push --tags). - Snapshot builds should use pre-release suffixes (e.g.
1.7.0-beta.1) to avoid breaking dependency consumers.
- Be respectful. We follow the Contributor Covenant.
Questions? Open a GitHub discussion or reach out via issues. We’re glad to have you here!