We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d969684 commit 2bbb87bCopy full SHA for 2bbb87b
source/app/action/index.mjs
@@ -538,6 +538,17 @@ function quit(reason) {
538
}
539
540
541
+ // Add a sanity check: from lyc8503/my-readme-metrics
542
+ const stargazers = Number((/(\d+) Stargazers/.exec(buffer.content.toString()))?.[1])
543
+ if (stargazers > 0) {
544
+ console.log("Sanity check passed: " + stargazers)
545
+ } else {
546
+ console.log("!! Sanity check failed, skip uploading: " + stargazers)
547
+ committer.gist = false
548
+ committer.commit = false
549
+ committer.pr = false
550
+ }
551
+
552
//Upload to gist (this is done as user since committer_token may not have gist rights)
553
if (committer.gist) {
554
await retry(async () => {
0 commit comments