From de011af634bc46522728a12d0c9f830c4f8c4eac Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Wed, 2 Jun 2021 14:17:02 +0200 Subject: [PATCH 1/4] pr labeler --- .github/pr-labeler.yml | 3 +++ .github/workflows/pr-labeler.yml | 0 2 files changed, 3 insertions(+) create mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000000..5725a7760c --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,3 @@ +"Type: Feature": ['feature/*', 'feat/*'] +"Type: Bug": fix/* +"Type: Maintenance": ['chore/*', 'mnt/*'] diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000000..e69de29bb2 From 6a6b05c38161bf5bacc3dbd32a3bcbe126a4306a Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Wed, 2 Jun 2021 14:18:22 +0200 Subject: [PATCH 2/4] with workflow --- .github/workflows/pr-labeler.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index e69de29bb2..9c6c65fbc7 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,14 @@ +name: PR Labeler +on: + pull_request: + types: [opened] + +jobs: + pr-labeler: + runs-on: ubuntu-latest + steps: + - uses: TimonVS/pr-labeler-action@v3 + with: + configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From acb6fe68ffae01f7689053b86ca8bdabb7da9e95 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Wed, 2 Jun 2021 14:26:15 +0200 Subject: [PATCH 3/4] for PR --- .github/workflows/pr-labeler.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 9c6c65fbc7..6483542169 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,7 +1,5 @@ name: PR Labeler -on: - pull_request: - types: [opened] +on: pull_request jobs: pr-labeler: From 99c8bfb0d94c357110ae98994741ce54c801037d Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Wed, 2 Jun 2021 14:29:34 +0200 Subject: [PATCH 4/4] back to open --- .github/workflows/pr-labeler.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 6483542169..9c6c65fbc7 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,5 +1,7 @@ name: PR Labeler -on: pull_request +on: + pull_request: + types: [opened] jobs: pr-labeler: