Skip to content

Commit 40da0c5

Browse files
committed
fixed random char
1 parent 60261b7 commit 40da0c5

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

dist/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36996,9 +36996,6 @@ async function run() {
3699636996
const autoMerge = core.getBooleanInput('auto_merge') || false;
3699736997
const addTimestamp = core.getBooleanInput('add_timestamp') || true;
3699836998
const updateFromSource = core.getBooleanInput('update_from_source') || false;
36999-
if (addTimestamp) {
37000-
branch = `${branch}-${new Date().toISOString().replace(/[:.]/g, '-')}`;
37001-
}
3700236999
if (!token) {
3700337000
throw new Error('GitHub token is required. Please provide a token with appropriate permissions.');
3700437001
}
@@ -37314,9 +37311,10 @@ async function updatePR(octokit, owner, repo, prNumber) {
3731437311
// Create a new PR
3731537312
async function createPR(octokit, owner, repo, branchName, targetBranch, isFromFern) {
3731637313
core.info(`Creating new PR from ${branchName} to ${targetBranch}`);
37314+
const date = new Date().toISOString().replace(/[:.]/g, '-');
3731737315
let prTitle = isFromFern ?
37318-
'Update API specifications with fern api update' :
37319-
'Update OpenAPI specifications';
37316+
'chore: Update API specifications with fern api update (${date})' :
37317+
'chore: Update OpenAPI specifications (${date})';
3732037318
let prBody = isFromFern ?
3732137319
'Update API specifications by running fern api update.' :
3732237320
'Update OpenAPI specifications based on changes in the source repository.';

src/sync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ 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-
33+
3434
if (!token) {
3535
throw new Error('GitHub token is required. Please provide a token with appropriate permissions.');
3636
}
@@ -392,7 +392,7 @@ async function updatePR(octokit: any, owner: string, repo: string, prNumber: num
392392
// Create a new PR
393393
async function createPR(octokit: any, owner: string, repo: string, branchName: string, targetBranch: string, isFromFern: boolean): Promise<any> {
394394
core.info(`Creating new PR from ${branchName} to ${targetBranch}`);
395-
const date = new Date().toISOString().replace(/[:.]/g, '-')};
395+
const date = new Date().toISOString().replace(/[:.]/g, '-');
396396

397397

398398
let prTitle = isFromFern ?

0 commit comments

Comments
 (0)