-
Notifications
You must be signed in to change notification settings - Fork 71
feat: add support for GitHub automatic release notes generation #442
base: master
Are you sure you want to change the base?
feat: add support for GitHub automatic release notes generation #442
Conversation
Update Octokit to latest and add new parameter for GitHub automatic release notes generation.
This is awesome - thanks for doing this - can some one review this and merge |
Do these replace the changelog that is already generated by the action? Couldn't quite make sense of the diff and was confused, because I already get release notes from the action. |
@oliversalzburg Yes, instead of using the release notes generated by the action, GitHub generates release notes automatically based on release.yml-configuration file. So setting |
Cool. Thanks for explaining. Looking forward to this :) |
just wondering how the changelog is generated for you by the action automatically? - i have to actually click the github generate release notes button manually after the action creates the release im using something like this for the action
|
Maybe I'm confused about the difference. Here is a release that was built yesterday: https://github.com/oliversalzburg/cbc-kitten-scientists/releases/tag/nightly my config for that is https://github.com/oliversalzburg/cbc-kitten-scientists/blob/master/.github/workflows/userscript-nightly.yml |
@oliversalzburg thanks for that example - noticed you are using |
@natarajanc-prodigygame That's interesting. The alpha.1 release was built by just creating the git tag locally and then pushing that tag. The action is defined in https://github.com/oliversalzburg/cbc-kitten-scientists/blob/master/.github/workflows/userscript-tagged-release.yml and this one sets |
hi @lauravuo is there a way to use this PR as part of my git actions till this is merged to master? will something like this work?
|
@natarajanc-prodigygame I am not sure how to use if there is a way to use this change through the main project, I created a fork and updated the code there, see here how I used my fork: https://github.com/lauravuo/licence-scan-go/blob/a07e81003192f4f61d57e4b57da773a91658f34c/.github/workflows/release.yml#L14 |
@@ -306,10 +316,11 @@ export const main = async (): Promise<void> => { | |||
owner: context.repo.owner, | |||
repo: context.repo.repo, | |||
tag_name: releaseTag, | |||
name: args.releaseTitle ? args.releaseTitle : releaseTag, | |||
...(args.autoGenerateReleaseNotes ? {} : {name: args.releaseTitle ? args.releaseTitle : releaseTag}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lauravuo i tried using this via your forked action.yml https://github.com/lauravuo/action-automatic-releases/blob/test-changes/action.yml for some reason the custom title
is not getting reflected when i generate a release (it uses the automatic_release_tag
as the release title)
im using the action this way
- uses: "lauravuo/action-automatic-releases@test-changes"
with:
repo_token: ${{ secrets.OPS_GHA_USER_TOKEN }}
draft: false
title: "Dippr release - ${{ steps.date.outputs.date }}"
automatic_release_tag: ${{ steps.get-latest-tag.outputs.tag }}
prerelease: false
auto_generate_release_notes: true
can you rebase so we can merge? |
Hello @lauravuo! Since this request was from a while back and the original developer seems to have lost interest, I have updated this action's dependencies and have fulfilled yours and any other requests that have been opened. Simply change the target action to Repo: https://github.com/crowbarmaster/GHactions |
Update Octokit to latest and add new parameter for GitHub automatic release notes generation.
New input param
auto_generate_release_notes
. Iftrue
, GitHub will automatically generate release notes.Closes #312