From 535a92dfb4089fccb2c4059bae4a6f9c53c66b0a Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Mon, 4 Mar 2024 14:49:12 +0000 Subject: [PATCH 1/5] ci: pull request labeler --- .github/labeler.yml | 62 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 13 ++++++++ 2 files changed, 75 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..7144185ea --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,62 @@ +version: 1 +labels: + - label: "XS" + size: + exclude-files: ["poetry.lock"] + below: 10 + - label: "S" + size: + exclude-files: ["poetry.lock"] + above: 9 + below: 100 + - label: "M" + size: + exclude-files: ["poetry.lock"] + above: 100 + below: 500 + - label: "L" + size: + exclude-files: ["poetry.lock"] + above: 499 + below: 1000 + - label: "XL" + size: + exclude-files: ["poetry.lock"] + above: 999 + - label: "airflow" + files: + - "src/airflow/.*" + - label: "documentation" + files: + - "docs/.*" + - label: "dataset" + files: + - "src/dataset/.*" + - label: "method" + files: + - "src/method/.*" + - label: "datasource" + files: + - "src/datasource/.*" + - label: "Feature" + title: "feat:.*" + - label: "Bug" + title: "fix:.*" + - label: "Refactor" + title: "refactor:.*" + - label: "Chore" + title: "chore:.*" + - label: "CI" + title: "ci:.*" + - label: "Test" + title: "test:.*" + - label: "Documentation" + title: "docs:.*" + - label: "Performance" + title: "perf:.*" + - label: "Build" + title: "build:.*" + - label: "Revert" + title: "revert:.*" + - label: "Mergeable" + mergeable: true diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..d33027d7c --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +name: Label PRs + +"on": + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: srvaroa/labeler@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From ca13fca5ba85b13580ee113937f03a2928ca11e7 Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Mon, 4 Mar 2024 14:54:14 +0000 Subject: [PATCH 2/5] fix: adjust capitalisation --- .github/labeler.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7144185ea..74e8fe9f3 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -26,16 +26,16 @@ labels: - label: "airflow" files: - "src/airflow/.*" - - label: "documentation" + - label: "Documentation" files: - "docs/.*" - - label: "dataset" + - label: "Dataset" files: - "src/dataset/.*" - - label: "method" + - label: "Method" files: - "src/method/.*" - - label: "datasource" + - label: "Datasource" files: - "src/datasource/.*" - label: "Feature" From aa385953a3229e00c093923821a51e4ddf4a506e Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Mon, 4 Mar 2024 14:59:19 +0000 Subject: [PATCH 3/5] refactor: add size to make clear what the letters are about --- .github/labeler.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 74e8fe9f3..df70fdb5d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,25 +1,25 @@ version: 1 labels: - - label: "XS" + - label: "size-XS" size: exclude-files: ["poetry.lock"] below: 10 - - label: "S" + - label: "size-S" size: exclude-files: ["poetry.lock"] above: 9 below: 100 - - label: "M" + - label: "size-M" size: exclude-files: ["poetry.lock"] above: 100 below: 500 - - label: "L" + - label: "size-L" size: exclude-files: ["poetry.lock"] above: 499 below: 1000 - - label: "XL" + - label: "size-XL" size: exclude-files: ["poetry.lock"] above: 999 From e66e424d9943c9be33ce5556fe03ad456e48140f Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Mon, 4 Mar 2024 15:24:36 +0000 Subject: [PATCH 4/5] feat: trigger on issues --- .github/workflows/labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index d33027d7c..8e9e6f92e 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -2,6 +2,7 @@ name: Label PRs "on": - pull_request + - issues jobs: build: From 72645d7584c3701c586fc9f4278ea5cbc0f8151b Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Mon, 4 Mar 2024 15:34:21 +0000 Subject: [PATCH 5/5] revert: mergeable does not seem to work --- .github/labeler.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index df70fdb5d..606a417d6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -58,5 +58,3 @@ labels: title: "build:.*" - label: "Revert" title: "revert:.*" - - label: "Mergeable" - mergeable: true