Skip to content

Commit 888fca7

Browse files
authored
Adiciona bot para atribuir issues com comentário (brazilian-utils#403)
1 parent 7bd5b3a commit 888fca7

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Comandos nos comentários
2+
on:
3+
issue_comment:
4+
types: created
5+
6+
permissions:
7+
contents: read
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
issue_assign:
13+
runs-on: ubuntu-22.04
14+
if: (!github.event.issue.pull_request) && github.event.comment.body == 'bora'
15+
concurrency:
16+
group: ${{ github.actor }}-issue-assign
17+
steps:
18+
- run: |
19+
echo "Issue ${{ github.event.issue.number }} atribuida a ${{ github.event.comment.user.login }}"
20+
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."
21+
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

CONTRIBUTING.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ Caso não tenha uma conta, siga os passos de [como criar de uma conta pessoal no
3535
Visite a [página de issues do brutils][brutils-issues] e encontre uma issue com a qual você gostaria
3636
de trabalhar e que ainda não tenha sido atribuída a ninguém.
3737

38-
Deixe um comentário na issue perguntando se você pode trabalhar nela. Algo como: "Olá, posso
39-
trabalhar nessa issue?".
40-
41-
Aguarde até que alguém atribua a issue a você. Uma vez atribuída, você pode prosseguir para a próxima
42-
etapa.
38+
Deixe um comentário na issue com conteúdo "bora!" Em seguida, um bot vai atribuir a issue a você. Uma vez atribuída, você pode prosseguir para a próxima etapa.
4339

4440
Sinta-se à vontade para fazer qualquer pergunta na página da issue antes ou durante o processo de
4541
desenvolvimento.

CONTRIBUTING_EN.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ Make sure you have a [GitHub account][github-join] and you are logged in with it
3232
Visit the [brutils issues page][brutils-issues] and find an issue you would like to work with
3333
and no one assigned to it yet.
3434

35-
Send a comment in the issue asking to work with it. Something like: "hey, can I work on this?".
36-
37-
Wait until someone assign you to the ticket. Once you are assigned to it, you can move to the next
35+
Send a comment in the issue with the content "bora!" This will trigger a bot that will assign you to the ticket. Once you are assigned to it, you can move to the next
3836
step.
3937

4038
Please, feel free to ask any questions in the issue's page before or during the development

0 commit comments

Comments
 (0)