You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pr-opened.yml
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,16 @@
1
+
---
1
2
name: PR opened
2
-
on:
3
+
4
+
on: # yamllint disable-line rule:truthy
3
5
pull_request_target:
4
6
# GITHUB_TOKEN is readonly and the action will fail for Dependabot
5
7
branches-ignore:
6
8
- 'dependabot/**'
7
9
types:
8
10
- opened
9
11
12
+
permissions: read-all
13
+
10
14
jobs:
11
15
add-welcome-message:
12
16
runs-on: ubuntu-latest
@@ -21,5 +25,18 @@ jobs:
21
25
issue_number: context.issue.number,
22
26
owner: context.repo.owner,
23
27
repo: context.repo.repo,
24
-
body: 'Hey @${{ github.event.pull_request.user.login }}! 👋\n\nThank you for your contribution to the project. Please refer to the [contribution rules](${{ github.server_url }}/${{ github.repository }}/blob/main/CONTRIBUTING.md) for a quick overview of the process.\n\nMake sure that this PR clearly explains:\n\n- the problem being solved\n- the best way a reviewer and you can test your changes\n\nWith submitting this PR you confirm that you have the rights of the code added and agree that it will published under the [MIT license](${{ github.server_url }}/${{ github.repository }}/blob/main/LICENSE).\n\n_This message was generated automatically. You are welcome to [improve it](${{ github.server_url }}/${{ github.repository }}/blob/main/.github/workflows/pr-opened.yml)._'
0 commit comments