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: add support for git branch in templates #1906

Merged
merged 4 commits into from Nov 18, 2020

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Nov 17, 2020

Add a .Branch field to the text templates populated by the current git
branch.

Signed-off-by: Ben Kochie superq@gmail.com

@vercel
Copy link

vercel bot commented Nov 17, 2020

@SuperQ is attempting to deploy a commit to the Goreleaser Team on Vercel.

A member of the Team first needs to authorize it.

@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 17, 2020
@SuperQ SuperQ changed the title Add support for git branch in templates feat: Add support for git branch in templates Nov 17, 2020
internal/pipe/git/git.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 17, 2020

Codecov Report

Merging #1906 (4fc9a94) into master (fa9bb22) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1906      +/-   ##
==========================================
- Coverage   81.78%   81.76%   -0.02%     
==========================================
  Files          73       73              
  Lines        3827     3834       +7     
==========================================
+ Hits         3130     3135       +5     
- Misses        573      574       +1     
- Partials      124      125       +1     
Impacted Files Coverage Δ
pkg/context/context.go 100.00% <ø> (ø)
internal/pipe/git/git.go 86.59% <100.00%> (-1.32%) ⬇️
internal/tmpl/tmpl.go 96.47% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa9bb22...4fc9a94. Read the comment docs.

Add a `.Branch` field to the text templates populated by the current git
branch.

Signed-off-by: Ben Kochie <superq@gmail.com>
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 18, 2020
@caarlos0 caarlos0 added automerge enhancement New feature or request labels Nov 18, 2020
@caarlos0 caarlos0 changed the title feat: Add support for git branch in templates feat: add support for git branch in templates Nov 18, 2020
@kodiakhq kodiakhq bot merged commit f417d77 into goreleaser:master Nov 18, 2020
@SuperQ SuperQ deleted the branch_template branch November 18, 2020 18:54
@SuperQ SuperQ restored the branch_template branch November 18, 2020 18:54
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2020
@SuperQ SuperQ deleted the branch_template branch December 18, 2020 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants