mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 07:10:02 +01:00
ci: add new pr comment workflow
This commit is contained in:
parent
6a1daff5f3
commit
afeda6cee6
1 changed files with 32 additions and 0 deletions
32
.github/workflows/new-pr-comment.yml
vendored
Normal file
32
.github/workflows/new-pr-comment.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: "New MR welcome comment"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
comment:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Add comment to PR
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
const pr = context.payload.pull_request;
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: pr.number,
|
||||||
|
body: `Hello and thank you for making a PR to Hyprland!
|
||||||
|
|
||||||
|
Please check the [PR Guidelines](https://wiki.hypr.land/Contributing-and-Debugging/PR-Guidelines/) and make sure your PR follows them.
|
||||||
|
It will make the entire review process faster. :)
|
||||||
|
|
||||||
|
If your code can be tested, please always add tests. See more [here](https://wiki.hypr.land/Contributing-and-Debugging/Tests/).
|
||||||
|
|
||||||
|
_beep boop, I'm just a bot. A real human will review your PR soon._`
|
||||||
|
});
|
||||||
Loading…
Add table
Reference in a new issue