Skip to content

Commit c66bc17

Browse files
authored
Merge pull request #239 from GersonRS/develop
fix: adjust module add project
2 parents 62806da + e73fee9 commit c66bc17

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/modules-add-to-project.yaml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
#
44
# Este workflow gerencia issues e pull requests no projeto Modern Gitops Stack,
55
# organizando-os no board para melhor acompanhamento e gestão.
6-
7-
name: "modern-gitops-stack-add-to-project"
6+
7+
name: "module-add-to-project"
8+
89
on:
910
workflow_call:
1011
secrets:
11-
PROJECT_APP_PRIVATE_KEY:
12-
description: "GitHub App private key para o projeto Modern Gitops Stack"
12+
PAT:
13+
description: "GitHub token for the Modern Gitops Stack Project"
1314
required: true
14-
1515
issues:
1616
types:
1717
- opened
@@ -22,27 +22,24 @@ on:
2222
- opened
2323
- reopened
2424

25+
permissions:
26+
issues: write
27+
pull-requests: write
28+
contents: write
29+
2530
jobs:
2631
add-to-project:
2732
runs-on: ubuntu-latest
2833
steps:
29-
- name: Checkout repository
30-
uses: actions/checkout@v6
31-
- name: Gerar token de autenticação do GitHub App
32-
id: generate_token
33-
uses: tibdex/github-app-token@v2
34-
with:
35-
app_id: 882683
36-
private_key: ${{ secrets.PROJECT_APP_PRIVATE_KEY }}
37-
38-
- name: Adicionar PR ou issue ao project board do Modern Gitops Stack
39-
id: add-to-project
34+
- uses: actions/checkout@v4
35+
- name: Add PR or issue to Modern GitOps Stack project board
4036
uses: actions/add-to-project@v1.0.2
4137
with:
4238
project-url: https://github.com/users/GersonRS/projects/2
43-
github-token: ${{ steps.generate_token.outputs.token }}
44-
45-
- name: Auto-atribuição ao autor
39+
github-token: ${{ secrets.PAT }}
40+
labeled: bug, needs-triage
41+
label-operator: NOT
42+
- name: Auto Author Assign
4643
uses: toshimaru/auto-author-assign@v2.1.1
4744
with:
48-
repo-token: ${{ steps.generate_token.outputs.token }}
45+
repo-token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)