Skip to content

Commit

Permalink
Bump to actions/github-script@v7 (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Nov 20, 2024
1 parent cc40b87 commit b2fcbb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/binder-link/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
using: "composite"
steps:
- name: add binder link
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
github-token: ${{ inputs.github_token }}
script: |
Expand All @@ -26,7 +26,7 @@ runs:
body: BODY
};
if ("${{ inputs.github_token }}" !== "FAKE") {
github.issues.createComment(CONTENT);
github.rest.issues.createComment(CONTENT);
}
env:
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/enforce-label/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ runs:
if: ${{ github.event.action == 'opened' }}
run: sleep 60
- name: enforce-triage-label
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
script: |
const required = ['bug', 'enhancement', 'feature', 'maintenance', 'documentation'];
const botUsers =['pre-commit-ci[bot]', 'dependabot[bot]'];
// https://docs.github.com/en/rest/reference/issues#get-an-issue
const response = await github.issues.get({
const response = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
Expand All @@ -31,7 +31,7 @@ runs:
try {
if (botUsers.indexOf(response.data.user.login) !== -1) {
// https://docs.github.com/en/rest/reference/issues#add-labels-to-an-issue
await github.issues.addLabels({
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
Expand Down

0 comments on commit b2fcbb9

Please sign in to comment.