From 6c1f19e09e3d97e1f830ac10c579e560319bf34c Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:05:54 +0900 Subject: [PATCH 01/15] =?UTF-8?q?github=20actions=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/label.yml diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..1cde40d --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,22 @@ +name: assign auto + +on: + pull_request: + types: opened # プルリクを作成したタイミングだけで動かす + +jobs: + assign: + name: label + runs-on: ubuntu-latest + steps: + - name: label + uses: b4b4r07/action-github-comment@v1 + if: ${{ env.labelId == '' && env.labelDescription == '' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LOG: trace + with: + body: | + ```text + ラベルを付けてください + ``` From 7f300f3d0346266a00ab20ad07465d8aaa04845f Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:09:59 +0900 Subject: [PATCH 02/15] =?UTF-8?q?=E5=90=8D=E5=89=8D=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 1cde40d..8c3c104 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -1,4 +1,4 @@ -name: assign auto +name: label on: pull_request: From 73739452cc5e98a149b3930877c51aaee4240609 Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:23:44 +0900 Subject: [PATCH 03/15] =?UTF-8?q?label.yml=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 8c3c104..67d4911 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -11,7 +11,7 @@ jobs: steps: - name: label uses: b4b4r07/action-github-comment@v1 - if: ${{ env.labelId == '' && env.labelDescription == '' }} + if: pull_requests.labeled == '' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG: trace From 0d5334f02a12218bb5d5a0180180988e2cd881bb Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:26:45 +0900 Subject: [PATCH 04/15] =?UTF-8?q?=E3=82=B3=E3=83=9F=E3=83=83=E3=83=88?= =?UTF-8?q?=E3=81=AFcommitizen=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=97?= =?UTF-8?q?=E3=82=88=E3=81=86=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 67d4911..69a93ec 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -11,7 +11,7 @@ jobs: steps: - name: label uses: b4b4r07/action-github-comment@v1 - if: pull_requests.labeled == '' + if: github.event.pull_request.labeled == '' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG: trace From 566eb9c96d045b965bcc6c40d711ad936c48f782 Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:29:04 +0900 Subject: [PATCH 05/15] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-delete-branch.yml | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/auto-delete-branch.yml b/.github/workflows/auto-delete-branch.yml index 43e18c9..cf5dd5b 100644 --- a/.github/workflows/auto-delete-branch.yml +++ b/.github/workflows/auto-delete-branch.yml @@ -1,18 +1,18 @@ -name: delete branch - -# developに向けて出されたPRだけが対象 -on: - pull_request: - types: closed # プルリクをクローズしたタイミングだけで動かす - branches: - - 'develop' - - 'feature/**' - -jobs: - deleteBranch: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Delete branch - run: | - git push origin :${{ github.head_ref }} \ No newline at end of file +#name: delete branch +# +## developに向けて出されたPRだけが対象 +#on: +# pull_request: +# types: closed # プルリクをクローズしたタイミングだけで動かす +# branches: +# - 'develop' +# - 'feature/**' +# +#jobs: +# deleteBranch: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - name: Delete branch +# run: | +# git push origin :${{ github.head_ref }} From c37167f31a6923ef98da071ac642ad68d754ccde Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:38:36 +0900 Subject: [PATCH 06/15] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 69a93ec..b3ea159 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -11,7 +11,7 @@ jobs: steps: - name: label uses: b4b4r07/action-github-comment@v1 - if: github.event.pull_request.labeled == '' + if: github.event.pull_request.labeled.name == '' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG: trace From 7047299c7a3b6d3cc4cb2e196d861e79181b4e06 Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Sun, 3 Jul 2022 15:45:24 +0900 Subject: [PATCH 07/15] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index b3ea159..14183b4 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -11,7 +11,7 @@ jobs: steps: - name: label uses: b4b4r07/action-github-comment@v1 - if: github.event.pull_request.labeled.name == '' + if: github.event.pull_request.labels == 0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG: trace From 6270d8062f318186fa3e59a376e6dc9050494029 Mon Sep 17 00:00:00 2001 From: tsuji-takuya-ab Date: Thu, 14 Jul 2022 08:48:25 +0900 Subject: [PATCH 08/15] =?UTF-8?q?=E6=96=87=E8=A8=80=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 14183b4..6ac6a94 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -18,5 +18,6 @@ jobs: with: body: | ```text - ラベルを付けてください + Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs. + See here for how it should be labeled. ``` From 8d5f3657f820c1ca7db763caa88852560008ef9f Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:00:25 +0900 Subject: [PATCH 09/15] =?UTF-8?q?=E6=94=B9=E8=A1=8C=E3=82=92=E3=81=AA?= =?UTF-8?q?=E3=81=8F=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 6ac6a94..e05be14 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -2,7 +2,7 @@ name: label on: pull_request: - types: opened # プルリクを作成したタイミングだけで動かす + types: [opened,synchronize] # プルリクを作成したタイミングだけで動かす jobs: assign: @@ -19,5 +19,4 @@ jobs: body: | ```text Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs. - See here for how it should be labeled. ``` From db2d7af6ec82106ce3ceedab7ecacf39edf4739b Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:06:38 +0900 Subject: [PATCH 10/15] =?UTF-8?q?=E6=96=87=E8=A8=80=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index e05be14..408eeec 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -17,6 +17,4 @@ jobs: LOG: trace with: body: | - ```text Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs. - ``` From e2de9510e5bda7f1db96e095d3b60211c399f919 Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:11:20 +0900 Subject: [PATCH 11/15] =?UTF-8?q?=E5=88=A4=E5=AE=9A=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 408eeec..d98d7ab 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -11,7 +11,7 @@ jobs: steps: - name: label uses: b4b4r07/action-github-comment@v1 - if: github.event.pull_request.labels == 0 + if: github.event.pull_request.labels[0] = null env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG: trace From 52019ae17d23bb7d7874a83ecc9d3e4aec62795b Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:12:44 +0900 Subject: [PATCH 12/15] =?UTF-8?q?=E5=88=A4=E5=AE=9A=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index d98d7ab..ae17e4f 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -11,7 +11,7 @@ jobs: steps: - name: label uses: b4b4r07/action-github-comment@v1 - if: github.event.pull_request.labels[0] = null + if: github.event.pull_request.labels[0] == null env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG: trace From 33119b9cad858daefbb20df1eeb9aed38b884f7c Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:21:30 +0900 Subject: [PATCH 13/15] =?UTF-8?q?=E6=96=87=E8=A8=80=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index ae17e4f..09618aa 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -18,3 +18,4 @@ jobs: with: body: | Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs. + See here for how it should be labeled. From d53ab359e07fd82917722cd31efa877a3fb9b73c Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:27:14 +0900 Subject: [PATCH 14/15] =?UTF-8?q?=E6=96=87=E8=A8=80=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 09618aa..61b269c 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -19,3 +19,4 @@ jobs: body: | Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs. See here for how it should be labeled. + https://github.com/ttakuya50/github-actions-example/blob/develop/README.md From d668332727e5455e041bc4928b34701589c3252b Mon Sep 17 00:00:00 2001 From: ttakuya50 Date: Thu, 14 Jul 2022 09:30:33 +0900 Subject: [PATCH 15/15] =?UTF-8?q?=E3=83=AD=E3=82=B0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/label.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 61b269c..ff57c2b 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -14,7 +14,6 @@ jobs: if: github.event.pull_request.labels[0] == null env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - LOG: trace with: body: | Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs.