Code Monkey home page Code Monkey logo

octobors's Introduction

๐Ÿ†™ octobors

Embark Embark dependency status Build status

A Rust program for automerging PRs based on a few rules.

Why?

We made our own automerge program because we couldn't find an existing solution that did exactly what we wanted.

  1. Github's auto-merge relies on branch protection rules, some of which we think are kind of broken (required review count), and some of which we don't want to use for other reasons. You also still have to click a button! The horror!
  2. Mergify - External service that we don't want to use for our private repos
  3. automerge-action - Only provided part of the functionality we wanted, and still relies too heavily on branch protections.

Usage

export GITHUB_TOKEN="my-github-secret-token"
octobors path/to/config.toml

Run the octobors binary, giving it a path to a config file containing the repos you wish to process. A GitHub token with write permission to the repo must be found in the GITHUB_TOKEN environment variable.

See config/example.toml for the configuration that Octobors expects.

We recommend running this on a periodic schedule every minute using cron, Kubernetes Cronjobs, or similar. Unfortunately GitHub actions schedules can be delayed by up-to 30 minutes and so are not suitable, at least not unless you are happy to wait a long time for PRs to get merged.

Alternatives

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

octobors's People

Contributors

jake-shadle avatar lpil avatar

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.