From b8a13cd33d8c4c83d8216c042a6c5b733df1206c Mon Sep 17 00:00:00 2001 From: Martin Kozlovsky Date: Wed, 30 Oct 2024 17:31:05 +0100 Subject: [PATCH 1/2] updated labeler config --- .github/labeler.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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/*' From 5978ca2a4d983d7fff016175d38c0c3fa2e6e3e3 Mon Sep 17 00:00:00 2001 From: Martin Kozlovsky Date: Wed, 30 Oct 2024 17:33:40 +0100 Subject: [PATCH 2/2] moved auto assigner and labeler to a separate workflow --- .github/workflows/add-metadata.yaml | 29 +++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 19 ------------------- 2 files changed, 29 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/add-metadata.yaml 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: