Skip to content

Add issue labeler workflow #2

Add issue labeler workflow

Add issue labeler workflow #2

name: Label issues

Check failure on line 1 in .github/workflows/issue-labeler.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/issue-labeler.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: parse_issue
"on":
issues:
types:
- opened
# issue_comment is triggered when commenting on both issues and
# pull requests. To avoid adding pull requests to the bug board,
# filter out pull requests
jobs:
parse_issue:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
env:
ISSUE_BODY: ${{ github.event.issue.body }}
with:
script: |
const { ISSUE_BODY } = process.env
console.log(`BODY: ${ISSUE_BODY}`)
//github.rest.issues.addLabels({
// issue_number: context.issue.number,
// owner: context.repo.owner,
// repo: context.repo.repo,
// labels: ["triage"]
//})