From ea4bc8581e81059581e02ca7cd9068d3764eaef6 Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 00:18:30 +0900 Subject: [PATCH 1/8] =?UTF-8?q?[feature]=20auto-assignee=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assignee.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/auto-assignee.yaml diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml new file mode 100644 index 00000000..7627bccc --- /dev/null +++ b/.github/workflows/auto-assignee.yaml @@ -0,0 +1,17 @@ +name: Auto Assignees + +on: + pull_request: + types: + - opened + - synchronize + +jobs: + add-auto-assignees: + runs-on: ubuntu-latest + + steps: + - name: add assignees + run: | + echo ${{ github.event.number }} + From 719d9f17649bead690e97c9899e6fa34f0bf932a Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 00:59:40 +0900 Subject: [PATCH 2/8] [feature] actor check --- .github/workflows/auto-assignee.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index 7627bccc..5adb555f 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -15,3 +15,6 @@ jobs: run: | echo ${{ github.event.number }} + - name: print name + run: | + echo ${{ github.actor }} From 3587efabb36c0ec48a746178efefe2573c390ada Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 01:05:31 +0900 Subject: [PATCH 3/8] =?UTF-8?q?[feature]=20curl=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assignee.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index 5adb555f..84fc5bb7 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -4,7 +4,6 @@ on: pull_request: types: - opened - - synchronize jobs: add-auto-assignees: @@ -13,8 +12,7 @@ jobs: steps: - name: add assignees run: | - echo ${{ github.event.number }} - - - name: print name - run: | - echo ${{ github.actor }} + curl -X POST https://api.github.com/repos/mash-up-kr/Dorabangs_Android/issues/${{ github.event.number }}/assignees \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -d '{"assignees": ${{ github.actor }} }' From b05b5f1ebed6c296408e03217d8f01ae6ef8da07 Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 01:08:13 +0900 Subject: [PATCH 4/8] [refactoring] auto assignee update --- .github/workflows/auto-assignee.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index 84fc5bb7..5062ea3d 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -4,6 +4,7 @@ on: pull_request: types: - opened + - synchronize jobs: add-auto-assignees: @@ -12,7 +13,10 @@ jobs: steps: - name: add assignees run: | - curl -X POST https://api.github.com/repos/mash-up-kr/Dorabangs_Android/issues/${{ github.event.number }}/assignees \ + curl -L + -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/mash-up-kr/Dorabangs_Android/issues/${{ github.event.number }}/assignees \ -d '{"assignees": ${{ github.actor }} }' From 49b73cbb57cf741f3b947ed334234743fed890de Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 01:09:01 +0900 Subject: [PATCH 5/8] =?UTF-8?q?[refactoring]=20=EC=98=A4=ED=83=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assignee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index 5062ea3d..c8b702c9 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -13,7 +13,7 @@ jobs: steps: - name: add assignees run: | - curl -L + curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ From bd2268212ac814398a39d5288bf1989be9b1e305 Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 01:10:40 +0900 Subject: [PATCH 6/8] =?UTF-8?q?[refactoring]=20array=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assignee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index c8b702c9..c0f5c8ea 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -19,4 +19,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/mash-up-kr/Dorabangs_Android/issues/${{ github.event.number }}/assignees \ - -d '{"assignees": ${{ github.actor }} }' + -d '{"assignees": [${{ github.actor }}]}' From b8454992e0065ce08cb1d34094aecc2073fd987e Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 01:12:45 +0900 Subject: [PATCH 7/8] =?UTF-8?q?[refactoring]=20""=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assignee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index c0f5c8ea..462f673e 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -19,4 +19,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/mash-up-kr/Dorabangs_Android/issues/${{ github.event.number }}/assignees \ - -d '{"assignees": [${{ github.actor }}]}' + -d '{"assignees": ["${{ github.actor }}"]}' From e7d5accbc8f8757499f90e9659c970cb3a47a0a2 Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Sat, 21 Sep 2024 01:13:53 +0900 Subject: [PATCH 8/8] =?UTF-8?q?[refactoring]=20test=EC=9A=A9=20synchronize?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assignee.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml index 462f673e..a2b75dcd 100644 --- a/.github/workflows/auto-assignee.yaml +++ b/.github/workflows/auto-assignee.yaml @@ -4,7 +4,6 @@ on: pull_request: types: - opened - - synchronize jobs: add-auto-assignees: