Skip to content
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

Simplify fetching eligible reviewers in spr diff #123

Conversation

sven-of-cord
Copy link
Contributor

There is extra code in the diff command to start fetching eligible reviewers from GitHub ahead of time, but it has become pointless. There is no other await between the place where we call gh.get_reviewers() and where we await the returned future. Also, we don't spawn a task with the returned future, so work only begins when we finally await. This is all very much pointless, so this commit just moves calling gh.get_reviewers() to where we need it and await it.

Test Plan:
Run spr diff to submit this diff, with reviewers listed in the local commit message, so that spr adds them to the PR.

Created using spr 1.3.5-beta.1
@sven-of-cord sven-of-cord merged commit 654d59c into master Jul 21, 2022
@sven-of-cord sven-of-cord deleted the spr/sven-of-cord/simplify-fetching-eligible-reviewers-in-spr-diff branch July 21, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants