Skip to content

[PETF-63] [PETF-64] [PETF-65] [PETF-66] [PETF-67] [PETF-68] Criação de tela de data de aniversario de animal #239

[PETF-63] [PETF-64] [PETF-65] [PETF-66] [PETF-67] [PETF-68] Criação de tela de data de aniversario de animal

[PETF-63] [PETF-64] [PETF-65] [PETF-66] [PETF-67] [PETF-68] Criação de tela de data de aniversario de animal #239

Workflow file for this run

name: Auto-assign on comment
on:
issue_comment:
types: [created]
jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
- name: Check for "EU QUERO!!!" comment
if: contains(github.event.comment.body, 'EU QUERO!!!')
run: |
# Extract the commenter's username
commenter=$(jq -r .comment.user.login $GITHUB_EVENT_PATH)
# Add the commenter as an assignee to the issue using a Personal Access Token
echo "Assigning $commenter to the issue..."
curl -X POST -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
-d "{\"assignees\": [\"$commenter\"]}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees"