Skip to content

Do not activate review mode for closed or merged PR - #3021

Merged
Alex Ross (alexr00) merged 2 commits into
microsoft:mainfrom
emtei:patch-1
Nov 4, 2021
Merged

Alex Ross (alexr00) merged 2 commits into
microsoft:mainfrom
emtei:patch-1

Conversation

@emtei

@emtei Mateusz Stopka (emtei) commented Oct 5, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #3009

Initially I tried to use line 312 this._prNumber = undefined; to disable review mode from previously branch, however with this.clear(true); all seems to work fine.

Probably that line should also be changed, but I'm not sure how to make pr "notResolved".

I tested manually those scenarios:

  1. Checkout branch with active PR (review activated) => checkout branch with merged PR (review NOT activated)
  2. Checkout branch with merged PR (review NOT activated) => checkout branch with merged PR (review NOT activated)
  3. Checkout branch with active PR (review activated) => checkout other branch with active PR (review activated for other PR)
  4. Open repository whose current branch is active with VSCode (review activated)
  5. Open repository whose current branch is closed with VSCode (review NOT activated)

@emtei

Copy link
Copy Markdown
Contributor Author

Alex Ross (@alexr00) Hello, can you review it please?

@alexr00 Alex Ross (alexr00) added this to the November 2021 milestone Oct 19, 2021
Comment thread src/view/reviewManager.ts Outdated
@alexr00 Alex Ross (alexr00) self-assigned this Nov 2, 2021

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you! I will merge after we have released the next version later this week.

@alexr00
Alex Ross (alexr00) merged commit bc37d05 into microsoft:main Nov 4, 2021
@emtei
Mateusz Stopka (emtei) deleted the patch-1 branch November 22, 2021 15:22
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.

Do not associate branch with PR when PR is closed

2 participants