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

Separate change kinds #41

Merged
merged 3 commits into from
May 12, 2024
Merged

Conversation

kitagry
Copy link
Contributor

@kitagry kitagry commented May 12, 2024

before

* changed
  * apps.v1.Deployment.default.hoge
  * apps.v1.Deployment.default.fuga
  * apps.v1.Deployment.default.piyo

after

## created
* apps.v1.Deployment.default.hoge
## pruned
* apps.v1.Deployment.default.fuga
## configured
* apps.v1.Deployment.default.piyo

Copy link
Owner

@hirosassa hirosassa left a comment

Choose a reason for hiding this comment

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

Looks great!

Cargo.toml Outdated
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks!

src/template.rs Outdated
Comment on lines 30 to 46
{{#if (gt (len created_kinds) 0)}}
* created
{{#each created_kinds}}
* {{this}}
{{/each}}
{{/if}}
{{#if (gt (len pruned_kinds) 0)}}
* pruned
{{#each pruned_kinds}}
* {{this}}
{{/each}}
{{/if}}
{{#if (gt (len configured_kinds) 0)}}
* configured
{{#each configured_kinds}}
* {{this}}
{{/each}}
Copy link
Owner

Choose a reason for hiding this comment

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

[comment] @kitagry
Did you consider using H2 (or smaller one) as a separator?
If not, I think it is good to compare the format.

Suggested change
{{#if (gt (len created_kinds) 0)}}
* created
{{#each created_kinds}}
* {{this}}
{{/each}}
{{/if}}
{{#if (gt (len pruned_kinds) 0)}}
* pruned
{{#each pruned_kinds}}
* {{this}}
{{/each}}
{{/if}}
{{#if (gt (len configured_kinds) 0)}}
* configured
{{#each configured_kinds}}
* {{this}}
{{/each}}
{{#if (gt (len created_kinds) 0)}}
## created
{{#each created_kinds}}
* {{this}}
{{/each}}
{{/if}}
{{#if (gt (len pruned_kinds) 0)}}
## pruned
{{#each pruned_kinds}}
* {{this}}
{{/each}}
{{/if}}
{{#if (gt (len configured_kinds) 0)}}
## configured
{{#each configured_kinds}}
* {{this}}
{{/each}}

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.37%. Comparing base (b954a74) to head (77498db).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
+ Coverage   70.74%   74.37%   +3.63%     
==========================================
  Files           7        7              
  Lines         728      804      +76     
==========================================
+ Hits          515      598      +83     
+ Misses        213      206       -7     

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

@kitagry
Copy link
Contributor Author

kitagry commented May 12, 2024

I fixed!

@hirosassa
Copy link
Owner

@kitagry Thanks!

@hirosassa hirosassa merged commit b6950e2 into hirosassa:main May 12, 2024
6 checks passed
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.

3 participants