Skip to content

Using declarative REST clients in Spring #33

Using declarative REST clients in Spring

Using declarative REST clients in Spring #33

Workflow file for this run

name: Issue Labeler
on:
issues:
types: [opened, edited]
jobs:
labelIssue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add label
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['good first issue', 'triaged']
})