-
Notifications
You must be signed in to change notification settings - Fork 131
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
fix: replace github search api with graphql in success lifecycle method #857
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
8929f7e
chore: add `loadAssociatedPRsQuery` helper to generate gql query
babblebey ce1c3e4
feat: implement graphql in associatedPRs fetch
babblebey d24079c
Merge branch 'master' into refactor/replace-search-api
babblebey 76a2cd1
build: add `assert` to devDeps
babblebey b9bbd1f
do: extracted `loadAssociatedPRsQuery` to separate function
babblebey ca0bc4a
do (test): current attemption situation
babblebey f3be681
nits: prepend string `commit` to gal query aliases
babblebey 1516ea3
nits: rename associatedPRs gql query builder helper
babblebey 1eaffe0
Merge branch 'master' into refactor/replace-search-api
babblebey c58c3e2
fix: typo in `success.js`
babblebey 6714074
fix: address test case `Add comment and labels to PRs associated with…
babblebey 0299e79
do: address test case `Add comment and labels to PRs associated with …
babblebey e229ad3
do: address test case `Do not add comment and labels for unrelated PR…
babblebey 813969b
do: address test case `Do not add comment and labels if no PR is asso…
babblebey b7963d7
do: address test case `Do not add comment and labels to PR/issues fro…
babblebey 0d1f44f
do: address test case `Ignore missing and forbidden issues/PRs`
babblebey d8b5396
do: address test case `Add custom comment and labels`
babblebey 703f7bb
do: address test case `Add custom label`
babblebey c4f5df3
do: address test case `Comment on issue/PR without ading a label`
babblebey 5585c3b
do: address test case `Editing the release to include all release lin…
babblebey d336aa8
do: address test case `Editing the release to include all release lin…
babblebey 4b7c9a9
do: address test case `Editing the release to include all release lin…
babblebey 69e67cf
do: address other test case except "Make multiple search queries if n…
babblebey c909ed7
Merge branch 'refactor/replace-search-api' of https://github.com/sema…
babblebey 96f5e3a
fix: address test case `Make multiple search queries if necessary`
babblebey db42a89
nits: make tiny changes in `success.js`
babblebey d97754d
fix: address `integration` tests
babblebey d268e51
Revert "build: add `assert` to devDeps"
babblebey 6ca26fc
refactor: replace `isArray` method with `Object.values`
babblebey 791dc93
fix(build): fix lint issues
babblebey 5ebd038
chore: drop `getSearchQueries` integration from `success.js` and depr…
babblebey 61eea50
Merge branch 'master' into refactor/replace-search-api
babblebey 9b2a923
chore: remove deprecated `getSearchQueries` helper
babblebey 9c58e02
fix: modify `buildAssociatedPRsQuery` returned string
babblebey 737fd05
Merge branch 'master' into refactor/replace-search-api
babblebey 807c400
feat: retrieve `body` property for `associatedPRs`
babblebey 53c8024
Merge branch 'master' into refactor/replace-search-api
gr2m 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 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
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
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.
We will need to address the possibility that there might be more than 100 commits. If that occurs, we need to send multiple requests as only 100 nodes can be requested with a single GraphQL request
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.
was this addressed in this PR? im working with a repo that has more than 100 commits and am experiencing this secondary rate error on v24.0.0
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.
Hey @brandon-kyle-bailey
The Edge Case isn't addressed in this PR nor yet.
But, could you kindly open an issue with details of this error you're getting in regard this 100+ commit, thanks.
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.
unfortunately this is happening on an internal repo but ill do my best! @babblebey
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.
@babblebey im not able to reliable reproduce it at this point since re-running so will hold off on logging an issue. will revisit if it reappears!
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.
I'm currently working on a fix in regard the edge case here #892
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.
just capturing the relation to #867 (comment) as well