A GitHub App built with Probot to enforce docs to be updated as a pull request is being submitted and needs minimum number of reviewers to approve the PR.
- Configure the Github App
- Create
.github/config.yml
based on following template. - It will wait for docs file to be updated and reviewer to review it before marking them as ready to be merged.
A .github/config.yml
file is required to enable the plugin.
# Configuration for probot-min-reviews - https://github.com/hitesh-coder/documentation-manager
_extends: .github
# Number of reviews required to mark the pull request as valid
reviewsUntilReady: 1
# Number of changes in the pull request to start enforcing the reviewsUntilReady rule
changesThreshold: 100
# Message to display when the commit status passes
reviewReadyMessage: 'No pending reviews'
docsReadyMessage: "Document changed"
# Message to display when the commit status fails
reviewNotReadyMessage: 'Pending review approvals'
docsNotReadyMessage: "Please change document"
#list of documents needs to change
listOfDocFiles: ["docs.md"]
# Status to set the commit to when waiting for reviews
# 'failure, error, and pending' are the suggested options
notReadyState: 'pending'
# Install dependencies
npm install
# Build th bot
npm run build
# Run the bot
npm start
# 1. Build container
docker build -t documentation-manager .
# 2. Start container
docker run -e APP_ID=<app-id> -e PRIVATE_KEY=<pem-value> documentation-manager
If you have suggestions for how documentation-manager 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.
ISC © 2022 hitesh-coder [email protected]