Coder Social home page Coder Social logo

syndesisio / pure-bot Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 8.0 535 KB

Pull Request Bot to automate development workflow

Home Page: https://github.com/syndesisio/pure-bot

License: Apache License 2.0

Makefile 9.35% Shell 3.94% Go 85.90% Ruby 0.61% Dockerfile 0.20%

pure-bot's People

Contributors

chirino avatar heiko-braun avatar jimmidyson avatar pure-bot[bot] avatar rhuss avatar rkorytkowski avatar zregvart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pure-bot's Issues

Automatically add "notif/uxd" issues to UXD Project

Per Roland's comment here, opening this issue to request

If only one of the above requests can be done, that's fine. The goal is to not miss any uxd related issues and have a timely response when possible.

I'm still trying to learn to best way to use Repo Project. @rhuss @heiko-braun Please advice if you know any best pratices. Thank you!

Extensible labels to cover issues status changes

Since GH issues, nor ZenHub extension don't provide extensive set of status values that could be used similarly to Jira. I've a proposal to implement additional labelling by the Pure bot.

I've in mind especially unverified/ready to qe status or set resolved and then close manually maybe. That would enable clear filtering what should be checked after PR was provided for it.

For the bot config part, probably a set of labels to apply in conjunctions with approved could be sufficient for now.

Wdyt @jimmidyson @rhuss? I'm all right with asking during retrospective etc. to gather more feedback.

purebot require reviews from *all* reviewers instead of just one

Seems like approved PRs are stacking up, after looking at a couple that had been sitting with an approved label for hours I found that while the PR had been approved by someone, the person who opened the PR requested reviews from multiple people, and so apparently it's now required that everyone marked as a reviewer needs to approve the changes.

Is this by design?

WIP status handler

Add a new handler that checks PRs for WIP (case-insensitive, whole word) in title or a wip label and add a required status check for this to ensure this isn't merged until wip status is removed (either by removing wip label or removing WIP from PR title).

/cc @rhuss @dsimansk

New workflow for "pr-handover"

@zregvart and I tested yesterday a workflow for a PR which I approved in general but had one comment which might or might not be addressed (so 'nice to have'). If I would have approved it directly, then the PR gets merged immediately with no chance for the author to address the comment if he wants (he would have to open a new PR). On the other hand, I don't want to come back to the PR if there is no change. So I added a "WIP" label. The author then could either change his code because of the comment (then the Review status is reset and it would be awesome if the "Approved" label would be removed, too). Or, if he still wants to have it merged fast just remove the "WIP" label, then the PR gets merged automatically. Some sort of 'handover' of the PR back to the original author.


My idea is to extend pure-bot:

  • If there is a "[handover]" in an extra line (e.g. with regexp /^\s*[+?\s*handover\s]+/mi ) in the approval comment, then pure-bot should apply a label "pr/handover" in addition to the "approved" label.
  • This label should have the same semantics as "status/wip" : When present don't merge, if absent (and "approved" is there) then merge.

Thinking about it, I would consolidate the labels with semantics for pure-bot to:

  • "approved" --> "pr/approved"
  • "status/wip" --> "pr/wip"
  • ... -> "pr/handover"

Happy for other naming suggestion, though.

@syndesis/all wdyt ?

Zenhub API enhancements

  • GET issue to return the pipeline ID together with the name
  • Add release attribute events to custom webhook API (zenhub outbound)

Automatically merge if a specific label is existing

In order to speed up the PR review process we want to automatically merge PRs without review is they are tagged by the author with 2s2f ("too small to fail"). Thes are supposed to be mini PRs changing for which the author is confident that no review is required.

See syndesisio/syndesis#506 for the original issue.

As a bonus pure-bot could check the size of the PR and if it exceeds a certain limit then do not merge (and remove this label).

@jimmidyson is this hard to implement ?

Remove "Approved" label when new code has been pushed

Currently, github will prevent from auto-mergin when an approved PR has been updated. It would be nice, though, when the label would get removed, too as a new review is required anyway (and the PR is factually not approved anymore when the PR has been updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.