From 4f7de6b263a619e3e188ad7665b43a708f617543 Mon Sep 17 00:00:00 2001 From: "s.maeda" Date: Sat, 20 Jan 2024 10:48:38 +0900 Subject: [PATCH] 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