All Projects → Talkdesk → pr-police

Talkdesk / pr-police

Licence: MIT License
⚠️ Pr. Police is deprecated and no longer supported ⚠️

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pr-police

HacktoberFest2021
Dedicated to hactoberFest2021
Stars: ✭ 30 (-50%)
Mutual labels:  pull-requests
operationcode-pybot
Operation Code's Official Slackbot
Stars: ✭ 29 (-51.67%)
Mutual labels:  slackbot
SlackWebhooksGithubCrawler
Search for Slack Webhooks token publicly exposed on Github
Stars: ✭ 21 (-65%)
Mutual labels:  slackbot
git-slack-notify
Sends Slack notifications for new commits in Git repositories
Stars: ✭ 12 (-80%)
Mutual labels:  slackbot
hacktoberfest20
Participate in Hacktoberfest by contributing to any Open Source project on GitHub! Here is a starter project for first-time contributors. #hacktoberfest20. Don’t forget to read the README.md for guidance.
Stars: ✭ 18 (-70%)
Mutual labels:  pull-requests
backup-github-repo
Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML
Stars: ✭ 31 (-48.33%)
Mutual labels:  pull-requests
pr-reviews-reminder-action
A GitHub Action to send Slack/Teams notification for Pull Request that are waiting for reviewers.
Stars: ✭ 18 (-70%)
Mutual labels:  pull-requests
iou-slack-bot
💸 IOU Slack Bot - Keep track of your debts with your peers.
Stars: ✭ 13 (-78.33%)
Mutual labels:  slackbot
pr-title-checker
An action to automatically check if pull request titles conform to Contribution Guidelines
Stars: ✭ 38 (-36.67%)
Mutual labels:  pull-requests
dienstplan
Slack bot app for duty rotations
Stars: ✭ 14 (-76.67%)
Mutual labels:  slackbot
slack-cat
meow
Stars: ✭ 16 (-73.33%)
Mutual labels:  slackbot
slack widgets
An abstraction of the JSON structure needed to create widgets in Slack message attachments
Stars: ✭ 14 (-76.67%)
Mutual labels:  slackbot
stack-attack
A WIP CLI tool that manages stacked pull requests. Using stacked PRs is now (many small) pieces of cake
Stars: ✭ 39 (-35%)
Mutual labels:  pull-requests
auto-request-review
A GitHub Action that automatically requests review of a pull request based on files changes and/or groups the author belongs to 🤖
Stars: ✭ 52 (-13.33%)
Mutual labels:  pull-requests
vet
Gerrit client using pull request workflow
Stars: ✭ 21 (-65%)
Mutual labels:  pull-requests
rota-slackbot
Slackbot that helps manage rotations.
Stars: ✭ 50 (-16.67%)
Mutual labels:  slackbot
pscale-workflow-helper-scripts
Workflows and helper scripts around the PlanetScale DB workflow to automate database branch creation, association, update and merge directly out of your pull/merge request or favourite CI/CD.
Stars: ✭ 42 (-30%)
Mutual labels:  pull-requests
DSA
Write DSA Codes into it
Stars: ✭ 18 (-70%)
Mutual labels:  pull-requests
HacktoberFest-HelloWorld
All your PRs will be merged !! 😊
Stars: ✭ 24 (-60%)
Mutual labels:  pull-requests
pull-request-comment-branch
A GitHub Action to get the head ref and sha of a pull request comment
Stars: ✭ 21 (-65%)
Mutual labels:  pull-requests

⚠️ Pr. Police is deprecated and no longer supported ⚠️

GitHub has incorporated a similar feature and now enables you, your team or organization to be reminded when pull requests are waiting for review.


Pr. Police

Pr. Police logo

About

Pr. Police is a slackbot that sends to configured slack channels a listing of open pull requests that are waiting for a review. It supports watching multiple repositories, and filtering the pull requests by label.

This project is part of the Talkdesk Hackathon April 2017.

Running the bot

The quick and easy way

The easiest way to get an instance of Pr. Police up and running is to deploy it to Heroku by clicking on the button below.

Deploy

You'll still need to fill in all the environment variables. For more info on this, head down to the Configuration section.

Via NPM

npm install pr-police

Manually

Git clone this repository then:

npm install

Run

npm start

This will start the server locally until Ctrl-C is pressed.

Note: You will need to pass all the required env vars.

Configuration

Pr. Police has the following environment variables available:

DEBUG

Debug flag used to enable more verbose logging. Default: false

DAYS_TO_RUN

Which days of the week to run on. Default: Monday,Tuesday,Wednesday,Thursday,Friday

GH_TOKEN

The github account token to access the repos. Required.

SLACK_TOKEN

The slack token for the bot to access your slack team. Required.

GH_REPOS

The list of repositories to watch. The format is user/repo and comma separated. Required.

Example: rogeriopvl/gulp-ejs,rogeriopvl/pullhub,talkdesk/pr-police

GH_EXCLUDE_LABELS

The list of labels that will cause a pull-request to be excluded. So imagine, your team uses the label in-progress for pull-requests not yet requiring review, you'll have to fill in: in-progress. Supercedes GH_LABELS. Multiple labels are comma separated.

Example: do-not-merge,in-progress,needs-work

GH_LABELS

The list of labels to filter pull-requests. So imagine, your team uses the label needs review for pull-requests waiting for review, you'll have to fill in: needs review. Multiple labels are comma separated. Optional.

NOTE: Omitting both GH_EXCLUDE_LABELS and GH_LABELS will result in all open pull-requests being reported for the specified GH_REPOS.

SLACK_CHANNELS

The list of channel names on your team where Pr. Police will post the announcements. Multiple channels are comma separated. Either SLACK_CHANNELS or SLACK_GROUPS is required.

Example: notifications

SLACK_GROUPS

The list of private group names on your team where Pr. Police will post the announcements. Multiple channels are comma separated. Either SLACK_CHANNELS or SLACK_GROUPS is required.

SLACK_BOT_NAME

The name of your Pr. Police bot on slack. Optional.

SLACK_BOT_ICON

URL of the icon for the slack bot when sending messages.

TIMES_TO_RUN

What times of day to run (24-hour format, leading zeroes are not necessary). Multiple times are comma-separated. Default: 0900.

TZ

The timezone the server should use. Heroku default is UTC. Uses tz database timezone format. Example: America/Los_Angeles.

Heroku configuration

If heroku attempts to start a web process instead of a worker, you may need to run: heroku ps:scale web=0 worker=1 -a {HEROKU_APP_NAME}

Credits

Pr. Police was developed by Rogério Vicente during one of Talkdesk's internal hackathons.

Artwork created by Micaela Neto

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].