-
Notifications
You must be signed in to change notification settings - Fork 583
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
Support adding/deleting reviewers and labels #955
Conversation
481156a
to
aad1abc
Compare
Run into following issues
Quickpick related
|
src/github/pullRequestManager.ts
Outdated
|
||
async addLabels(pullRequest: PullRequestModel, labels: string[]): Promise<void> { | ||
const { octokit, remote } = await pullRequest.githubRepository.ensure(); | ||
octokit.issues.addLabels({ |
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.
do we want to await
this call?
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.
yeah, nice catch
src/github/pullRequestManager.ts
Outdated
|
||
async removeLabel(pullRequest: PullRequestModel, label: string): Promise<void> { | ||
const { octokit, remote } = await pullRequest.githubRepository.ensure(); | ||
octokit.issues.removeLabel({ |
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.
same here.
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.
LGTM in overall, the label filtering issue is probably what we want to fix before merge.
Fixed the label filtering problem, the quickpick issue seems to be a problem with the webview getting refocused, so I think it might be an upstream issue |
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.
:thumbs_up:
Builds on top of #951
#412
Adding uses the quickpick:
Icon to remove appears on hover when the view is shown as a sidebar:
When the window is less than 900px wide, content looks like, with delete icons always shown: