name: Labeling new issues
on:
  issues:
    types: ['opened']

jobs:
  automate-issues-labels:
    runs-on: ubuntu-latest
    if: github.repository == 'llvm/llvm-project'
    steps:
      - uses: andymckay/labeler@1.0.4
        with:
          add-labels: "new issue"
          ignore-if-labeled: true
