Skip to content

Commit b0dfce5

Browse files
committed
use login
1 parent b2474b2 commit b0dfce5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ if (!process.env.GITHUB_REF?.startsWith("refs/pull/")) {
66
process.exit(0);
77
}
88

9-
const userID = 209109756;
109
const appId = parseInt(process.env.INPUT_APP_ID!);
1110
const privateKey = process.env.INPUT_PRIVATE_KEY!;
1211
const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
@@ -173,8 +172,8 @@ if (body) {
173172
issue_number: pull_request_number,
174173
});
175174
for (const comment of comments) {
176-
console.log(comment.user?.id, comment.user?.name);
177-
if (userID === comment.user?.id) {
175+
console.log(comment.user?.id, comment.user?.login);
176+
if ("cppwarningnorifier[bot]" == comment.user?.login) {
178177
console.log("self-commented comment found");
179178
await octokit.graphql(`
180179
mutation {

0 commit comments

Comments
 (0)