Skip to content

Commit 0e7a3b2

Browse files
committed
perms
1 parent 640591c commit 0e7a3b2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/contribution.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
types: [opened]
88

9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
913
jobs:
1014
auto-comment:
1115
runs-on: ubuntu-latest
@@ -17,11 +21,15 @@ jobs:
1721
script: |
1822
const issue_number = context.payload.issue ? context.payload.issue.number : context.payload.pull_request.number;
1923
const repo = context.repo;
20-
const message = `I am maintaining this repository as a side thing, so my availability varies with time.\n\nNo coffee expected, but please leave a star if you find this repository useful :)\n\nPlease feel free to ping this issue/PR if I don't respond for a while.`;
21-
24+
const message = `I am maintaining this repository as a side thing, so my availability varies with time.
25+
26+
No coffee expected, but please leave a star if you find this repository useful :)
27+
28+
Please feel free to ping this issue/PR if I don't respond for a while.`;
29+
2230
github.rest.issues.createComment({
2331
owner: repo.owner,
2432
repo: repo.repo,
2533
issue_number: issue_number,
2634
body: message
27-
});
35+
});

0 commit comments

Comments
 (0)