I'm trying fetch below details using bitbucket API's.
- list of all repo’s in a project
- list all type of pull requests(OPEN,MERGED) with status, if its merged who has merged
tried- https://api.bitbucket.org/2.0/repositories/turvobitbucket/accounts/pullrequests
Above API call only fetches OPEN PR's
- No. of lines of code added on the branch(ex:master)
tried:
git log --since="3 month ago" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2 } END { printf "Lines added: %s\nLines deleted: %s\n", add, subs }'
in the same way we need BBC API's
Above queries required on monthly basis.