ProMonitor is a simple tool that displays open Pull Requests from defined gitshit repositories. It's main goal is to display reviewers status along with other basic informations like time from last update, author, repository etc.
Open live version of promonitor: devballteam.github.io/promonitor. You will be redirected to config page. Now you have to create config JSON. Instruction and example is provided on config page. Another example can be found below.
Config is stored in your localStorage
.
{
"token": "your_github_token",
"refreshTime": 300000,
"defaultBranch": "develop",
"ticketsUrl": "https://jira.your_company_domain.com/browse/",
"ignoreBots": false,
"reminder": {
"hours": ["9:30", "11:00", "14:00"],
"duration": 1800000,
"message": "The time has come to check Pull Requests!"
},
"repos": [
{"fullName": "mateuszgachowski/Carpet.js"},
{"fullName": "zeit/hyper-site", "defaultBranch": "master", "refreshTime": 1200000},
{"fullName": "devballteam/promonitor", "defaultBranch": "master"}
]
}
token
: GitHub token. You can create one in your settings page. During creation of token enable repo
in scope section. If you like to display PR from private repositories you will have to authenticate by clicking on sso
button after token is created.refreshTime
: Time in milliseconds to next refresh. On each main refrest list of PR is updated. If new PR appear then it will be added to list. From now PR is refreshed independent from main list. Time to next refresh is displayed on top of the page (for PR list) and in left bottom corner of each PR.defaultBranch
: It's name of branch PR is aiming to mere. If someone accidental create PR with different target then you will see red warning in top left corner with branch name.ticketsUrl
: Link to your issue tracker. To make it work you have to begin your PR with ticket ID like: PROJECTNAME-NUMBER
or TEAMNAME NUMBER
(so its text and number separated with space or dash).ignoreBots
: Optional If true
then PR created by GitHub bots will be ignored. Default it false
. It could be also array of names of bots which PR will be ignored.reminder
: By defining this object You enable reminder feature. Once enabled You will see reminder timer next to update timer. It will remind Your team on specified hours that they should look at Pull Requests. Reminder is displayed as clearly visible red border around whole screen with message at the bottom.reminder.hours
: Optional Array with hours in string format. By default its ["11:00", "14:00"].reminder.duration
: Optional How long reminder message should be visible. Value in milliseconds. Default is 30 min.reminder.message
: Optional Your reminder message. Default value is: "It's time to review Pull Requests.".repos
: List of repositories you like to monitor.repos[].fullName
: Name of repository.repos[].defaultBranch
: Optional You can specify different default branch for each repository if you like to have it different then main defaultBranch
.repos[].refreshTime
: Optional You can specify different refresh time for each repository if you like to have it different then main refreshTime
.