So a Repository having heavy traffic always tends to be having more and more OPEN, MERGED and DECLINED branches. We came up with this idea of creating a Jenkins Job which could be run once in a while to DELETE all the MERGED and unused branches by the Developer.
The JSON file which is getting generated does not contain the information of BRANCH STATUS. So is there a way i can get such information, an additional key value pair after the isDefault parameter just like ...
"branchStatus" : MERGED/DECLINED/OPEN .
{
"size": 312,
"limit": 500,
"isLastPage": true,
"values": [
{
"id": "refs/heads/ODC-2843-DC-Scheduler-Service",
"displayId": "ODC-2843-DC-Scheduler-Service",
"type": "BRANCH",
"latestCommit": "fcb1cd0fec34c3ab7d9539e23e9cefc1b5c5866e",
"latestChangeset": "fcb1cd0fec34c3ab7d9539e23e9cefc1b5c5866e",
"isDefault": false
},
{
"id": "refs/heads/master",
"displayId": "master",
"type": "BRANCH",
"latestCommit": "fe3d3c678adb7d1f6c472002ef88dafca3295089",
"latestChangeset": "fe3d3c678adb7d1f6c472002ef88dafca3295089",
"isDefault": true
},
}