Skip to content

fix(ci): analyze commits should scan complete commit range. #216

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

Closed

Conversation

devversion
Copy link
Member

This fixes the CI, to use the complete commit range.

  • Needs to be tested.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 21, 2016
@devversion devversion force-pushed the fix/ci-analyze-commit-range branch 3 times, most recently from ad2ecbf to b1b45b9 Compare March 21, 2016 17:19
@@ -16,15 +16,19 @@ var blocked_statements = [
];
Copy link
Member

Choose a reason for hiding this comment

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

While you're at it, can you rename this file to forbidden-identifiers.js ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, will change that.
By the way, now it works perfectly, just tested it:

image

cc. @hansl

@devversion devversion force-pushed the fix/ci-analyze-commit-range branch from 5afa3d4 to 48f8710 Compare March 21, 2016 17:35
var diff = child_process.execSync('git diff --unified=0 HEAD~1 ./src ./e2e').toString();
var isInvalid = blockedRegex.test(diff);
var diff = child_process.execSync(
'git diff --unified=0 ' + commit_range + ' ./src ./e2e'
Copy link
Member

Choose a reason for hiding this comment

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

Use a template string?

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 can do that, but I don't think it's really necessary, because a plain string concatenation is doing the same. Plus additionally it's compatible with older node versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO it's fine. The CLI targets >= 4.5, I don't think Material2 should be compatible with anything older.

@jelbourn
Copy link
Member

Good point on the branch feature thing.

cc @hansl to take a look.

@devversion devversion force-pushed the fix/ci-analyze-commit-range branch from 48f8710 to 32b2cc3 Compare March 21, 2016 18:12
@devversion devversion force-pushed the fix/ci-analyze-commit-range branch from 32b2cc3 to bd3bebe Compare March 21, 2016 18:14
@jelbourn
Copy link
Member

LGTM, giving @hansl a change to chime in

@hansl
Copy link
Contributor

hansl commented Mar 21, 2016

LGTM.

@jelbourn jelbourn closed this in 7fa7fa7 Mar 22, 2016
@devversion devversion deleted the fix/ci-analyze-commit-range branch July 7, 2016 11:41
andrewseguin pushed a commit to andrewseguin/components that referenced this pull request Oct 15, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants