docs: ajuste de AGENTS.md/ci.yml (gate = automerge, sem branch protection) #2

Merged
fsolla merged 3 commits from OPS1-setup-workflow-teqo into main 2026-08-18 01:08:45 +00:00
Showing only changes of commit 8bc6ea0536 - Show all commits

View file

@ -0,0 +1,24 @@
name: Debug token
on:
workflow_dispatch:
push:
branches: [OPS1-setup-workflow-teqo]
jobs:
debug:
runs-on: host
timeout-minutes: 5
steps:
- name: Quem é o GITHUB_TOKEN
run: |
echo "GITHUB_TOKEN user:"
curl -s -H "Authorization: token $GITHUB_TOKEN" https://git.solla.dev/api/v1/user
echo
echo "Permissões no repo:"
curl -s -H "Authorization: token $GITHUB_TOKEN" "https://git.solla.dev/api/v1/repos/amana/iara-pwa"
echo
echo "Tentando criar label (escrita):"
curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Authorization: token $GITHUB_TOKEN" -H "Content-Type: application/json" "https://git.solla.dev/api/v1/repos/amana/iara-pwa/labels" -d '{"name":"debug-token-test","color":"ff0000"}'
echo "Tentando remover label:"
curl -s -o /dev/null -w "%{http_code}\n" -X DELETE -H "Authorization: token $GITHUB_TOKEN" "https://git.solla.dev/api/v1/repos/amana/iara-pwa/labels/debug-token-test"