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

diff subcommand #17

Merged
merged 5 commits into from
Jul 14, 2023
Merged

diff subcommand #17

merged 5 commits into from
Jul 14, 2023

Conversation

NiclasvanEyk
Copy link
Owner

@NiclasvanEyk NiclasvanEyk commented Jul 11, 2023

demo

❯ go run . diff 0.0.1 0.0.3

  ## [0.0.3] - 2020-01-01

  ### Added

  • The third version

  ## [0.0.2] - 2020-01-01

  ### Added

  • The second version

  ## [0.0.1] - 2020-01-01

❯ go run . diff --merged 0.0.1 0.0.3

   0.0.1 -> 0.0.3

  ## Added

  • The third version
  • The second version
  • The first version

❯ go run . diff --merged --prefixed 0.0.1 0.0.3

   0.0.1 -> 0.0.3

  ## Added

  • [0.0.3] The third version
  • [0.0.2] The second version
  • [0.0.1] The first version

TODO

  • figure out why the last item of 0.0.1 is not properly printed. Probably the parser needs to be adjusted here
  • Record tape
  • docs

@NiclasvanEyk NiclasvanEyk self-assigned this Jul 11, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2023

Codecov Report

Patch coverage: 82.06% and project coverage change: +5.43 🎉

Comparison is base (03e3784) 66.34% compared to head (b0acc55) 71.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   66.34%   71.78%   +5.43%     
==========================================
  Files           7        9       +2     
  Lines         419      521     +102     
==========================================
+ Hits          278      374      +96     
- Misses        131      136       +5     
- Partials       10       11       +1     
Impacted Files Coverage Δ
internal/changelog/changelog.go 62.85% <62.85%> (ø)
internal/changelog/formatter.go 81.42% <81.42%> (ø)
internal/changelog/parser.go 91.56% <93.44%> (+14.60%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@NiclasvanEyk NiclasvanEyk added this to the 1.0.0 milestone Jul 11, 2023
@NiclasvanEyk NiclasvanEyk merged commit 30984ee into main Jul 14, 2023
@NiclasvanEyk NiclasvanEyk deleted the feature/diff branch July 14, 2023 22:05
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.

2 participants