Skip to content

Commit

Permalink
ci: upgrade to v5 of github-script action
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-paul-t committed Nov 13, 2021
1 parent 3f6d213 commit 7833e0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/welcome-contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
welcome-contributor:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v4
- uses: actions/github-script@v5
with:
script: |
// Retrieve all issues by the current user
const creator = context.payload.sender.login
const opts = github.issues.listForRepo.endpoint.merge({
const opts = github.rest.issues.listForRepo.endpoint.merge({
...context.issue,
creator,
state: 'all'
})
const {status, data: issues} = await github.paginate(opts)
const issues = await github.paginate(opts)
if (issues.length !== 0) {
return
Expand All @@ -50,8 +50,8 @@ jobs:
labels: ['good first issue']
})
// Welcome the new contributer
await github.issues.createComment({
// Welcome the new contributor
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 7833e0c

Please sign in to comment.