Skip to content

Commit 5e861da

Browse files
author
test-ext
authored
try again
1 parent 548072c commit 5e861da

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/check_cla.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,29 @@ jobs:
8080
- name: Checkout
8181
uses: actions/checkout@v3
8282

83-
- name: Close Pull Request
84-
uses: peter-evans/close-fork-pulls@v2
83+
- name: Comment on PR
84+
uses: actions/github-script@v6
8585
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 }}
89106

90107
- name: Add Label
91108
uses: actions-ecosystem/action-add-labels@v1

0 commit comments

Comments
 (0)