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

Host a working version #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Host a working version #1

wants to merge 8 commits into from

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Feb 23, 2021

This version will not break on errors or warnings.

@vmcj vmcj force-pushed the master branch 4 times, most recently from 136737c to d21a108 Compare February 23, 2021 21:08
.gitignore Outdated
lib/**/*

.idea
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: would be good to add a newline here.

action.yml Outdated Show resolved Hide resolved
src/get-changed-file.ts Show resolved Hide resolved
@@ -17,6 +17,9 @@ export async function runOnBlame(files: string[]): Promise<void> {
core.getInput('phpcs_path', { required: true })
);

const dontFailOnError =
core.getInput('fail_on_errors') == 'false' ||
core.getInput('fail_on_errors') === 'off';
Copy link
Member

Choose a reason for hiding this comment

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

Not really great to use double negatives in variable names, but given that dontFailOnWarning already exists, meh.
Although given that this is later only used as !dontFailOnError I think it's actually better to simply name it failOnError.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree but the original author already had this, I only intended to add a "copy" which works the same as the warning option.

const failOnError = core.getInput('fail_on_errors');
if (failOnError == 'false' || failOnError === 'off') {
args.push('--runtime-set ignore_errors_on_exit 1');
}
const failOnWarning = core.getInput('fail_on_warnings');
Copy link
Member

Choose a reason for hiding this comment

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

Such consistency by the original author...

thenabeel and others added 3 commits February 23, 2021 22:25
Updated the npm packages. This commit can be removed when the upstream
action works again. Afterwards run `npm install && npm run all`.
@vmcj vmcj requested a review from eldering February 23, 2021 21:44
Copy link
Member

@eldering eldering left a comment

Choose a reason for hiding this comment

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

LGTM

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