Skip to content

Commit fb8ae0f

Browse files
authored
bugfix (#4)
1 parent d571b15 commit fb8ae0f

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <iostream>
22

3+
#warning "WARNING!!!!"
4+
35
[[nodiscard]] int func() { return 42; }
46

57
int main() {

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ for (const file of readdirSync(".")) {
2525
continue;
2626
}
2727

28+
console.log("found ", file, ", detecting warnings...");
29+
2830
const compilation_output = readFileSync(file).toString();
2931

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

46+
console.log("body is", body);
47+
4448
if (body) {
49+
console.log("leaving comment");
4550
octokit.rest.issues.createComment({
4651
owner,
4752
repo,

0 commit comments

Comments
 (0)