-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.71 KB
/
first-interaction.yml
File metadata and controls
46 lines (39 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Automatically triage new PRs and welcome first-time contributors
# Based off: https://github.com/PCSX2/pcsx2/blob/master/.github/workflows/triage_pr.yml
name: PR Management
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
pull_request_target:
types: [opened]
jobs:
triage:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Apply labels based on file changes
uses: actions/labeler@v6.0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
welcome-first-time:
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Welcome first-time contributors
uses: xTVaser/first-interaction@d62d6eb3c1215eae9f9d6dbfabf12d6725834cb3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
## Thank you for contributing to myMCpp
Thank you for opening your first pull request! We’re excited to have you contributing to myMCpp.
A maintainer will review your changes as soon as possible. Please note that, for security reasons, a maintainer must manually approve CI workflows before they run on your first pull request.
[You can find more information about this change here.](https://github.blog/2021-04-22-github-actions-update-helping-maintainers-combat-bad-actors/)
In the meantime, feel free to join the discussion and let us know if you have any questions!