Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

brightcohen
Copy link

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:

  • GitHub URL as Variable - for hosted GitHub Enterprise solutions
  • Dynamic set of Jira Issue Statuses - Allowing the tool to work with multiple customized Issues type relied on being able to support multiple other statuses
  • Slow adaptation of the tool - Being able to turn off features in a more global settings than the PR flags

@CLAassistant
Copy link

CLAassistant commented Mar 26, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@srl295
Copy link
Member

srl295 commented Nov 16, 2020

@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") {
Copy link
Member

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")) {
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants