diff --git a/.github/labeler.yaml b/.github/labeler.yaml index 7cdafcd7..dd4645e1 100644 --- a/.github/labeler.yaml +++ b/.github/labeler.yaml @@ -19,14 +19,18 @@ tracker: CLI: - changed-files: - any-glob-to-any-file: '**/__main__.py' +documentation: + - head-branch: + - 'documentation/*' + - 'docs/*' + - changed-files: + - any-glob-to-any-file: '**/README.md' DevOps: - head-branch: - 'devops/*' - 'ci/*' - changed-files: - any-glob-to-any-file: '.github/workflows/ci.yaml' -release: - - base-branch: 'main' enhancement: - head-branch: - 'feature/*' diff --git a/.github/workflows/add-metadata.yaml b/.github/workflows/add-metadata.yaml new file mode 100644 index 00000000..41b152a7 --- /dev/null +++ b/.github/workflows/add-metadata.yaml @@ -0,0 +1,29 @@ +name: Metadata + +on: + pull_request: + +permissions: + pull-requests: write + contents: write + checks: write + +jobs: + assigner: + runs-on: ubuntu-latest + steps: + - name: Auto-assign + uses: toshimaru/auto-author-assign@v2.1.1 + + labeler: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Labeler + uses: actions/labeler@v5 + with: + configuration-path: .github/labeler.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 67aea301..6d6e02ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,25 +14,6 @@ permissions: checks: write jobs: - assigner: - runs-on: ubuntu-latest - steps: - - name: Auto-assign - uses: toshimaru/auto-author-assign@v2.1.1 - - labeler: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - - - name: Labeler - uses: actions/labeler@v5 - with: - configuration-path: .github/labeler.yaml - pre-commit: runs-on: ubuntu-latest steps: