Skip to content

fix: restore workflow_run trigger + use GH_PAT for PR creation#91

Merged
rviannaoliveira merged 2 commits intomainfrom
chore/make-test-generation-manual
Mar 29, 2026
Merged

fix: restore workflow_run trigger + use GH_PAT for PR creation#91
rviannaoliveira merged 2 commits intomainfrom
chore/make-test-generation-manual

Conversation

@rviannaoliveira
Copy link
Copy Markdown
Contributor

O que muda

  • Mantém o trigger automático via workflow_run (roda após o CI passar em qualquer PR)
  • Mantém o trigger manual via workflow_dispatch
  • Substitui GITHUB_TOKEN por GH_PAT — corrige o erro de permissão ao abrir PRs
  • Usa git add --force para garantir que o diretório src/test/ seja staged corretamente
  • Usa find ao invés de git status para detectar os arquivos gerados

Pré-requisito

Adicionar o secret GH_PAT no repositório (Personal Access Token com escopo repo).

🤖 Generated with Claude Code

rviannaoliveira and others added 2 commits March 29, 2026 08:25
- Remove workflow_run trigger (no longer runs automatically on PRs)
- Keep only workflow_dispatch for manual execution via Actions UI
- Replace GITHUB_TOKEN with GH_PAT to allow PR creation
- Use timestamp-based branch name (no longer tied to PR number)
- Simplify job condition (no bot check needed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Keep automatic trigger via workflow_run (runs after CI passes on PRs)
- Keep manual trigger via workflow_dispatch
- Replace GITHUB_TOKEN with GH_PAT to allow opening PRs from Actions
- Use git add --force to correctly stage new test directories
- Use find instead of git status to detect generated test files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rviannaoliveira rviannaoliveira merged commit 0d465a8 into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant