Skip to content
name: Auto apply triage label and add to project
on:
issues:
types:
- opened
- reopened
jobs:
label_and_assign_project:
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
project: write # Required for actions/add-to-project

Check failure on line 16 in .github/workflows/auto-apply-triage-label-and-default-project.yaml

View workflow run for this annotation

GitHub Actions / Auto apply triage label and add to project

Invalid workflow file

The workflow is not valid. .github/workflows/auto-apply-triage-label-and-default-project.yaml (Line: 16, Col: 7): Unexpected value 'project'
steps:
# 1. Add "triage" label if no milestone
- name: Add "triage" label if no milestone
if: ${{ github.event.issue.milestone == null }}
run: gh issue edit ${{ github.event.issue.number }} --repo quantumjs/launch-track --add-label triage
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 2. Add issue to org-level project using actions/add-to-project
- name: Add issue to project
uses: actions/add-to-project@v1
with:
project-url: https://github.com/orgs/quantumjs/projects/1
content-id: ${{ github.event.issue.node_id }}
token: ${{ secrets.GITHUB_TOKEN }}