From 0aeacfcef5ddf8435b92c0102bd7697c6fc7c4bb Mon Sep 17 00:00:00 2001 From: Thomas Li Date: Thu, 23 Jan 2020 18:09:28 -0800 Subject: [PATCH 1/3] Update assign.yml --- .github/workflows/assign.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index 019ecfc484ca5..3ced1f7b094de 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -9,7 +9,7 @@ jobs: steps: - name: run: | - if [[ "${{ github.event.comment.body }}" == "take" ]]; then + if [[ "${{ github.event.comment.body == "take" }}" == "true" ]]; then echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees fi From 0ce44687a7234e7a0230b039ee2f2d45514b6a17 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Thu, 23 Jan 2020 18:26:32 -0800 Subject: [PATCH 2/3] Update assign.yml --- .github/workflows/assign.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index 3ced1f7b094de..6eeb2413a0032 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -8,8 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: - run: | - if [[ "${{ github.event.comment.body == "take" }}" == "true" ]]; then - echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" - curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees - fi + if: github.event.comment.body == "take" + run: | + echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" + curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees From e5fc575d226686fe7e481a68657359f79ee4bf19 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Thu, 23 Jan 2020 18:32:00 -0800 Subject: [PATCH 3/3] Update assign.yml --- .github/workflows/assign.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index 6eeb2413a0032..a6d3f1f383751 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -7,8 +7,8 @@ jobs: one: runs-on: ubuntu-latest steps: - - name: - if: github.event.comment.body == "take" - run: | - echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" - curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees + - if: github.event.comment.body == 'take' + name: + run: | + echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" + curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees