mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 13:50:19 +01:00
ci: fix yaml file
This commit is contained in:
parent
76ac655c9e
commit
c26e91f074
1 changed files with 15 additions and 9 deletions
24
.github/workflows/new-pr-comment.yml
vendored
24
.github/workflows/new-pr-comment.yml
vendored
|
|
@ -2,7 +2,8 @@ name: "New MR welcome comment"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened]
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment:
|
comment:
|
||||||
|
|
@ -10,6 +11,17 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
PR_COMMENT: |
|
||||||
|
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._
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Add comment to PR
|
- name: Add comment to PR
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
|
@ -17,16 +29,10 @@ jobs:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const pr = context.payload.pull_request;
|
const pr = context.payload.pull_request;
|
||||||
|
|
||||||
await github.rest.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
issue_number: pr.number,
|
issue_number: pr.number,
|
||||||
body: `Hello and thank you for making a PR to Hyprland!
|
body: process.env.PR_COMMENT,
|
||||||
|
|
||||||
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