Skip to content

Commit aed5400

Browse files
mpdudeSeanKilleen
andcommitted
Log when a key is _not_ used as a deploy key
Resolves #69. Co-authored-by: Sean Killeen <[email protected]>
1 parent 4681241 commit aed5400

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ try {
170170
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i);
171171

172172
if (!parts) {
173+
console.log(`Comment for key '${key}' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.`);
174+
173175
return;
174176
}
175177

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ try {
5353
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i);
5454

5555
if (!parts) {
56+
console.log(`Comment for key '${key}' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.`);
57+
5658
return;
5759
}
5860

0 commit comments

Comments
 (0)