This should be really short haha 😃, considering the branch script is the smallest of them (The Scripts) all.
The Branch Script's primary assignment is to hold all helper functions that can be used to perform operation related to References (aka Branch) on the GitHub APIs.
The Script
Noting the primary responsibility of the branch script which is
to create a reference/branch of repo (in this case would be the jargons.dev repo fork) on an authenticated user's account. I got to work quickly by doing the following...
Implemented the main
createBranchfunction in the branch script which accepts necessary param to perform the following operation in the stated order...
- It initially fetches the forked repository main branch where we wished to create the new branch off of; it does this using the
getBranchhelper (a function that was created in the
- It initially fetches the forked repository main branch where we wished to create the new branch off of; it does this using the
posted on