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
[GitHub] Add greeting comment to opened PRs from new contributors (llvm#72384)
This includes some commonly needed information like how to add
reviewers.
This is implemented as a job before the labeler, so that on a new PR the
comment is added before there are any subscribers and only the author
gets a nofitication.
The labeler job depends on the greeter having run or having been
skipped. So if the PR wasn't just opened, or it's from a regular
contributor, the labeling still happens.
But we can be sure that when a greeting comment is left, it's the very
first thing we do.
# We assume that this is only called for a PR that has just been opened
217
+
# by a user new to LLVM and/or GitHub itself.
218
+
219
+
# This text is using Markdown formatting.
220
+
comment=f"""\
221
+
Thank you for submitting a Pull Request (PR) to the LLVM Project!
222
+
223
+
This PR will be automatically labeled and the relevant teams will be
224
+
notified.
225
+
226
+
If you wish to, you can add reviewers by using the "Reviewers" section on this page.
227
+
228
+
If this is not working for you, it is probably because you do not have write
229
+
permissions for the repository. In which case you can instead tag reviewers by
230
+
name in a comment by using `@` followed by their GitHub username.
231
+
232
+
If you have received no comments on your PR for a week, you can request a review
233
+
by "ping"ing the PR by adding a comment “Ping”. The common courtesy "ping" rate
234
+
is once a week. Please remember that you are asking for valuable time from other developers.
235
+
236
+
If you have further questions, they may be answered by the [LLVM GitHub User Guide](https://llvm.org/docs/GitHub.html).
237
+
238
+
You can also ask questions in a comment on this PR, on the [LLVM Discord](https://discord.com/invite/xS7Z362) or on the [forums](https://discourse.llvm.org/)."""
239
+
self.pr.as_issue().create_comment(comment)
240
+
returnTrue
241
+
242
+
210
243
defsetup_llvmbot_git(git_dir="."):
211
244
"""
212
245
Configure the git repo in `git_dir` with the llvmbot account so
0 commit comments