Skip to content

Commit

Permalink
Log when a key is _not_ used as a deploy key
Browse files Browse the repository at this point in the history
Resolves #69.

Co-authored-by: Sean Killeen <[email protected]>
  • Loading branch information
mpdude and SeanKilleen committed Mar 17, 2021
1 parent 4681241 commit aed5400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ try {
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i);

if (!parts) {
console.log(`Comment for key '${key}' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.`);

return;
}

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ try {
const parts = key.match(/\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)/i);

if (!parts) {
console.log(`Comment for key '${key}' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.`);

return;
}

Expand Down

0 comments on commit aed5400

Please sign in to comment.