Skip to content

Output errors in console when git commit return code is not 0 (changesets#1277) - #1320

Open
minenwerfer wants to merge 3 commits into
changesets:mainfrom
minenwerfer:main
Open

minenwerfer wants to merge 3 commits into
changesets:mainfrom
minenwerfer:main

Conversation

@minenwerfer

@minenwerfer minenwerfer commented Mar 9, 2024 •

Copy link
Copy Markdown

fix #1277

This PR adds verbosity to when git commits fails (see this comment. It shouldn't have no problems since I just copied the code from the function above.
Would it be better to change both to output to console.error?

@changeset-bot

changeset-bot Bot commented Mar 9, 2024 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3af2a47

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@changesets/git Patch
@changesets/apply-release-plan Patch
@changesets/cli Patch
@changesets/read Patch
@changesets/release-utils Patch
@changesets/get-release-plan Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci

codesandbox-ci Bot commented Mar 9, 2024 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@minenwerfer

minenwerfer commented Mar 9, 2024 •

Copy link
Copy Markdown
Author

Unrelated: I also noticed @changesets/* packages include a lot of seemingly unecessary source files because files property is lacking in package.json. Would removing them do any harm?
2024-03-09_04-13

@bluwy bluwy 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.

Looks like we already do the same for the add() function above, so this makes sense I think

"@changesets/git": patch
---

Output errors in console when git commit return code is not 0 (changesets#1277)

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.

Suggested change
Output errors in console when git commit return code is not 0 (changesets#1277)
Output errors in console when git commit return code is not 0

I don't think we need to specify the issue here. Only what has changed.

@codecov

codecov Bot commented Oct 9, 2024 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.97%. Comparing base (9956976) to head (3af2a47).
⚠️ Report is 118 commits behind head on main.

Files with missing lines Patch % Lines
packages/git/src/index.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1320      +/-   ##
==========================================
- Coverage   81.00%   80.97%   -0.03%     
==========================================
  Files          54       54              
  Lines        2216     2218       +2     
  Branches      656      662       +6     
==========================================
+ Hits         1795     1796       +1     
- Misses        417      418       +1     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Zigonja

Zigonja commented Nov 17, 2024

Copy link
Copy Markdown

Would love to see this merged

@danguilherme

Copy link
Copy Markdown

Is something missing here?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changesets ran into trouble committing your files (CI only)

4 participants