From d48ecb6e2b1d3e02756eb9533905a92760ac9b0b Mon Sep 17 00:00:00 2001 From: GersonRS Date: Thu, 22 Jan 2026 15:53:15 -0300 Subject: [PATCH 1/2] fix: adjust module add to project --- .github/workflows/modules-add-to-project.yaml | 44 +++++++------------ 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/.github/workflows/modules-add-to-project.yaml b/.github/workflows/modules-add-to-project.yaml index 314c407..0ef0371 100644 --- a/.github/workflows/modules-add-to-project.yaml +++ b/.github/workflows/modules-add-to-project.yaml @@ -3,46 +3,34 @@ # # Este workflow gerencia issues e pull requests no projeto Modern Gitops Stack, # organizando-os no board para melhor acompanhamento e gestão. - -name: "modern-gitops-stack-add-to-project" + +name: "module-add-to-project" + on: workflow_call: secrets: - PROJECT_APP_PRIVATE_KEY: - description: "GitHub App private key para o projeto Modern Gitops Stack" + PAT: + description: "GitHub token for the Modern Gitops Stack Project" required: true - issues: - types: - - opened - - reopened - - pull_request: - types: - - opened - - reopened +permissions: + issues: write + pull-requests: write + contents: write jobs: add-to-project: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Gerar token de autenticação do GitHub App - id: generate_token - uses: tibdex/github-app-token@v2 - with: - app_id: 882683 - private_key: ${{ secrets.PROJECT_APP_PRIVATE_KEY }} - - - name: Adicionar PR ou issue ao project board do Modern Gitops Stack - id: add-to-project + - uses: actions/checkout@v4 + - name: Add PR or issue to Modern GitOps Stack project board uses: actions/add-to-project@v1.0.2 with: project-url: https://github.com/users/GersonRS/projects/2 - github-token: ${{ steps.generate_token.outputs.token }} - - - name: Auto-atribuição ao autor + github-token: ${{ secrets.PAT }} + labeled: bug, needs-triage + label-operator: NOT + - name: Auto Author Assign uses: toshimaru/auto-author-assign@v2.1.1 with: - repo-token: ${{ steps.generate_token.outputs.token }} \ No newline at end of file + repo-token: ${{ secrets.PAT }} \ No newline at end of file From e73fee97533b10b4d5cdeb19128b28acaf0d73e0 Mon Sep 17 00:00:00 2001 From: GersonRS Date: Thu, 22 Jan 2026 15:55:01 -0300 Subject: [PATCH 2/2] fix: adjust module --- .github/workflows/modules-add-to-project.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/modules-add-to-project.yaml b/.github/workflows/modules-add-to-project.yaml index 0ef0371..d25fb29 100644 --- a/.github/workflows/modules-add-to-project.yaml +++ b/.github/workflows/modules-add-to-project.yaml @@ -12,6 +12,15 @@ on: PAT: description: "GitHub token for the Modern Gitops Stack Project" required: true + issues: + types: + - opened + - reopened + + pull_request: + types: + - opened + - reopened permissions: issues: write