Skip to content

Commit 88ccbea

Browse files
committed
apply changes from suggestion
1 parent 00be879 commit 88ccbea

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/ci/codegen/__tests__/codegen.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('codegen', () => {
5858
expect(await getCommentBody('noGen')).toMatchInlineSnapshot(`
5959
"✗ No code generated.
6060
61-
_If you believe this is an issue on our side, please [open an issue](https://github.com/algolia/api-clients-automation/issues/new)_"
61+
_If you believe this is an issue on our side, please [open an issue](https://github.com/algolia/api-clients-automation/issues/new?template=Bug_report.md)_"
6262
`);
6363
});
6464

scripts/ci/codegen/pushGeneratedCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { run } from '../../common';
33
import { configureGitHubAuthor } from '../../release/common';
44

55
const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0', 10);
6-
const FOLDERS_TO_CHECK = 'clients specs/bundled';
6+
const FOLDERS_TO_CHECK = 'openapitools.json clients specs/bundled';
77

88
/**
99
* Push generated code for the current `JOB` and `CLIENT` on a `generated/` branch.

scripts/ci/codegen/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
},
1010
noGen: {
1111
header: '✗ No code generated.',
12-
body: `_If you believe this is an issue on our side, please [open an issue](${REPO_URL}/issues/new)_`,
12+
body: `_If you believe this is an issue on our side, please [open an issue](${REPO_URL}/issues/new?template=Bug_report.md)_`,
1313
},
1414
codegen: {
1515
header: '✔️ Code generated!',

scripts/ci/codegen/upsertGenerationComment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const octokit = new Octokit({
1616
const args = process.argv.slice(2);
1717
const allowedTriggers = ['notification', 'codegen', 'noGen'];
1818

19-
type Trigger = 'codegen' | 'noGen' | 'notification';
19+
type Trigger = keyof typeof commentText;
2020

2121
export async function getCommentBody(trigger: Trigger): Promise<string> {
2222
if (trigger === 'notification' || trigger === 'noGen') {

0 commit comments

Comments
 (0)