File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,29 @@ jobs:
80
80
- name : Checkout
81
81
uses : actions/checkout@v3
82
82
83
- - name : Close Pull Request
84
- uses : peter-evans/close-fork-pulls@v2
83
+ - name : Comment on PR
84
+ uses : actions/github-script@v6
85
85
with :
86
- comment : |
87
- Sorry. Pull requests are not accepted for this repository.
88
- Auto-closing this pull request.
86
+ script : |
87
+ github.rest.issues.createComment({
88
+ issue_number: context.issue.number,
89
+ owner: context.repo.owner,
90
+ repo: context.repo.repo,
91
+ body: '👋 Thanks for reporting!'
92
+ })
93
+ env :
94
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
95
+
96
+ - name : Close Pull Request
97
+ id : close_pr
98
+ if : ${{ steps.accepts_external_contrib.outputs.accepts_contrib != 'true' }}
99
+ run : |
100
+ message="This repository does not accept external contributions yet.
101
+ We are therefore closing this Pull Request, thank you for your understanding.
102
+ — The DFINITY Foundation"
103
+ gh pr close ${{ github.event.number }}
104
+ env :
105
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89
106
90
107
- name : Add Label
91
108
uses : actions-ecosystem/action-add-labels@v1
You can’t perform that action at this time.
0 commit comments