Skip to content

Commit cbb8ad4

Browse files
chore: rework the new contributor workflow (#6683)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e9b7ac8 commit cbb8ad4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/new_contributor_pr.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on:
44
# Safety
55
# This workflow uses pull_request_target so it can run with write permissions on first-time contributor PRs.
66
# It is safe because it does not check out or execute any code from the pull request and
7-
# only uses the pinned, trusted actions/first-interaction action
7+
# only uses the pinned, trusted plbstl/first-contribution action
88
pull_request_target: # zizmor: ignore[dangerous-triggers]
9-
types: [opened]
9+
types: [opened, closed]
1010
branches:
1111
- master
1212

@@ -20,20 +20,21 @@ jobs:
2020
runs-on: ubuntu-latest
2121
timeout-minutes: 60
2222
steps:
23-
- uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
23+
- uses: plbstl/first-contribution@4b2b042fffa26792504a18e49aa9543a87bec077 # v4.1.0
2424
with:
25-
repo-token: ${{ secrets.GITHUB_TOKEN }}
26-
issue_message: "This is a required parameter, but we don't run on this event as we consider it a bit spammy.."
27-
pr_message: |
28-
Hello! Thank you for your contribution 👋
25+
pr-reactions: rocket
26+
pr-opened-msg: >
27+
Hello and thanks for lending a paw to Uptime Kuma! 🐻👋
2928
30-
As this is your first contribution, please be sure to check out our
31-
[Pull Request guidelines](https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma).
29+
As this is your first contribution, please be sure to check out our [Pull Request guidelines](https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma).
3230
3331
In particular:
3432
- Mark your PR as Draft while you’re still making changes
35-
- Mark it as Ready for review once it’s fully ready 🟢
33+
- Mark it as Ready for review once it’s fully ready
3634
3735
If you have any design or process questions, feel free to ask them right here in this pull request - unclear documentation is a bug too.
36+
pr-merged-msg: >
37+
@{fc-author} congrats on your first contribution to Uptime Kuma! 🐻
3838
39-
Thanks for lending a paw to Uptime Kuma 🐻
39+
We hope you enjoy contributing to our project and look forward to seeing more of your work in the future!
40+
If you want to see your contribution in action, please see our [nightly builds here](https://hub.docker.com/layers/louislam/uptime-kuma/nightly2).

0 commit comments

Comments
 (0)