Skip to content

[PETF-80] [PETF-81] [PETF-82] [PETF-83] [PETF-84] [PETF-85] [PETF-86] ta em conflito? #81

[PETF-80] [PETF-81] [PETF-82] [PETF-83] [PETF-84] [PETF-85] [PETF-86] ta em conflito?

[PETF-80] [PETF-81] [PETF-82] [PETF-83] [PETF-84] [PETF-85] [PETF-86] ta em conflito? #81

Workflow file for this run

name: Auto-assign milestone on issue creation
on:
issues:
types: [opened]
jobs:
auto-assign-milestone:
runs-on: ubuntu-latest
steps:
- name: Check for issue creation
run: |
# Extract the milestone name you want to assign
milestone="primeira página"
# Add the milestone to the issue
echo "Assigning milestone $milestone to the issue..."
curl -X PATCH -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
-d "{\"milestone\": \"$milestone\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}"
- name: Add a comment to the issue
run: |
# Comment to be added
comment="### Obrigado por abrir a issue\n### Verifique os nossos guidelines:\n- [Código de conduta](https://github.com/devhatt/octopost/blob/master/docs/CODE_OF_CONDUCT.md)\n- [Contribuição](https://github.com/devhatt/octopost/blob/master/docs/CONTRIBUTING.md)\n- [Guia de Estilo](https://github.com/devhatt/octopost/blob/master/docs/STYLEGUIDE.md)"
# Add the comment to the issue
echo "Adding comment to the issue..."
curl -X POST -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
-d "{\"body\": \"$comment\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"