Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
/ ci-bully Public archive
forked from ahelal/ci-bully

CI bully is a go program that will warn and close github PRs that are long living

License

Notifications You must be signed in to change notification settings

hellofresh/ci-bully

 
 

Repository files navigation

Build Status

CI Bully

CI bully is a go program that will warn and close github PRs that are long living. You can define the actions in the configuration. Ideally we want to developers to avoid using long living branches.

It is better to run PR bully from a CI daily. Keep in mind CI bully does not keep state or check if it posted before.

Config

---
## Define the token in yaml or environment variable "GITHUB_TOKEN"
#token: "XxxXXXXxxxx"

## Only count the workdays. Defaults to false
#only_workdays: true 

## Count using the last commit date, instead of the date when PR was created. Defaults to false
#days_since_last_commit: true 

actions:
    # if you specify last anything greater than last will be enforced
  - day: 14
    last: true
    action: close
    message: |
              Hi _USER_ this PR exceeded _SINCE_ days in open state.
              We are trying to encourage developers to integrate with master quicker ideally daily.
              I will **close** this PR now.
              Please open a new PR if this branch is still needed.

  - day: 12
    action: warn
    message: |
              Hi _USER_ this PR exceeded _SINCE_ days in open state.
              We are trying to encourage developers to integrate with master quicker ideally daily.
              This is the last warning I will close this PR in _TILL_ days.
  - day: 7
    action: warn
    message: |
              Hi _USER_ this PR exceeded _SINCE_ days in open state.
              We are trying to encourage developers to integrate with master quicker ideally daily.
              I will close this PR in _TILL_ days.

  - day: 1
    action: warn
    message: |
              Hi _USER_ we are trying to encourage developers to integrate with master quicker ideally daily.

repos:
 - "ahelal/avm"
 - "ahelal/t-template"
 - "ahelal/ansible-concourse"

Running CI-bully

CI bully does not keep state so it is important to run only once a day always at the same time, if you don't want to spam people.

About

CI bully is a go program that will warn and close github PRs that are long living

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 70.7%
  • Makefile 25.8%
  • Dockerfile 2.5%
  • Shell 1.0%