Giter VIP home page Giter VIP logo

cherry-pick-bot's People

Contributors

adtac avatar yukiisbored avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

cherry-pick-bot's Issues

Do not export when it's a main package

Continuation of #8

Sources that uses the main package shouldn't have exported variables because it's useless and can cause confusion due to the fact the main package can't be used by anything.

Use actual config files

It's better to have an actual editable at runtime files rather than a config file that'll be included in the resulting binary.

Use imports properly

The imports statements should be changed to the proper repository links not just the package name.

For example,

import "github.com/google/go-querystring"

instead of

import "query"

This is due to the fact go get does dependency getting.

Implement logging

Logging helps users and administrators to see what the program is doing. This is a needed feature especially for a bot in case of a bug or crash.

Do not put everything to main()

Do not put everything to main() because it increases code complexity by orders of magnitude thus killing maintainability.

Make error messages clear

Plainly giving error messages generated by the libraries used causes confusion for the user. Context should be added.

Docker image

A Docker image would be nice to easily host this to solar.coala.io

Do not use panic on functions

panic should only be handled on parts of the program that's directly involve main or in main itself. functions shouldn't panic, it should return the error and let the caller handle it.

Reuse existing PR

If the bot has write permissions, and pr author has granted permission to update the patch, the bot should force push to the PR.

This gives a purple merged PR instead of a red closed PR.

PR proliferation makes it harder to follow the history.
Red unmerged PRs are an important search query to check unsuccessful PRs, and this bot will make that query (and metrics) useless.

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.