Skip to content

Commit d93a7ef

Browse files
committed
feat: add support for agentic plugin documentation
1 parent 728a579 commit d93a7ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/jsdoc-automation/src/GitManager.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class GitManager {
5757

5858
/**
5959
* Creates a new branch in the GitHub repository using the given branch name and base branch.
60-
*
60+
*
6161
* @param {string} branchName - The name of the new branch to be created.
6262
* @param {string} baseBranch - The name of the branch to base the new branch off of.
6363
* @returns {Promise<void>} - A Promise that resolves when the branch is successfully created.
@@ -77,7 +77,7 @@ export class GitManager {
7777

7878
/**
7979
* Asynchronously commits a file to a repository using the GitHub API.
80-
*
80+
*
8181
* @param {string} branchName - The name of the branch to commit the file to.
8282
* @param {string} filePath - The path of the file to commit.
8383
* @param {string} content - The content of the file to commit.
@@ -104,6 +104,7 @@ export class GitManager {
104104
});
105105
} catch (error: any) {
106106
if (error.status === 404) {
107+
console.log('404 - File doesn\'t exist in the target branch, creating a new file');
107108
// File doesn't exist in the target branch, create a new file
108109
await this.octokit.repos.createOrUpdateFileContents({
109110
owner: this.repository.owner,

0 commit comments

Comments
 (0)