Skip to content

[Fork] Hide Branch's PR Badge if for Upstream PR - #8937

Closed
outofambit wants to merge 6 commits into
developmentfrom
bugfix/hide-pr-badge-too
Closed

outofambit wants to merge 6 commits into
developmentfrom
bugfix/hide-pr-badge-too

Conversation

@outofambit

@outofambit outofambit commented Jan 17, 2020 •

Copy link
Copy Markdown
Contributor

Closes #8936

Description

  • add feature flag for showing upstream PRs (since we plan to revisit this post-2.3 release)
  • use flag in existing pr list filtering
  • use flag and hide PR badge if PR is based on upstream repo

Screenshots

Screen Shot 2020-01-17 at 9 43 48 AM

tierninho
tierninho previously approved these changes Jan 17, 2020

@tierninho tierninho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirming that PR badges are hidden from upstream PR, and PR on the forked repo still shows if it exits.

niik
niik previously approved these changes Jan 21, 2020

@niik niik 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.

Code looks good. I'm approving it since it does what it's claiming to do but I wanted to ask if you talked about how to handle the show/create PR menu item in your discussion leading up to this PR.

Right now the menu item still knows about the PR meaning it'll be labelled Show Pull Request. It's the only indication that the app knows about upstream PRs at all which seems quite weird but on the other hand so would the alternative (labelling it Create Pull Request).

Just curious

@niik
niik dismissed stale reviews from tierninho and themself via ca87efb January 21, 2020 14:24
@outofambit

Copy link
Copy Markdown
Contributor Author

@niik thanks for the review and thanks for raising that inconsistency. @ampinsk and I talked about it some more and i'm going to close this PR (and issue). I'll file a new issue tomorrow.

@outofambit outofambit closed this Jan 22, 2020
@outofambit
outofambit deleted the bugfix/hide-pr-badge-too branch April 27, 2020 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fork] Hide PR number badges on branches that have an upstream PR

3 participants