Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit e1fa375

Browse files
authored
feat: support after comment (#386)
close #384
1 parent c967710 commit e1fa375

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/config/Config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export interface Config {
22
sigInfoFileName?: string;
33
maintainerTeamSlug: string;
4+
afterComment?: string;
45
}
56

67
export const DEFAULT_SIG_INFO_FILE_NAME = "member-list";

src/events/pull/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ async function updateSigInfo(context: Context, sigService: SigService) {
157157
await context.octokit.issues.createComment(
158158
context.issue({ body: reply.message })
159159
);
160+
const config = await context.config<Config>(DEFAULT_CONFIG_FILE_PATH);
161+
if (config?.afterComment){
162+
await context.octokit.issues.createComment(
163+
context.issue({ body: config?.afterComment })
164+
);
165+
}
160166
break;
161167
}
162168
}

0 commit comments

Comments
 (0)