Cria função ibge.convert_text_to_uf que recebe um nome de estado e retorna sua UF. #82
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
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." |