Skip to content

Commit 666d6be

Browse files
fix: add new options to bot (#603)
1 parent 2e1a097 commit 666d6be

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Comandos nos comentários
22
on:
33
issue_comment:
4-
types: created
4+
types:
5+
- created
56

67
permissions:
78
contents: read
@@ -11,19 +12,20 @@ permissions:
1112
jobs:
1213
issue_assign:
1314
runs-on: ubuntu-22.04
14-
if: (!github.event.issue.pull_request) && github.event.comment.body == 'bora!'
15+
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!')
1516
concurrency:
1617
group: ${{ github.actor }}-issue-assign
1718
steps:
1819
- run: |
1920
echo "Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }}"
20-
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."
21+
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"
2122
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
2223
2324
- name: Create or Update Comment
2425
uses: peter-evans/create-or-update-comment@v4.0.0
2526
with:
2627
issue-number: ${{ github.event.issue.number }}
2728
body: |
28-
Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }} :rocket:"
29-
"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."
29+
Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }} :rocket:
30+
31+
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.

CONTRIBUTING_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Ensure you have a [GitHub account][github-join] and you are logged in.
4242

4343
Visit the [brutils issues page][brutils-issues] and find an issue that interests you and hasn't been assigned yet.
4444

45-
Leave a comment in the issue with "bora!". A bot will assign the issue to you. Once assigned, proceed to the next step.
45+
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.
4646

4747
Feel free to ask any questions in the issue's page before or during the development process.
4848

0 commit comments

Comments
 (0)