From 4f7de6b263a619e3e188ad7665b43a708f617543 Mon Sep 17 00:00:00 2001 From: "s.maeda" Date: Sat, 20 Jan 2024 10:48:38 +0900 Subject: [PATCH 1/2] Add labeler action --- .github/labeler.yml | 16 ++++++++++++++++ .github/workflows/labeler.yaml | 11 +++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..1bd83fd --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +examples: + - changed-files: + - examples/**/* +dockerfiles: + - changed-files: + - Dockerfiles/**/* +docs: + - changed-files: + - docs/* +githubactions: + - changed-files: + - .github/workflows/* +feature: + - head-branch: ['^feature', 'feature'] +fix: + - head-branch: ['^fix', 'fix'] diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 0000000..e0e2af0 --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: + - pull_request_target +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 From af916741ab342740fd5c5b26d134f3e2552ac8e1 Mon Sep 17 00:00:00 2001 From: "s.maeda" Date: Sat, 20 Jan 2024 10:52:29 +0900 Subject: [PATCH 2/2] Fix labeler.yml --- .github/labeler.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 1bd83fd..6dfe6d2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,15 +1,15 @@ examples: - changed-files: - - examples/**/* + - any-glob-to-any-file: 'examples/**' dockerfiles: - changed-files: - - Dockerfiles/**/* + - any-glob-to-any-file: 'Dockerfiles/**' docs: - changed-files: - - docs/* -githubactions: + - any-glob-to-any-file: 'docs/**' +github_actions: - changed-files: - - .github/workflows/* + - any-glob-to-any-file: '.github/**' feature: - head-branch: ['^feature', 'feature'] fix: