-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add environment variables and adaptations for more dynamics deployments #19
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@brightcohen Just seeing this, thanks for your interest! Could you rebase it? |
extendedDescription: "Please fix your commit message to have the same ticket number as the pull request. If the inconsistency is intentional, you can disable this warning with DISABLE_JIRA_ISSUE_MATCH=true in the PR description.", | ||
badCommit: commitInfo | ||
}; | ||
if(process.env.SEARCH_JIRA_ISSUE_IN_COMMIT === "TRUE") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather this be opt-out rather than opt-in. There are deployments of this tool that might break if they upgrade the code but don't add the corresponding environment variable.
For example, name it DISABLE_JIRA_ISSUE_CHECK
(similar to DISABLE_JIRA_ISSUE_MATCH
, but it disables all validation, not just ticket number matching)
]; | ||
|
||
if (!(process.env.ALLOW_MANY_COMMITS === "TRUE")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather if you named this DISABLE_SINGLE_COMMIT_CHECK
. Also, please move the "multiCommitPass" and "multiCommitMessage" lines into this if block.
We wanted to introduce the tool inside our client's network in order to do so I had to adapt few things that i believe would be beneficial to the rest: