-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Conversation
ad2ecbf
to
b1b45b9
Compare
@@ -16,15 +16,19 @@ var blocked_statements = [ | |||
]; |
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.
While you're at it, can you rename this file to forbidden-identifiers.js
?
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.
5afa3d4
to
48f8710
Compare
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' |
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.
Use a template string?
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 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.
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.
IMO it's fine. The CLI targets >= 4.5, I don't think Material2 should be compatible with anything older.
Good point on the branch feature thing. cc @hansl to take a look. |
48f8710
to
32b2cc3
Compare
32b2cc3
to
bd3bebe
Compare
LGTM, giving @hansl a change to chime in |
LGTM. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This fixes the CI, to use the complete commit range.