new BranchManager(octokit, orgName, repoName, mainBranchName)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
octokit |
Object | Octokit instance |
|
orgName |
String | GitHub organization name |
|
repoName |
String | GitHub repository name |
|
mainBranchName |
String | main | Main branch name |
- Source:
Methods
-
<async> createBranchFromMain()
-
Creates a new branch from the main branch
- Source:
Returns:
ResponseFactory result
- Type
- Promise.<Array>
-
<async> mergeBranchToMain(branchName, sha, commitDescription)
-
Merges a branch into the main branch
Parameters:
Name Type Default Description branchName
String Branch to merge
sha
String Commit SHA
commitDescription
String Performed CRUD operation on objects. Commit description
- Source:
Returns:
ResponseFactory result
- Type
- Promise.<Array>