Skip to content

Commit

Permalink
Use GITHUB_TOKEN instead of BITNAMI_BOT to label issues and PRs (bitn…
Browse files Browse the repository at this point in the history
…ami#12257)

Signed-off-by: Fran Mulero <[email protected]>

Signed-off-by: Fran Mulero <[email protected]>
  • Loading branch information
fmulero authored Sep 2, 2022
1 parent 5dc0052 commit 311d05f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clossing-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
issues: write
pull-requests: write
repository-projects: write

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
types:
- created
permissions:
repository-projects: write
issues: write
pull-requests: write
repository-projects: write

# To fix the concurrency when for example more than one label is added
concurrency:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/move-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

permissions:
issues: write
pull-requests: write
repository-projects: write

# To fix the concurrency when for example more than one label is added
Expand All @@ -35,12 +36,10 @@ jobs:
project-name: Support
# If the author comes from Bitnami, send it to Bitnami. Otherwise, all to Triage
column-name: 'Solved'
token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
issue-number: ${{ github.event_name != 'issues' && github.event.number || github.event.issue.number }}
- name: Solved labeling
# Only if moved into Solved
uses: andymckay/[email protected]
with:
repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
add-labels: "solved"
remove-labels: "in-progress, on-hold, triage"
6 changes: 2 additions & 4 deletions .github/workflows/moving-cards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
- moved

permissions:
repository-projects: read
issues: write
pull-requests: write
repository-projects: read

# To fix the concurrency when for example more than one label is added
concurrency:
Expand All @@ -33,23 +34,20 @@ jobs:
if: ${{ github.event.project_card.column_id == env.ON_HOLD_COLUMN_ID }}
uses: andymckay/[email protected]
with:
repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
add-labels: "on-hold"
remove-labels: "triage"
- name: In progress labeling
# Only if moved into In progress
if: ${{ github.event.project_card.column_id == env.IN_PROGRESS_COLUMN_ID }}
uses: andymckay/[email protected]
with:
repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
add-labels: "in-progress"
remove-labels: "on-hold, triage"
- name: Solved labeling
# Only if moved into Solved
if: ${{ github.event.project_card.column_id == env.SOLVED_COLUMN_ID }}
uses: andymckay/[email protected]
with:
repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
add-labels: "solved"
remove-labels: "in-progress, on-hold, triage"
assign-assignee-if-needed:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ on:
- reopened
- opened
permissions:
repository-projects: write
issues: write
pull-requests: write
repository-projects: write

# To fix the concurrency when for example more than one label is added
concurrency:
Expand Down Expand Up @@ -52,7 +53,6 @@ jobs:
# Only if moved into Solved
uses: andymckay/[email protected]
with:
repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}"
add-labels: ${{ (!contains(fromJson(env.BITNAMI_TEAM), github.actor)) && 'triage' || 'bitnami' }}
# For reopened issues
remove-labels: "solved"

0 comments on commit 311d05f

Please sign in to comment.