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:
parent
646b76ed35
commit
00dd02be36
1 changed files with 29 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue