Skip to content

Commit

Permalink
checking for node id property variances
Browse files Browse the repository at this point in the history
  • Loading branch information
a11smiles committed Feb 1, 2024
1 parent a290e90 commit 9a548a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitsync.js
Expand Up @@ -25,7 +25,8 @@ module.exports = class GitSync {
log.debug(config);

// Temporary fix until support of PRs
if (config.issue.node_id.startsWith("PR_")) {
if ((config.issue.node_id && config.issue.node_id.startsWith("PR_")) ||
(config.issue.nodeId && config.issue.nodeId.startsWith("PR_"))) {
// Log and skip PRs (comments)
log.info(`Action is performed on PR #${config.issue.number}. Skipping...`);
} else {
Expand Down

0 comments on commit 9a548a7

Please sign in to comment.