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: IsDraft template variable #3888

Merged
merged 2 commits into from
Mar 24, 2023
Merged

feat: IsDraft template variable #3888

merged 2 commits into from
Mar 24, 2023

Conversation

caarlos0
Copy link
Member

allows to use {{ .IsDraft }} in templates.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 added the enhancement New feature or request label Mar 23, 2023
@caarlos0 caarlos0 self-assigned this Mar 23, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 23, 2023
@cloudflare-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 97ad329
Status: ✅  Deploy successful!
Preview URL: https://adc3d9dd.goreleaser.pages.dev
Branch Preview URL: https://draft.goreleaser.pages.dev

View logs

@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Merging #3888 (97ad329) into main (7229a0d) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3888      +/-   ##
==========================================
+ Coverage   83.43%   83.45%   +0.01%     
==========================================
  Files         123      123              
  Lines       10635    10647      +12     
==========================================
+ Hits         8873     8885      +12     
  Misses       1431     1431              
  Partials      331      331              
Impacted Files Coverage Δ
internal/tmpl/tmpl.go 98.11% <100.00%> (+0.01%) ⬆️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@caarlos0 caarlos0 merged commit 44f8fae into main Mar 24, 2023
@caarlos0 caarlos0 deleted the draft branch March 24, 2023 03:01
@github-actions github-actions bot added this to the v1.17.0 milestone Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant