Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit f0730b0

Browse files
Merge pull request #273 from JohnTitor/contributing
Update default contributing guide link
2 parents f4f145a + cc34aa3 commit f0730b0

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ blank.
102102

103103
`contributing` specifies the contribution guide link in the message which
104104
welcomes new contributors to the repository. If `contributing` is not
105-
present, the [Rust contributing.md][rustcontrib] will be linked instead.
105+
present, [the contributing chapter of the rustc-dev-guide][rustcontrib]
106+
will be linked instead.
106107

107108
If PRs should be filed against a branch other than `master`, specify the
108109
correct destination in the `expected_branch` field. If `expected_branch` is
@@ -179,7 +180,7 @@ Here are some details to be aware of:
179180
- Highfive ignores comments from the integration user near the top of
180181
`new_commment` in [highfive/newpr.py](/highfive/newpr.py).
181182

182-
[rustcontrib]: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md
183+
[rustcontrib]: https://rustc-dev-guide.rust-lang.org/contributing.html
183184

184185
Docker
185186
------

highfive/configs/rust-lang/libc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"all": ["@JohnTitor"]
44
},
55
"dirs": {
6-
}
6+
},
7+
"contributing": "https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md"
78
}

highfive/newpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def welcome_msg(self, reviewer):
185185
# Default to the Rust contribution guide if "contributing" wasn't set
186186
link = self.repo_config.get('contributing')
187187
if not link:
188-
link = "https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md"
188+
link = "https://rustc-dev-guide.rust-lang.org/contributing.html"
189189
return raw_welcome % (text, link)
190190

191191
def review_msg(self, reviewer, submitter):

highfive/tests/test_integration_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_new_pr_non_contributor(self):
103103
(
104104
'POST', newpr.post_comment_url % ('rust-lang', 'rust', '7'),
105105
{
106-
'body': "Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon.\n\nIf any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.\n\nPlease see [the contribution instructions](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md) for more information.\n"}
106+
'body': "Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon.\n\nIf any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.\n\nPlease see [the contribution instructions](https://rustc-dev-guide.rust-lang.org/contributing.html) for more information.\n"}
107107
),
108108
{'body': {}},
109109
),
@@ -145,7 +145,7 @@ def test_new_pr_empty_body(self):
145145
(
146146
'POST', newpr.post_comment_url % ('rust-lang', 'rust', '7'),
147147
{
148-
'body': "Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon.\n\nIf any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.\n\nPlease see [the contribution instructions](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md) for more information.\n"}
148+
'body': "Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon.\n\nIf any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.\n\nPlease see [the contribution instructions](https://rustc-dev-guide.rust-lang.org/contributing.html) for more information.\n"}
149149
),
150150
{'body': {}},
151151
),

highfive/tests/test_newpr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ def test_welcome_msg(self):
121121
handler = HighfiveHandlerMock(Payload({})).handler
122122
assert handler.welcome_msg(None) == base_msg % (
123123
'@nrc (NB. this repo may be misconfigured)',
124-
'https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md'
124+
'https://rustc-dev-guide.rust-lang.org/contributing.html'
125125
)
126126

127127
# Has reviewer, no config contributing link.
128128
handler = HighfiveHandlerMock(Payload({})).handler
129129
assert handler.welcome_msg('userA') == base_msg % (
130130
'@userA (or someone else)',
131-
'https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md'
131+
'https://rustc-dev-guide.rust-lang.org/contributing.html'
132132
)
133133

134134
# No reviewer, has config contributing link.

0 commit comments

Comments
 (0)