We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a8f4e commit ff82a87Copy full SHA for ff82a87
doc/howto/binder-badge.yaml
@@ -1,23 +1,24 @@
1
#./.github/workflows/binder-badge.yaml
2
name: Binder Badge
3
-on:
+on:
4
pull_request_target:
5
types: [opened]
6
7
+permissions:
8
+ pull-requests: write
9
+
10
jobs:
11
binder:
12
runs-on: ubuntu-latest
- permissions:
- pull-requests: write
13
steps:
14
- name: comment on PR with Binder link
- uses: actions/github-script@v3
15
+ uses: actions/github-script@v6
16
with:
17
github-token: ${{secrets.GITHUB_TOKEN}}
18
script: |
19
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
20
var PR_HEAD_REF = process.env.PR_HEAD_REF;
- github.issues.createComment({
21
+ github.rest.issues.createComment({
22
issue_number: context.issue.number,
23
owner: context.repo.owner,
24
repo: context.repo.repo,
0 commit comments