Skip to content

Commit

Permalink
Melhora o bot bora para comentar na issue (#406)
Browse files Browse the repository at this point in the history
* Melhora o bot bora para comentar na issue

Também corrige o bot para reagir ao comando bora!

* Consertar endereço do repositorio
  • Loading branch information
melissawm authored Sep 13, 2024
1 parent 888fca7 commit cd44d1b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/comment-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ 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!'
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/melissawm/brutils-python/blob/main/CONTRIBUTING.md) para mais informações sobre como submeter sua Pull Request."
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."
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/[email protected]
with:
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."

0 comments on commit cd44d1b

Please sign in to comment.