Skip to content

Commit

Permalink
Merge branch 'main' into 397
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamaia authored Sep 23, 2024
2 parents da7bcbb + 9972d18 commit 16dd8d9
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 27 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/comment-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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/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:
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."
6 changes: 1 addition & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ Caso não tenha uma conta, siga os passos de [como criar de uma conta pessoal no
Visite a [página de issues do brutils][brutils-issues] e encontre uma issue com a qual você gostaria
de trabalhar e que ainda não tenha sido atribuída a ninguém.

Deixe um comentário na issue perguntando se você pode trabalhar nela. Algo como: "Olá, posso
trabalhar nessa issue?".

Aguarde até que alguém atribua a issue a você. Uma vez atribuída, você pode prosseguir para a próxima
etapa.
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.

Sinta-se à vontade para fazer qualquer pergunta na página da issue antes ou durante o processo de
desenvolvimento.
Expand Down
4 changes: 1 addition & 3 deletions CONTRIBUTING_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ Make sure you have a [GitHub account][github-join] and you are logged in with it
Visit the [brutils issues page][brutils-issues] and find an issue you would like to work with
and no one assigned to it yet.

Send a comment in the issue asking to work with it. Something like: "hey, can I work on this?".

Wait until someone assign you to the ticket. Once you are assigned to it, you can move to the next
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
step.

Please, feel free to ask any questions in the issue's page before or during the development
Expand Down
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16dd8d9

Please sign in to comment.