GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add a bot to notify people when their PR has a merge conflict · Issue #96 · python/core-workflow

Add a bot to notify people when their PR has a merge conflict #96

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Add a bot to notify people when their PR has a merge conflict#96
Copy link
Labels
bothacktoberfest

Description

@JelleZijlstra
JelleZijlstra
opened on May 21, 2017
Issue body actions

The PyPA's repos have a bot (@BrownTruck) that posts on a PR when there is a merge conflict. See pypa/pip#4293 (comment) for an example. This seems like it would be useful for CPython too.

Reacted by Grimmer Kang

Activity

  1. Mariatta commented on May 26, 2017

    @Mariatta
    Mariatta
    on May 26, 2017
    Member
    More actions

    Seems interesting!
    Although I'm worried if commenting on the issue may be too noisy for some of us (we got way too many emails) but I like the idea of adding needs rebase label to PRs that have merge conflicts.

  2. Mariatta
    added
    bot
    on May 26, 2017
  3. Mariatta commented on Jun 6, 2017

    @Mariatta
    Mariatta
    on Jun 6, 2017
    Member
    More actions

    I checked BrownTruck repo and it doesn't have any license file 🤔
    I still think it can be useful here.
    @dstufft What do you think? Could we use BrownTruck for CPython? Can it work as is? (I haven't really looked at the codebase) Thanks 😃

  4. Mariatta commented on Jun 6, 2017

    @Mariatta
    Mariatta
    on Jun 6, 2017
    Member
    More actions

    Or maybe should ask at core-workflow mailing list first whether we all want this bot or not.

  5. dstufft commented on Jun 6, 2017

    @dstufft
    dstufft
    on Jun 6, 2017
    Member
    More actions

    It's Apache Licensed, I just forgot to add a LICENSE file (it's in the file headers). I didn't really try to make it very modular, but PRs are accepted! Or the code for this lives in https://github.com/pypa/browntruck/blob/master/browntruck/rebase.py so you can copy it out into bedevere or something.

    Reacted by Mariatta
  6. Mariatta
    added
    hacktoberfest
    on Sep 29, 2017
  7. chetankm-cs commented on Oct 6, 2017

    @chetankm-cs
    chetankm-cs
    on Oct 6, 2017
    More actions

    Hi, I would like to take this up.
    Will add code to label any new pull request with merge conflict as needs rebase.

    Should the code for this go into python/bedevere or this will be a new bot ?

  8. Mariatta commented on Oct 6, 2017

    @Mariatta
    Mariatta
    on Oct 6, 2017
    Member
    More actions

    In #93 (comment) there is a concern that adding such code to bedevere might cause problem with hitting bedevere's rate limit. So it might need to be a new bot/app.

  9. Mariatta commented on Oct 10, 2017

    @Mariatta
    Mariatta
    on Oct 10, 2017
    Member
    More actions

    #187 provides a prototype of querying open PRs using GraphQL to find out which ones have the merge conflict.

    Some questions:

    1. Is it enough that the bot applies the needs rebase label? or should the bot leave a comment too?
      I prefer simply applying needs rebase label, less noisy.

    2. Do we want this as daily cron job, or a webhook event?
      I don't have any preference.

    3. Is this a separate app, or part of bedevere?
      Maybe easier to make it a part of bedevere, but what about rate limitations?

  10. brettcannon commented on Oct 10, 2017

    @brettcannon
    brettcannon
    on Oct 10, 2017
    Member
    More actions

    RE: label or comment: it depends on what the purpose of this is. If it's to just know which PRs have a merge conflict through a query then a label is enough. If it's to let the PR creator know they are out of sync then a comment is necessary. If it isn't for any of that then I don't know why we're doing this since you can pull up a PR to notice if there's a conflict. 😉

    As for a webhook or cron job, a webhook might be easier as it avoids us setting up a cron job, but it does mean PRs that have conflicts will be perpetually behind as GitHub figures out which open PRs actually do have conflicts versus doing it once a day when merges are quiet.

  11. Mariatta commented on Oct 11, 2017

    @Mariatta
    Mariatta
    on Oct 11, 2017
    Member
    More actions

    I personally just want a label, but leaving comments will be useful to the PR author.
    If people don't mind the noise, then let's do both :)

  12. ezio-melotti commented on Jun 5, 2022

    @ezio-melotti
    ezio-melotti
    on Jun 5, 2022
    Member
    More actions

    This seems obsolete, since GitHub already notifies about merge conflicts and even offer the option to resolve them from the web interface.

    Reacted by Erlend E. Aasland
  13. erlend-aasland commented on Jun 5, 2022

    @erlend-aasland
    erlend-aasland
    on Jun 5, 2022
    More actions

    This seems obsolete, since GitHub already notifies about merge conflicts and even offer the option to resolve them from the web interface.

    Seems like there is no way to filter searches by merge conflict. That would be a useful feature.

    Reacted by Jelle Zijlstra
  14. hugovk commented on Jan 6, 2023

    @hugovk
    hugovk
    on Jan 6, 2023
    Member
    More actions

    Closing as duplicate of #479.

  15. hugovk
    closed this as not plannedon Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bothacktoberfest

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.