Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/commentbot/CommentBot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,36 @@ function make_pull_request(pp::ProcessedParams, rp::RequestParams, rbrn::RegBran
pr, msg = create_or_find_pull_request(repo, params, rbrn)
tag = tag_name(ver, subdir)

releasenotes_note = if isempty(rp.release_notes)
"""

### Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

```
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah
```

To add them here just re-invoke and the PR will be updated.

"""
else
""
end

cbody = """
Registration pull request $msg: [$(repo)/$(pr.number)]($(pr.html_url))
$(releasenotes_note)
### Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

Expand Down