Skip to content
The bot for approving pull requests
TypeScript JavaScript
Branch: master
Clone or download
dependabot-preview and dkhmelenko Bump nock from 11.3.1 to 11.3.3 (#26)
Bumps [nock](https://github.com/nock/nock) from 11.3.1 to 11.3.3.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](nock/nock@v11.3.1...v11.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 8c791ef Sep 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
lib Fix backward compatibility for blacklisted labels (#11) Aug 3, 2019
src Fix backward compatibility for blacklisted labels (#11) Aug 3, 2019
test Bump standard from 10.0.3 to 14.1.0 (#15) Aug 30, 2019
.env.example Initial commit Nov 22, 2018
.gitignore
.travis.yml Enable sudo in travis config Aug 30, 2019
CODE_OF_CONDUCT.md Initial commit Nov 22, 2018
CONTRIBUTING.md Initial commit Nov 22, 2018
LICENSE Initial commit Nov 22, 2018
README.md
app.yml Initial commit Nov 22, 2018
autoapproval.2018-12-05.private-key.pem
jest.config.js Initial commit Nov 22, 2018
package-lock.json Bump nock from 11.3.1 to 11.3.3 (#26) Sep 10, 2019
package.json Bump nock from 11.3.1 to 11.3.3 (#26) Sep 10, 2019
tsconfig.json

README.md

autoapproval

Build Status codecov

A GitHub App built with Probot for approving pull requests automatically

image

Setup

# Install dependencies
npm install

# Run typescript
npm run build

# Run the bot
npm start

This app requires Write code permissions in order not to have issues with approving PRs.

Repository administrators can require that all pull requests receive a specific number of approving reviews from people with write or admin permissions in the repository or from a designated code owner before they're merged into a protected branch.

...

You won't be able to merge your pull request until the required number of reviewers with write or admin permissions in the repository approve your pull request's changes in their review.

More about it can be found on Github Help.

Configuration

In order to use the bot, the config file should be provided. Config file should be defined in your repository. Config file is the yml file with the path .github/autoapproval.yml. The file should have 3 entries.

from_owner

Defines the list of users, whos pull requests should be approved automatically. For example:

from_owner:
  - dkhmelenko
  - quongeri

Assign an empty array if you want to approve PRs from any user (example: from_owner: []).

required_labels

Defines the list of labels on PR, which should be present for approving PR automatically. For example:

required_labels:
  - ready

Assign an empty array if you want to approve PRs without any label (example: required_labels: []).

blacklisted_labels

Defines the list of labels on PR, which will prevent the PR from being automatically approved. For example:

blacklisted_labels:
  - wip

Assign an empty array if you do not want to blacklist any labels.

apply_labels

Defines the list of labels on PR, which should be added once PR was approved automatically. For example:

apply_labels:
  - merge

Assign an empty array if no labels should be applied to PRs (example: apply_labels: []).

NOTES:

  1. If label doesn't exist, it will not be created. In order to apply the label after approving PR automatically, you need to define the label beforehand.
  2. If PR already contains all labels from apply_labels config, it will not be approved assuming that it was already approved.

Contributing

If you have suggestions for how autoapproval could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2018 Dmytro Khmelenko

You can’t perform that action at this time.