Skip to content

Add release body templating support #146

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anton-yurchenko
Copy link
Owner

Summary

  • add BodyTemplate configuration and new GetBody helper
  • wire up release body creation in main
  • support templated release bodies in release package
  • document BODY_TEMPLATE and show example usage
  • test new body logic

Testing

  • go test ./...

https://chatgpt.com/codex/tasks/task_b_6841efe5834083318d93d43cd7d881ed

@Copilot Copilot AI review requested due to automatic review settings June 5, 2025 19:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds release body templating support to allow users to customize release bodies using templates. Key changes include:

  • Adding a new Body field in the Release struct and updating its handling in publishing logic.
  • Implementing a GetBody helper in the configuration to parse a templated release body.
  • Updating tests and documentation to include and verify templated release bodies.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
release/release_test.go Updated test cases with new Body field for release creation mocks.
release/release.go Updated release publishing to use the new Body field.
release/modal.go Extended the Release struct to include a Body field.
main.go Integrated GetBody call to generate the release body before publishing.
docs/example.md Added documentation example for using a release body template.
config_test.go Added tests to verify the behavior of the GetBody helper function.
config.go Added a BodyTemplate field and implemented the GetBody templating.
README.md Documented the new BODY_TEMPLATE environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant