From 15fcb7c77184df30918e20516be6625e31aea677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Tue, 29 Oct 2024 18:12:00 -0300 Subject: [PATCH 1/2] Melhoria no bot de assignment Melhora texto do bot e agora permite atribuir issues com: - Bora! - bora! - Bora - bora --- .github/workflows/comment-commands.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index ca6ca358..dd5c8c29 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -11,13 +11,13 @@ permissions: jobs: issue_assign: runs-on: ubuntu-22.04 - if: (!github.event.issue.pull_request) && github.event.comment.body == 'bora!' + if: (!github.event.issue.pull_request) && (github.event.comment.body == 'bora!' || github.event.comment.body == 'Bora!' || github.event.comment.body == 'bora' || github.event.comment.body == 'bora!') concurrency: group: ${{ github.actor }}-issue-assign steps: - run: | echo "Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }}" - echo "Verifique [o guia de contribuição](https://github.com/brazilian-utils/brutils-python/blob/main/CONTRIBUTING.md) para mais informações sobre como submeter sua Pull Request." + echo "Verifique o guia de contribuição para mais informações sobre como submeter sua Pull Request: https://github.com/brazilian-utils/brutils-python/blob/main/CONTRIBUTING.md" 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 - name: Create or Update Comment @@ -25,5 +25,6 @@ jobs: with: issue-number: ${{ github.event.issue.number }} body: | - Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }} :rocket:" - "Verifique [o guia de contribuição](https://github.com/brazilian-utils/brutils-python/blob/main/CONTRIBUTING.md) para mais informações sobre como submeter sua Pull Request." + Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }} :rocket: + + Verifique [o guia de contribuição](https://github.com/brazilian-utils/brutils-python/blob/main/CONTRIBUTING.md) para mais informações sobre como submeter sua Pull Request. From 4b5eaeacc8280cfc9839ca885615ab63ad0bb395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Tue, 29 Oct 2024 18:15:30 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Adiciona=20coment=C3=A1rio=20no=20CONTRIBUT?= =?UTF-8?q?ING=5FEN.md=20sobre=20o=20bot=20bora?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTING_EN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING_EN.md b/CONTRIBUTING_EN.md index 18ed1000..ab6f1410 100644 --- a/CONTRIBUTING_EN.md +++ b/CONTRIBUTING_EN.md @@ -32,7 +32,7 @@ Ensure you have a [GitHub account][github-join] and you are logged in. Visit the [brutils issues page][brutils-issues] and find an issue that interests you and hasn't been assigned yet. -Leave a comment in the issue with "bora!". A bot will assign the issue to you. Once assigned, proceed to the next step. +Leave a comment in the issue with "bora!" (in Brazilian Portuguese, that means "let's go!"). A bot will assign the issue to you. Once assigned, proceed to the next step. Feel free to ask any questions in the issue's page before or during the development process.