Check the JIRA tickets to be included in a release
Whenever there we are creating releases from the develop
branch, especially with a bit more lengthy releases, is easy to lose track of all the JIRA tickets to be included. Wrote this tiny script that gathers a unique list ot the ticket included in a git diff
between two git branches (usually main/master
and develop
).
- open a terminal and go to your repos directory
- make sure you have both
develop
andmain
(ormaster
) branches up to date from remote:git fetch origin
git checkout develop && git pull
git checkout main && git pull
- get a diff of commits between the two branches with:
git log master...develop --oneline
- paste the output in the
data.txt
file - run the command
node ./index.js
and it should output a unique list with the jira links for all the tickets included in the diff.