Skip to content

refactor(dev-infra): use conventional-commits-parser for commit parsing - #41286

Closed
josephperrott wants to merge 5 commits into
angular:masterfrom
josephperrott:parser-update
Closed

josephperrott wants to merge 5 commits into
angular:masterfrom
josephperrott:parser-update

Conversation

@josephperrott

Copy link
Copy Markdown
Member

Use conventional-commits-parser for parsing commits for validation, this is being done
in anticipation of relying on this parser for release note creation. Unifying how commits
are parsed will provide the most consistency in our tooling.

@josephperrott josephperrott added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release area: dev-infra Issues related to Angular's own dev infra (build, test, CI, releasing) labels Mar 19, 2021
@ngbot ngbot Bot modified the milestone: Backlog Mar 19, 2021
@google-cla google-cla Bot added the cla: yes label Mar 19, 2021
@josephperrott josephperrott added target: patch This PR is targeted for the next patch release and removed target: major This PR is targeted for the next major release labels Mar 19, 2021
@josephperrott
josephperrott force-pushed the parser-update branch 2 times, most recently from 96b0c53 to 1312f68 Compare March 19, 2021 21:07
@josephperrott
josephperrott marked this pull request as ready for review March 19, 2021 21:21

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mostly lgtm 👍
My main concern is removing the squash commits check 🤔

Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.spec.ts Resolved
Comment thread dev-infra/commit-message/validate.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Just some minor comments

Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/validate.ts Resolved
Comment thread dev-infra/commit-message/validate.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/validate.ts Resolved
Comment thread dev-infra/commit-message/validate.ts Resolved
Comment thread dev-infra/commit-message/validate.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
Comment thread dev-infra/commit-message/parse.ts Resolved
@josephperrott
josephperrott requested a review from gkalpak March 23, 2021 16:09
Use conventional-commits-parser for parsing commits for validation, this is being done
in anticipation of relying on this parser for release note creation.  Unifying how commits
are parsed will provide the most consistency in our tooling.

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One last comment. Otherwise lgtm 🚀

Comment thread dev-infra/commit-message/parse.ts Resolved
@gkalpak gkalpak added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 23, 2021
@josephperrott josephperrott removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 23, 2021
@josephperrott josephperrott added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Mar 23, 2021
atscott pushed a commit that referenced this pull request Apr 2, 2021
In the CLI and Universal, we use the package name as commit message scope. The recent changes that introduced `conventional-commits-parser` in #41286 breaks the parsing of such commit scopes and caused commit validations to fail.

Example: https://app.circleci.com/pipelines/github/angular/angular-cli/14420/workflows/85feb5c9-184f-4088-b924-6b9e6c91f062/jobs/238446/parallel-runs/0/steps/0-102

PR Close #41430
TeriGlover pushed a commit to TeriGlover/angular that referenced this pull request Apr 5, 2021
…ng (angular#41286)

Use conventional-commits-parser for parsing commits for validation, this is being done
in anticipation of relying on this parser for release note creation.  Unifying how commits
are parsed will provide the most consistency in our tooling.

PR Close angular#41286
TeriGlover pushed a commit to TeriGlover/angular that referenced this pull request Apr 5, 2021
…ar#41430)

In the CLI and Universal, we use the package name as commit message scope. The recent changes that introduced `conventional-commits-parser` in angular#41286 breaks the parsing of such commit scopes and caused commit validations to fail.

Example: https://app.circleci.com/pipelines/github/angular/angular-cli/14420/workflows/85feb5c9-184f-4088-b924-6b9e6c91f062/jobs/238446/parallel-runs/0/steps/0-102

PR Close angular#41430
@josephperrott
josephperrott deleted the parser-update branch April 9, 2021 15:08
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: dev-infra Issues related to Angular's own dev infra (build, test, CI, releasing) cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants