Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wemake-services/kira-stale
:chipmunk: Kira's micro-bot to fight with stale GitLab issues and merge requests
https://github.com/wemake-services/kira-stale
bot gitlab gitlab-bot gitlab-ci kira-bot rsdp wemake-services
Last synced: 9 days ago
JSON representation
:chipmunk: Kira's micro-bot to fight with stale GitLab issues and merge requests
- Host: GitHub
- URL: https://github.com/wemake-services/kira-stale
- Owner: wemake-services
- License: mit
- Created: 2019-03-17T10:02:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T15:41:01.000Z (6 months ago)
- Last Synced: 2024-10-29T23:51:11.895Z (19 days ago)
- Topics: bot, gitlab, gitlab-bot, gitlab-ci, kira-bot, rsdp, wemake-services
- Language: Procfile
- Homepage:
- Size: 76.2 KB
- Stars: 15
- Watchers: 4
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kira Stale Bot
[![wemake.services](https://img.shields.io/badge/%20-wemake.services-green.svg?label=%20&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake.services)
[![kira-family](https://img.shields.io/badge/kira-family-pink.svg)](https://github.com/wemake-services/kira)
[![Build Status](https://travis-ci.org/wemake-services/kira-stale.svg?branch=master)](https://travis-ci.org/wemake-services/kira-stale)
[![Dependencies Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://github.com/wemake-services/kira-stale/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)Automate routine work with stale GitLab issues and merge requests.
Part of the [`@kira`](https://github.com/wemake-services/kira) bots family.
## Adding new actions
Policy:
1. All actions must be idempotent: multiple runs – the same state
2. All actions must make sense for all projects
3. Dry run your script several times with `--dry-run` flag to make sure it works## Installation
We use `gitlab-triage` inside.
So, consult [their docs](https://gitlab.com/gitlab-org/gitlab-triage)
about deployment and usage.You can even have a look at [GitLab's internal policies](https://gitlab.com/gitlab-org/quality/triage-ops/blob/master/policies).
It is possible to use this setup with `.gitlab-ci.yml` and Heroku.
### Labels setup
You will need to create this set of labels:
- `deadline:soft`
- `deadline:hard`
- `deadline:miss`
- `validation:labels`
- `validation:stale`
- `validation:estimate`
- `validation:invalid`
- `notification:first`
- `notification:last`You can use [`kira-setup`](https://github.com/wemake-services/kira-setup) to create these labels for you.
### Heroku setup
To setup a new Heroku server you will need to:
1. Setup a [scheduler](https://elements.heroku.com/addons/scheduler)
2. Setup all env vars with tokens and ids
3. Enjoy!Use `worker` process type to run inside a scheduler every 10 minutes.
Make sure to fill all env vars with the correct values.### GitLab CI setup
You can generate `.gitlab-ci.yml` file to run this script as scheduled events:
1. Use `--init-ci` to generate default `.gitlab-ci.yml` file
2. Enable [scheduled builds in CI](https://docs.gitlab.com/ee/user/project/pipelines/schedules.html)