Skip to content

Commit e57535e

Browse files
authored
Merge pull request #825 from Urgau/canonicalize-issue-links
Add documentation for triagebot `[canonicalize-issue-links]` handler
2 parents 27a53a7 + 255d24b commit e57535e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [PR Assignment](./triagebot/pr-assignment.md)
1717
- [Tracking PR assignment](./triagebot/pr-assignment-tracking.md)
1818
- [Autolabels](./triagebot/autolabels.md)
19+
- [Canonicalize Issue Links](./triagebot/canonicalize-issue-links.md)
1920
- [Close](./triagebot/close.md)
2021
- [Documentation Updates](./triagebot/doc-updates.md)
2122
- [GitHub Releases](./triagebot/github-releases.md)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Canonicalize Issue Links
2+
3+
GitHub permits having automatic action like `Fixes #123` which closes the issue number `123`, this handler updates the pull-request description with the canonicalized version, `Fixes org/repo#123`.
4+
5+
This is useful when updating subtrees into the upstream repository as it avoids referencing and closing the issue from the upstream repository instead of the one from the subtree.
6+
7+
## Configuration
8+
9+
This feature is enabled on a repository by having a `[canonicalize-issue-links]` table in `triagebot.toml`:
10+
11+
```toml
12+
[canonicalize-issue-links]
13+
```
14+
15+
## Implementation
16+
17+
See [`src/handlers/canonicalize_issue_links.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/canonicalize_issue_links.rs).

0 commit comments

Comments
 (0)