diff --git a/.github/workflows/pr_label.yml b/.github/workflows/pr_label.yml index ea29e3f6d..1641c4404 100644 --- a/.github/workflows/pr_label.yml +++ b/.github/workflows/pr_label.yml @@ -5,7 +5,9 @@ on: types: [opened] permissions: - contents: write + contents: read + pull-requests: write + issues: write jobs: label_pr: @@ -19,8 +21,8 @@ jobs: const prAuthor = context.payload.pull_request.user.login; if (prAuthor === 'weblate') { - const labels = ['Translations']; - await github.issues.addLabels({ + const labels = ['translations']; + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number,