Skip to content

Commit 60261b7

Browse files
committed
removed date from branch
1 parent b914188 commit 60261b7

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/sync.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ export async function run(): Promise<void> {
3030
const autoMerge = core.getBooleanInput('auto_merge') || false;
3131
const addTimestamp = core.getBooleanInput('add_timestamp') || true;
3232
const updateFromSource = core.getBooleanInput('update_from_source') || false;
33-
34-
if (addTimestamp) {
35-
branch = `${branch}-${new Date().toISOString().replace(/[:.]/g, '-')}`;
36-
}
3733

3834
if (!token) {
3935
throw new Error('GitHub token is required. Please provide a token with appropriate permissions.');
@@ -396,10 +392,12 @@ async function updatePR(octokit: any, owner: string, repo: string, prNumber: num
396392
// Create a new PR
397393
async function createPR(octokit: any, owner: string, repo: string, branchName: string, targetBranch: string, isFromFern: boolean): Promise<any> {
398394
core.info(`Creating new PR from ${branchName} to ${targetBranch}`);
395+
const date = new Date().toISOString().replace(/[:.]/g, '-')};
396+
399397

400398
let prTitle = isFromFern ?
401-
'Update API specifications with fern api update' :
402-
'Update OpenAPI specifications';
399+
'chore: Update API specifications with fern api update (${date})' :
400+
'chore: Update OpenAPI specifications (${date})';
403401

404402
let prBody = isFromFern ?
405403
'Update API specifications by running fern api update.' :

0 commit comments

Comments
 (0)