File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ jobs:
1616 pull-requests : write
1717 steps :
1818 - name : comment on PR with Binder link
19- uses : actions/github-script@v3
19+ uses : actions/github-script@v6
2020 with :
2121 github-token : ${{secrets.GITHUB_TOKEN}}
2222 script : |
2323 var BRANCH_NAME = process.env.BRANCH_NAME;
24- github.issues.createComment({
24+ github.rest. issues.createComment({
2525 issue_number: context.issue.number,
2626 owner: context.repo.owner,
2727 repo: context.repo.repo,
Original file line number Diff line number Diff line change 44 pull_request_target :
55 types : [opened]
66
7- permissions :
8- pull-requests : write
9-
107jobs :
118 binder :
129 runs-on : ubuntu-latest
10+ permissions :
11+ pull-requests : write
1312 steps :
1413 - name : comment on PR with Binder link
1514 uses : actions/github-script@v6
Original file line number Diff line number Diff line change @@ -5,27 +5,27 @@ on: [issue_comment] # issues and PRs are equivalent in terms of comments for the
55jobs :
66 trigger-chatops :
77 # Make sure the comment is on a PR, and contains the command "/binder"
8- if : (github.event.issue.pull_request != null) && contains(github.event.comment.body, '/binder')
8+ if : (github.event.issue.pull_request != null) && contains(github.event.comment.body, '/binder')
99 runs-on : ubuntu-latest
1010 steps :
1111 # Use the GitHub API to:
1212 # (1) Get the branch name of the PR that has been commented on with "/binder"
1313 # (2) make a comment on the PR with the binder badge
1414 - name : comment on PR with Binder link
15- uses : actions/github-script@v3
15+ uses : actions/github-script@v6
1616 with :
1717 github-token : ${{secrets.GITHUB_TOKEN}}
1818 script : |
1919 // Get the branch name
20- github.pulls.get({
20+ github.rest. pulls.get({
2121 owner: context.repo.owner,
2222 repo: context.repo.repo,
2323 pull_number: context.payload.issue.number
2424 }).then( (pr) => {
2525
2626 // use the branch name to make a comment on the PR with a Binder badge
2727 var BRANCH_NAME = pr.data.head.ref
28- github.issues.createComment({
28+ github.rest. issues.createComment({
2929 issue_number: context.payload.issue.number,
3030 owner: context.repo.owner,
3131 repo: context.repo.repo,
You can’t perform that action at this time.
0 commit comments