Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Melhoria no bot de assignment #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/comment-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ 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
uses: peter-evans/create-or-update-comment@v4.0.0
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.
2 changes: 1 addition & 1 deletion CONTRIBUTING_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading