Displays useful information about pull requests you have made as well as pull requests you reviewed.
Can display results for a specific quarter or a year (see below)
- Clone project
- run
npm install
- Open
main.ts
- On line 5 insert your Bitbucket username (can be located on this page)
- On line 6 insert an app password (view/create app passwords here)
- On line 7 insert your work space name
- On line 8 insert the branches which you care about merges into, these are compared by startsWith, eg. inserting
release
will check for pull requests to any branch that starts with the wordrelease
- On line 9 insert the year you want to get the statistics for
- On line 10 set the quarter eg 'Q2' you want to get statistics for (set to null to get annual statistics)
- run
npm run build
- cd into the
dist
folder and runnode main.js
TODO:
- Add error handling
- Use partial responses to get the bitbucket api to send back only the values needed
- Make this a package runnable from the command line.