0.0.7 • Published 3 years ago
clear-required-approvals v0.0.7
clear-required-approvals
A small script meant to run alongside RenovateBot to clear any required approvals on any "automerge" Gitlab MRs.
How To Use
- Install
clear-required-approvals
yarn add clear-required-approvals
# or
npm install clear-required-approvals
Ensure you have a proper RenovateBot environment.
- Be sure you have
RENOVATE_CONFIG_FILE
available in your env. - Be sure you have
RENOVATE_TOKEN
available in your env.
- Be sure you have
(Optional) Set your target MR label.
- By default, this script looks for MRs with the label "RenovateBot: Automerge". If you wish to target a different label, set
CLEAR_REQUIRED_APPROVALS_LABEL="<my automerge label>"
.
- By default, this script looks for MRs with the label "RenovateBot: Automerge". If you wish to target a different label, set
Wherever you run
./node_modules/.bin/renovate
, run./node_modules/.bin/clear-required-approvals
before it.
Contributing
Repo: https://gitlab.com/blackarctic/clear-required-approvals
Be sure to run yarn run check
to ensure proper formatting and linting.
Authors
Created by Nick Galloway