forked from bitnami/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GITHUB_TOKEN instead of BITNAMI_BOT to label issues and PRs (bitn…
…ami#12257) Signed-off-by: Fran Mulero <[email protected]> Signed-off-by: Fran Mulero <[email protected]>
- Loading branch information
Showing
5 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
repository-projects: write | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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" |