We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
login
1 parent b2474b2 commit b0dfce5Copy full SHA for b0dfce5
1 file changed
src/index.ts
@@ -6,7 +6,6 @@ if (!process.env.GITHUB_REF?.startsWith("refs/pull/")) {
6
process.exit(0);
7
}
8
9
-const userID = 209109756;
10
const appId = parseInt(process.env.INPUT_APP_ID!);
11
const privateKey = process.env.INPUT_PRIVATE_KEY!;
12
const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
@@ -173,8 +172,8 @@ if (body) {
173
172
issue_number: pull_request_number,
174
});
175
for (const comment of comments) {
176
- console.log(comment.user?.id, comment.user?.name);
177
- if (userID === comment.user?.id) {
+ console.log(comment.user?.id, comment.user?.login);
+ if ("cppwarningnorifier[bot]" == comment.user?.login) {
178
console.log("self-commented comment found");
179
await octokit.graphql(`
180
mutation {
0 commit comments