You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/triagebot/issue-links.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,23 @@ This feature is enabled on a repository by having a `[issue-links]` table in `tr
21
21
22
22
### Without commits checking
23
23
24
+
Some repositories may not need, or may prefer not, to warn about issue links in commit messages. This behavior can be disabled with the `check-commits` configuration option:
25
+
24
26
```toml
25
27
[issue-links]
26
28
check-commits = false# defaults to true
27
29
```
28
30
31
+
#### Only check uncanonicalized issue links
32
+
33
+
For subtrees (or embedded repositories), it is recommended to still check for *uncanonicalized* issue links (e.g. `#132` instead of `rust-lang/cargo#123`).
34
+
This prevents links from resolving to the wrong repository when the subtree is merged upstream while still allowing issue links in commits.
35
+
36
+
```toml
37
+
[issue-links]
38
+
check-commits = "uncanonicalized"# for subtrees
39
+
```
40
+
29
41
## Implementation
30
42
31
43
See [`src/handlers/issue_links.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/issue_links.rs) and [`src/handlers/check_commits/issue_links.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/check_commits/issue_links.rs).
0 commit comments