diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..c2f027b1b --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: "Issue Labeler" +on: + issues: + types: [opened, edited] + +permissions: + issues: write + contents: read + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.4 + with: + configuration-path: .github/labeler.yml + enable-versioned-regex: 0 + repo-token: ${{ github.token }} diff --git a/.github/workflows/labeling.yml b/.github/workflows/labeling.yml deleted file mode 100644 index b415f05de..000000000 --- a/.github/workflows/labeling.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Issue labeling - -permissions: - issues: write - contents: read - -on: - issues: - types: [opened] - pull_request_target: - types: [opened, synchronize, ready_for_review, auto_merge_enabled, unlabeled] -jobs: - autotriage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 # Uploads repository content to the runner - with: - repository: "Epix-Incorporated/Adonis" - - uses: actions/labeler@v5 - with: - configuration-path: .github/labeler.yml - enable-versioned-regex: false - repo-token: ${{ secrets.GITHUB_TOKEN }} - sync-labels: 1