-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona bot para atribuir issues com comentário (#403)
- Loading branch information
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Comandos nos comentários | ||
on: | ||
issue_comment: | ||
types: created | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
issue_assign: | ||
runs-on: ubuntu-22.04 | ||
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." | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters