File tree 1 file changed +3
-2
lines changed
scripts/jsdoc-automation/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class GitManager {
57
57
58
58
/**
59
59
* Creates a new branch in the GitHub repository using the given branch name and base branch.
60
- *
60
+ *
61
61
* @param {string } branchName - The name of the new branch to be created.
62
62
* @param {string } baseBranch - The name of the branch to base the new branch off of.
63
63
* @returns {Promise<void> } - A Promise that resolves when the branch is successfully created.
@@ -77,7 +77,7 @@ export class GitManager {
77
77
78
78
/**
79
79
* Asynchronously commits a file to a repository using the GitHub API.
80
- *
80
+ *
81
81
* @param {string } branchName - The name of the branch to commit the file to.
82
82
* @param {string } filePath - The path of the file to commit.
83
83
* @param {string } content - The content of the file to commit.
@@ -104,6 +104,7 @@ export class GitManager {
104
104
} ) ;
105
105
} catch ( error : any ) {
106
106
if ( error . status === 404 ) {
107
+ console . log ( '404 - File doesn\'t exist in the target branch, creating a new file' ) ;
107
108
// File doesn't exist in the target branch, create a new file
108
109
await this . octokit . repos . createOrUpdateFileContents ( {
109
110
owner : this . repository . owner ,
You can’t perform that action at this time.
0 commit comments