-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toph increases rate limit for shared issues #17265
Merged
supertopher
merged 5 commits into
master
from
toph_increases_rate_limit_for_shared_issues
Sep 27, 2022
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
185a9aa
Adds second PAT for issue labeller
supertopher 25dbefb
Adds reference to code that runs
supertopher 062501c
comment cleanup
supertopher a7c9af8
use find_valid_pat output for both actions
supertopher 3a88b14
Merge branch 'master' into toph_increases_rate_limit_for_shared_issues
supertopher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,40 @@ | ||
# Adds metadata and labels to issues based on context | ||
# https://github.com/airbytehq/workflow-actions/blob/main/src/bin_issue.ts <-- this gets run | ||
|
||
name: "[safe to merge when failing] Add metadata and labels to issues based on context" | ||
on: | ||
issues: | ||
types: [opened, labeled, unlabeled] | ||
|
||
jobs: | ||
find_valid_pat: | ||
name: "Find a PAT with room for actions" | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pat: ${{ steps.variables.outputs.pat }} | ||
steps: | ||
- name: UUID ${{ github.event.inputs.uuid }} | ||
run: true | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
- name: Check PAT rate limits | ||
id: variables | ||
run: | | ||
./tools/bin/find_non_rate_limited_PAT \ | ||
${{ secrets.OCTAVIA_PAT }} \ | ||
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} | ||
shared-issues: | ||
name: "Add Labels to Issues. Safe to Merge on fail" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- find_valid_pat | ||
steps: | ||
- uses: nick-fields/private-action-loader@v3 | ||
with: | ||
pal-repo-token: "${{ secrets.OCTAVIA_PAT }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use the find_valid_pat output token for this as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ty pete. missed it |
||
pal-repo-name: airbytehq/workflow-actions@production | ||
# the following input gets passed to the private action | ||
token: "${{ needs.find_valid_pat.outputs.pat }}" | ||
# ref: https://github.com/airbytehq/workflow-actions/blob/main/src/bin_issue.ts | ||
command: "issue" |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a new Octavia user with new PAT limits