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

feat(release): add logUnchangedProjects flag to version generator, true by default #27231

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

JamesHenry
Copy link
Collaborator

@JamesHenry JamesHenry commented Jul 31, 2024

Current Behavior

The version generator always emits logs for all projects. For large monorepos, especially when only a subset of the many projects are released together, this can feel noisy.

Expected Behavior

The version generator can be configured via a new logUnchangedProjects generator option to not emit any logs for projects with no changes. The current default behavior is unchanged, the flag is opt in (i.e. setting it to false).

Related Issue(s)

Fixes #

@JamesHenry JamesHenry requested review from a team as code owners July 31, 2024 12:58
@JamesHenry JamesHenry requested a review from AgentEnder July 31, 2024 12:58
Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Aug 7, 2024 2:04pm

@JamesHenry JamesHenry changed the title feat(release): add logUnchangedProjects flag to generator, true by default feat(release): add logUnchangedProjects flag to version generator, true by default Jul 31, 2024
@JamesHenry JamesHenry enabled auto-merge (squash) July 31, 2024 12:58

Verified

This commit was signed with the committer’s verified signature.
FrozenPandaz Jason Jean
)}`
);
this.logs.forEach((msg) => {
console.log(this.color.instance.bold(this.projectName) + ' ' + msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
console.log(this.color.instance.bold(this.projectName) + ' ' + msg);
console.log(`${this.color.instance.bold(this.projectName)} ${msg}`);

@JamesHenry JamesHenry merged commit 5551823 into master Aug 7, 2024
6 checks passed
@JamesHenry JamesHenry deleted the release-version-log-unchanged-projects-option branch August 7, 2024 21:22
ZackDeRose pushed a commit to ZackDeRose/nx that referenced this pull request Aug 8, 2024
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants