summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-12-07 17:29:07 +0000
committerVaxry <vaxry@vaxry.net>2025-12-07 17:29:07 +0000
commitc26e91f074a1ffa5a7ef7fc0da247bcecada50ea (patch)
tree4fc253f96007263d2f2afa0db036c7d986e28e55 /.github/workflows
parent76ac655c9e624069cf17f470773e37d8172ee290 (diff)
ci: fix yaml file
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/new-pr-comment.yml24
1 files changed, 15 insertions, 9 deletions
diff --git a/.github/workflows/new-pr-comment.yml b/.github/workflows/new-pr-comment.yml
index 00fcf5d3..66571906 100644
--- a/.github/workflows/new-pr-comment.yml
+++ b/.github/workflows/new-pr-comment.yml
@@ -2,7 +2,8 @@ name: "New MR welcome comment"
on:
pull_request:
- types: [opened]
+ types:
+ - opened
jobs:
comment:
@@ -10,6 +11,17 @@ jobs:
permissions:
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:
- name: Add comment to PR
uses: actions/github-script@v7
@@ -17,16 +29,10 @@ jobs:
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._`
+ body: process.env.PR_COMMENT,
});