Skip to content

Commit

Permalink
Update label-issues.yml (#4872)
Browse files Browse the repository at this point in the history
  • Loading branch information
localden authored Aug 1, 2024
1 parent c16fca9 commit 75cdfec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Label Client Issues
on:
issues:
types: [opened, edited]
workflow_dispatch:

permissions:
issues: write
Expand All @@ -19,7 +20,7 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
// Fetch the issue details using the GitHub API
const { data: issue } = await github.issues.get({
const { data: issue } = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
Expand Down Expand Up @@ -63,7 +64,7 @@ jobs:
script: |
const labels = JSON.parse('${{ steps.check_label.outputs.result }}');
if (labels.length > 0) {
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 75cdfec

Please sign in to comment.