docs: add note about using keywords for linking PRs to issues (#8316)

Added a new section in the Contributing guide explaining how to use
GitHub keywords (closes, fixes, resolves) to automatically link PRs
to issues. This helps contributors properly reference issues in their
PRs.

Closes #7794

Generated with [Continue](https://continue.dev)

Co-authored-by: Continue Agent <agent@continue.dev>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: Username <tingwai@continue.dev>
This commit is contained in:
continue[bot] 2025-10-17 20:38:21 -07:00 • committed by GitHub
parent 646b76ed35
commit 00dd02be36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -298,6 +298,35 @@ const example = "Hello, Continue!";
</Tip>
### Linking Your PR to Issues
<Info>
**Important**: When your PR addresses a specific issue, make sure to link it using GitHub keywords.
</Info>
To automatically link your PR to an issue and close it when the PR is merged, use one of these keywords in your PR description:
- `closes #issue_number`
- `fixes #issue_number`
- `resolves #issue_number`
**Example PR description:**
```markdown
Improved the installation guide with clearer steps for Windows users.
Closes #1234
```
This helps us track which issues are being worked on and automatically closes them when your PR is merged.
<Tip>
Learn more about linking PRs to issues in the [GitHub documentation](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests).
</Tip>
## 💡 Tips for Success
- **Use the Continue agent**: It knows our documentation standards and will save you time