Skip to content

Commit

Permalink
chore: use skip-checks trailers [skip-bc] (#3982)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Oct 17, 2024
1 parent e3ec895 commit 70f2f49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions scripts/ci/codegen/pushGeneratedCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ export async function pushGeneratedCode(): Promise<void> {
let baseMessage = IS_RELEASE_COMMIT && isMainBranch ? text.commitReleaseMessage : `%s ${text.commitEndMessage}`;

const commitMessage = await run(
`git show -s ${baseBranch} --format="${baseMessage} [skip-ci]
`git show -s ${baseBranch} --format="${baseMessage}
Co-authored-by: %an <%ae>
%(trailers:key=Co-authored-by)"`,
skip-checks: true
%(trailers:key=Co-authored-by)
%(trailers:key=skip-checks)"`,
);

console.log(`Pushing code to generated branch: '${branchToPush}'`);
await run('git add .');
await run(`git commit -m "${commitMessage.replaceAll('"', '\\"')}"`);
await run(`git commit -m "${commitMessage.replaceAll('"', '\\"')}" --cleanup=verbatim`);
await run(`git push origin ${branchToPush}`);

setOutput('GENERATED_COMMIT', await run('git rev-parse HEAD'));
Expand Down
1 change: 0 additions & 1 deletion specs/ingestion/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ info:
## Response status and errors
Response bodies are JSON objects.
Deleting a user token returns an empty response body with rate-limiting information as headers.
Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status.
Error responses have a `message` property with more information.
Expand Down

0 comments on commit 70f2f49

Please sign in to comment.