Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions source.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <iostream>

#warning "WARNING!!!!"

[[nodiscard]] int func() { return 42; }

int main() {
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ for (const file of readdirSync(".")) {
continue;
}

console.log("found ", file, ", detecting warnings...");

const compilation_output = readFileSync(file).toString();

const regex = /warning( .\d+)?:/;
Expand All @@ -41,7 +43,10 @@ for (const file of readdirSync(".")) {
}
}

console.log("body is", body);

if (body) {
console.log("leaving comment");
octokit.rest.issues.createComment({
owner,
repo,
Expand Down