diff --git a/.github/scripts/create-platform-release-pr.sh b/.github/scripts/create-platform-release-pr.sh index dc218254..223989a2 100755 --- a/.github/scripts/create-platform-release-pr.sh +++ b/.github/scripts/create-platform-release-pr.sh @@ -172,7 +172,7 @@ if gh pr list --head "${RELEASE_BRANCH_NAME}" --json number --jq 'length' | grep else gh pr create \ --draft \ - --title "feat: ${NEW_VERSION}" \ + --title "release: ${NEW_VERSION}" \ --body "${RELEASE_BODY}" \ --head "${RELEASE_BRANCH_NAME}" echo "Release PR Created" diff --git a/.github/scripts/generate-rc-commits.mjs b/.github/scripts/generate-rc-commits.mjs index ceb007d8..0be37e28 100644 --- a/.github/scripts/generate-rc-commits.mjs +++ b/.github/scripts/generate-rc-commits.mjs @@ -80,7 +80,6 @@ async function filterCommitsByTeam(platform, branchA, branchB) { try { const git = simpleGit(); - const logOptions = { from: branchB, to: branchA, @@ -151,7 +150,8 @@ function formatAsCSV(commitsByTeam) { stripDelimiter(commit.message, ','), stripDelimiter(commit.author, ','), commit.prLink, - stripDelimiter(team, ','),, + stripDelimiter(team, ','), + , assignChangeType(commit.message), ]; csvContent.push(row.join(',')); @@ -169,7 +169,6 @@ function stripDelimiter(inputString, delimiter) { return inputString.replace(regex, ''); } - // Helper function to escape CSV fields function escapeCSV(field) { if (field.includes(',') || field.includes('"') || field.includes('\n')) { @@ -180,7 +179,12 @@ function escapeCSV(field) { // Helper function to create change type function assignChangeType(field) { if (field.includes('feat')) return 'Added'; - else if (field.includes('cherry') || field.includes('bump')) return 'Ops'; + else if ( + field.includes('cherry') || + field.includes('bump') || + field.includes('release') + ) + return 'Ops'; else if ( field.includes('chore') || field.includes('test') ||