Skip to content

Question: how do you make a PR that included WIP in a commit no longer a WIP #53

Closed

Description

@bradical

Is there some way in a later commit to tell it that it's no longer a WIP?

Activity

  1. gr2m commented on Mar 8, 2018

    @gr2m
    Collaborator

    Thanks for opening the issue, that’s a very good question, I think we should address it in the README and the app’s description.

    You’ll have to update the commits for the pull request. You usually do that locally on your machine and then git push -f to the branch of the pull request. There are some tutorials out there, my fav is https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github, the final chapters are about cleaning up the commit history of a pull request

  2. bradical commented on Mar 8, 2018

    @bradical
    Author
  3. mwarkentin commented on Mar 14, 2018

    @mwarkentin

    Yeah, it'd be nice if there was a way to disable the check on commit messages. Having to tell developers that they need to rebase their commits (some may not be comfortable with rewriting git history, etc) isn't great (especially for what is otherwise a very simple low overhead tool).

  4. bradical commented on Mar 14, 2018

    @bradical
    Author
  5. gr2m commented on Mar 14, 2018

    @gr2m
    Collaborator

    Having to tell developers that they need to rebase their commits (some may not be comfortable with rewriting git history, etc) isn't great (especially for what is otherwise a very simple low overhead tool).

    You don’t have to, you can use GitHub’s "squash & merge" button. The WIP App setting the status to "pending" will then just serve as a reminder to not accidentally merge it with the other two options.

    Does that work for you?

  6. gr2m commented on Mar 14, 2018

    @gr2m
    Collaborator

    An alternative would be to remove the check in commit messages entirely, I would not make it configurable in order to keep the WIP bot as simple as it is right now

  7. mwarkentin commented on Mar 14, 2018

    @mwarkentin

    @gr2m squash and merge is subject to the same branch protection configs as the other types of merges isn't it? So developers would still be blocked if we've configured it that way?

    I would be 👍 to removing the check from commit messages, but I know that was originally requested by other people. Maybe worth a poll or similar to see how people feel about it?

  8. bradical commented on Mar 14, 2018

    @bradical
    Author
  9. gr2m commented on Mar 14, 2018

    @gr2m
    Collaborator

    squash and merge is subject to the same branch protection configs as the other types of merges isn't it? So developers would still be blocked if we've configured it that way?

    ah yes of course, sorry I am mostly an admin on the repos I maintain so I can get around that.

    Can you just not use it organizationally and instead rely on the labels and
    issue titles? What's the harm in keeping it in the tool?

    I’m not sure what you mean exactly? How would you tell the WIP bot to set the state to success if there are still WIP commits on the PR?

  10. bradical commented on Mar 16, 2018

    @bradical
    Author

    I’m not sure what you mean exactly? How would you tell the WIP bot to set the state to success if there are still WIP commits on the PR?

    I guess I’m saying don’t use commits to indicate WIP ever and instead using titles/labels. That way you won't have to worry about trying to unset the status via commit later.

  11. gr2m commented on Mar 16, 2018

    @gr2m
    Collaborator

    yeah I’m thinking of doing that.

  12. FranklinYu commented on Mar 23, 2018

    @FranklinYu

    Typically a WIP commit should always be the last commit (e.g. synchronizing between machines), and later be --amended. Having WIP commits merged to master seems wrong to me. Commits should be atomic, i.e. any commit should work on its own.

  13. panmona commented on Apr 13, 2018

    @panmona

    I have a commit in this pull that states that it is a work in progress design (commit is atomic though). Not so great that this makes the thing not mergable (without admin rights)

    I'm either for disabling that check OR when you add a wip-ignore label (or similar) to the pull it will make it mergable.

  14. rpetrusha commented on May 9, 2018

    @rpetrusha

    I can understand making a PR a work in progress when a commit message includes "work in progress" or something similar. But the WIP check should only look at the most recent commit message and, if it doesn't include the phrase, allow the PR to be merged.

  15. 22 remaining items

  16. martincostello commented on Sep 12, 2018

    @martincostello
  17. steveoh commented on Sep 12, 2018

    @steveoh
  18. martincostello commented on Sep 12, 2018

    @martincostello
  19. gr2m commented on Sep 12, 2018

    @gr2m
  20. steveoh commented on Sep 12, 2018

    @steveoh
  21. gr2m commented on Sep 14, 2018

    @gr2m
  22. steveoh commented on Sep 15, 2018

    @steveoh
  23. gr2m commented on Sep 16, 2018

    @gr2m
  24. gr2m commented on Oct 14, 2018

    @gr2m
    Collaborator

    Pending status override is here 🎉

    I’ve pushed it to the beta version of the WIP app and would love all your help testing it, please see my update in the 🤖📯 Updates issue.

    Thank you all for your patience and help 🙏

  25. gr2m commented on Oct 23, 2018

    @gr2m
    Collaborator

    🎉 This issue has been resolved in version 3.1.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  26. gr2m commented on Oct 24, 2018

    @gr2m
    Collaborator

    you can now add @wip ready to review to override a "pending" status, this requires the Pro plan: https://github.com/marketplace/wip.

    All revenue from the "pro" plan will be donated to Rails Girls Summer of Code. I only added the paid plan to make the WIP a real-life GitHub App example. If you cannot pay but depend on the pro features you can add your account with an explanation to the pro-plan-for-free.js file.

  27. mwarkentin commented on Dec 12, 2018

    @mwarkentin

    @gr2m we're trying to use @wip ready for review but it doesn't seem to be doing anything - any pointers / debugging? We're on the enterprise plan afaik.

  28. gr2m commented on Dec 12, 2018

    @gr2m
    Collaborator

    @mwarkentin Did you put the @wip ready for review into the pull request body or in a comment? It has to be in the pull request body right now

    Can you share the PR URL, even if the repo is public? You can send me a twitter dm if you prefer: https://twitter.com/gr2m. I can check the logs

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions