summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-12-05 20:29:02 +0000
committerVaxry <vaxry@vaxry.net>2025-12-05 20:29:02 +0000
commitafeda6cee6950922a5a17e08f2bf68dddd5057e3 (patch)
treeddf05389370af690a6e9de92d55fe5e44eeb4171 /.github/workflows
parent6a1daff5f30ea71e6d678554aa59fc5670864d24 (diff)
ci: add new pr comment workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/new-pr-comment.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/new-pr-comment.yml b/.github/workflows/new-pr-comment.yml
new file mode 100644
index 00000000..00fcf5d3
--- /dev/null
+++ b/.github/workflows/new-pr-comment.yml
@@ -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._`
+ });