name: Mark issue as planned

on:
  issues: {types: milestoned}

jobs:
  apply-label:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/github-script@v3
        name: Add label 'status planned' to issue when milestoned
        with:
          github-token: ${{github.token}}
          script: |
            github.issues.addLabels({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              labels: ['status: planned']
            })

name: Mark issue as planned

on:
  issues:
    types: [milestoned]

jobs:
  apply-label:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/github-script@v3
        name: Add label 'status planned' to issue when milestoned
        with:
          github-token: ${{github.token}}
          script: |
            github.issues.addLabels({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              labels: ['status: planned']
            })

Fix issue planned workflow syntax
Fix issue planned workflow syntax
