You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(check-ci-skip): fix commitMessagesMetadata.forEach is not a function
Primary Changes
----------------
1. Changed the method in getting the commit
message from GitHub API to shell command to avoid
the rate limits in calling the API.
2. Same goes for the author of commit message,
we use shell command to fetch the username.
Fixes#3614
Signed-off-by: bado <[email protected]>
console.log("The author of this PR is an active maintainer.");
58
+
returntrue;
59
+
}
60
+
console.log(
61
+
"CI will not be skipped. \nThe author of this PR is not an active maintainer.\nPlease refer to https://github.com/hyperledger/cacti/blob/main/MAINTAINERS.md for the list of active maintainers.",
console.log("The author of this PR is an active maintainer.");
75
-
returntrue;
76
-
}else{
77
-
console.log(
78
-
"CI will not be skipped. \nThe author of this PR is not an active maintainer.\nPlease refer to https://github.com/hyperledger/cacti/blob/main/MAINTAINERS.md for the list of active maintainers.",
79
-
);
80
-
returnfalse;
81
-
}
82
-
};
83
-
84
-
// Main logic
85
-
86
-
constshouldSkipCI=checkSkipCI();
87
-
88
-
if(shouldSkipCI){
89
-
constisMaintainer=checkCommitterIsMaintainer();
90
-
if(isMaintainer){
91
-
console.log(
92
-
"Exit with an error code so as to pause the dependent workflows. CI skipped as per request.",
0 commit comments