forked from airbytehq/airbyte
-
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.
Toph cleans up labellers ii (airbytehq#17330)
* Further testing This reverts commit 83cdf19. * Moves find_valid_pat into single job * Removes duplicate find_valid_pat * Moves find_valid_pat to single job * New name for FE notifier
- Loading branch information
1 parent
18e7c28
commit fd3e213
Showing
7 changed files
with
86 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Add labels to github issues based on context" | ||
on: | ||
issues: | ||
types: [opened, labeled, unlabeled] | ||
|
||
jobs: | ||
shared-issues: | ||
name: "Add Labels to Issues. Safe to Merge on fail" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Airbyte Repo for PAT command | ||
uses: actions/checkout@v2 | ||
- name: Check PAT rate limits | ||
# Cannot share PAT outside of JOB context | ||
run: | | ||
./tools/bin/find_non_rate_limited_PAT \ | ||
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \ | ||
${{ secrets.OCTAVIA_PAT }} | ||
- name: Run Issue Command from workflow-actions | ||
uses: nick-fields/private-action-loader@v3 | ||
with: | ||
pal-repo-token: "${{ env.PAT }}" | ||
pal-repo-name: airbytehq/workflow-actions@production | ||
# the following input gets passed to the private | ||
token: "${{ env.PAT }}" | ||
# ref: https://github.com/airbytehq/workflow-actions/blob/main/src/bin_issue.ts | ||
command: "issue" |
2 changes: 1 addition & 1 deletion
2
.github/workflows/labeler.yml → ...workflows/label-github-issues-by-path.yml
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Runs internal automation for pull requests | ||
|
||
name: "Add labels to github PRs based on context" | ||
on: | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, ready_for_review, synchronize, reopened] | ||
|
||
jobs: | ||
shared-pr-labeller: | ||
name: "Add Labels to PRs. Safe to Merge on fail" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Airbyte Repo for PAT command | ||
uses: actions/checkout@v2 | ||
- name: Check PAT rate limits | ||
# Cannot share PAT outside of JOB context | ||
run: | | ||
./tools/bin/find_non_rate_limited_PAT \ | ||
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \ | ||
${{ secrets.OCTAVIA_PAT }} | ||
- name: Run Issue Command from workflow-actions | ||
uses: nick-fields/private-action-loader@v3 | ||
with: | ||
pal-repo-token: "${{ env.PAT }}" | ||
pal-repo-name: airbytehq/workflow-actions@production | ||
# the following input gets passed to the private action | ||
token: "${{ env.PAT }}" | ||
command: "pull" |
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 |
---|---|---|
@@ -1,19 +1,30 @@ | ||
# Notify users/teams when labels are added to an issue. | ||
|
||
name: Notify when adding label to issue | ||
name: Notify FE team for FE label on issues | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
notify: | ||
name: "Notify FE team on label creation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: jenschelkopf/issue-label-notification-action@1.3 | ||
with: | ||
token: ${{ secrets.OCTAVIA_PAT }} | ||
message: 'cc {recipients}' | ||
# Specify a map of label -> team/user to notify | ||
recipients: | | ||
team/frontend=@airbytehq/frontend | ||
- name: Checkout Airbyte Repo for PAT command | ||
uses: actions/checkout@v2 | ||
- name: Check PAT rate limits | ||
# Cannot share PAT outside of JOB context | ||
run: | | ||
./tools/bin/find_non_rate_limited_PAT \ | ||
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \ | ||
${{ secrets.OCTAVIA_PAT }} | ||
# Updated name to reflect reality. Update name if you change recipients | ||
- name: Notify FE team when on FE label creation | ||
uses: jenschelkopf/issue-label-notification-action@1.3 | ||
with: | ||
token: "${{ env.PAT }}" | ||
message: 'cc {recipients}' | ||
# Specify a map of label -> team/user to notify | ||
recipients: | | ||
team/frontend=@airbytehq/frontend |
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 was deleted.
Oops, something went wrong.