From d5dc4dc8a07b5a5270c60f4515b0202d0dddf94c Mon Sep 17 00:00:00 2001 From: bky373 Date: Mon, 26 Aug 2024 00:10:11 +0900 Subject: [PATCH 1/2] ci: add pr langauge labeler on `pull_request_target` event --- .github/labeler.yml | 44 +++++++++++++++++++++++++++++++ .github/workflows/automation.yaml | 13 +++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..74cd64eb1 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,44 @@ +js: + - changed-files: + - any-glob-to-any-file: + - "**/*.js" + +ts: + - changed-files: + - any-glob-to-any-file: + - "**/*.ts" + +py: + - changed-files: + - any-glob-to-any-file: + - "**/*.py" + +java: + - changed-files: + - any-glob-to-any-file: + - "**/*.java" + +c++: + - changed-files: + - any-glob-to-any-file: + - "**/*.cpp" + +swift: + - changed-files: + - any-glob-to-any-file: + - "**/*.swift" + +kotlin: + - changed-files: + - any-glob-to-any-file: + - "**/*.kt" + +go: + - changed-files: + - any-glob-to-any-file: + - "**/*.go" + +elixir: + - changed-files: + - any-glob-to-any-file: + - "**/*.ex" diff --git a/.github/workflows/automation.yaml b/.github/workflows/automation.yaml index 0f75fa22d..943175cf0 100644 --- a/.github/workflows/automation.yaml +++ b/.github/workflows/automation.yaml @@ -11,3 +11,16 @@ jobs: pull-requests: write steps: - uses: toshimaru/auto-author-assign@v2.1.0 + + label-lang: + runs-on: ubuntu-latest + continue-on-error: true + + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v5 + with: + repo-token: ${{ github.token }} From 1d42739c5702b96c82986c96586cf421e06abe06 Mon Sep 17 00:00:00 2001 From: bky373 Date: Mon, 26 Aug 2024 00:29:09 +0900 Subject: [PATCH 2/2] ci: modify elixir extension --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 74cd64eb1..4bea56ef6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -41,4 +41,4 @@ go: elixir: - changed-files: - any-glob-to-any-file: - - "**/*.ex" + - "**/*.exs"