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
* Provide error messages as `outputs.error_message` ([#194](https://github.com/amannn/action-semantic-pull-request/issues/194)) ([880a3c0](https://github.com/amannn/action-semantic-pull-request/commit/880a3c061c0dea01e977cefe26fb0e0d06b3d1a9))
@@ -35976,30 +35977,29 @@ module.exports = async function validatePrTitle(
35976
35977
}
35977
35978
35978
35979
if (!result.type) {
35979
-
throw new Error(
35980
+
raiseError(
35980
35981
`No release type found in pull request title "${prTitle}". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/\n\n${printAvailableTypes()}`
35981
35982
);
35982
35983
}
35983
35984
35984
35985
if (!result.subject) {
35985
-
throw new Error(`No subject found in pull request title "${prTitle}".`);
35986
+
raiseError(`No subject found in pull request title "${prTitle}".`);
35986
35987
}
35987
35988
35988
35989
if (!types.includes(result.type)) {
35989
-
throw new Error(
35990
+
raiseError(
35990
35991
`Unknown release type "${
35991
35992
result.type
35992
35993
}" found in pull request title "${prTitle}". \n\n${printAvailableTypes()}`
35993
35994
);
35994
35995
}
35995
35996
35996
35997
if (requireScope && !result.scope) {
35997
-
let msg = `No scope found in pull request title "${prTitle}".`;
35998
+
let message = `No scope found in pull request title "${prTitle}".`;
35998
35999
if (scopes) {
35999
-
msg += ` Use one of the available scopes: ${scopes.join(', ')}.`;
36000
+
message += ` Use one of the available scopes: ${scopes.join(', ')}.`;
36000
36001
}
36001
-
36002
-
throw new Error(msg);
36002
+
raiseError(message);
36003
36003
}
36004
36004
36005
36005
const givenScopes = result.scope
@@ -36008,7 +36008,7 @@ module.exports = async function validatePrTitle(
0 commit comments