Skip to content

Show base branch in PR list when different than master #103

Closed

Description

@hkdobrev

I am not sure how hard this is if even possible, but I would really like to have it.

So to reiterate I want the PR list to show a PR is made towards a base branch which is different than the default branch (usually master).

screen shot 2016-03-29 at 01 05 48

This is not so useful when all PRs are against master, but when some of them are against another branch in many cases towards another open PR it is very useful to see this from the PR list.

Activity

  1. sindresorhus commented on Mar 29, 2016

    @sindresorhus
    Member

    👍 I could see this being useful for many larger projects.

  2. paulmolluzzo commented on Apr 3, 2016

    @paulmolluzzo
    Contributor

    👍 on this suggestion, but I don't know how to find the base branch except on the PR page. Wouldn't exactly want to get every page to parse out a single word...

  3. DrewML commented on Apr 4, 2016

    @DrewML
    Contributor

    I think we might be able to pull this off with 1 HTTP request, but it might be a bit funky.

    The "List Pull Requests" API endpoint will return the base branch for a list of PRs.

    The tricky part is, to make sure that we get all the PRs on the page in 1 request, we would need to match the filtering settings on the page to be included in our API request. However, more filtering options are exposed in the UI than in the API 😆.

    Edit: Yeahhhh, probably not going to work out well that way 😞

  4. paulmolluzzo commented on Apr 4, 2016

    @paulmolluzzo
    Contributor

    The "List Pull Requests" API endpoint will return the base branch for a list of PRs.

    This requires authentication...

    The tricky part is, to make sure that we get all the PRs on the page in 1 request, we would need to match the filtering settings on the page to be included in our API request. However, more filtering options are exposed in the UI than in the API 😆.

    That seems super complex anyway.

    The simplest "single request" I can think of is grabbing and parsing each PRs page. But that's 1 request per PR so probably too many to make feasible.

  5. DrewML commented on Apr 4, 2016

    @DrewML
    Contributor

    I believe you get a limited # of API requests from an I.P. without auth (can be verified by making an API call from the console in the browser). This is what OctoTree uses to get file info in the tree.

    But I agree, it's super complex and isn't going to be very accurate.

    I'll keep my eyes peeled for an easier way, but this one may just not be possible to do reasonably.

  6. paulmolluzzo commented on Apr 4, 2016

    @paulmolluzzo
    Contributor

    Everything private is behind user auth.

  7. DrewML commented on Apr 4, 2016

    @DrewML
    Contributor

    Ah yeah - forgot for a minute that people use this on Private repositories 😆

  8. fregante commented on Apr 6, 2018

    @fregante
    Member

    Is this needed in the main list or would #455 suffice? After #1115 we know what the default branch is for each repo (although we're currently only saving it in sessionStorage)

  9. sindresorhus commented on Nov 7, 2018

    @sindresorhus
    Member

    @bfred-it This is for the main list, and #455 was never merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions