android-templates icon indicating copy to clipboard operation
android-templates copied to clipboard

Github Action: Generate and add "release notes" when distributing new builds on Firebase (staging and production)

Open luongvo opened this issue 1 year ago • 4 comments

Why

Currently, the template supports existing CD workflows to distribute new builds to Firebase. There is a space for improvement to have release notes on each build to clarify what is being covered with the new update for the PM and testers instead of showing the default release notes.

Solution: available solutions from TPC

  • after merging a PR to develop:

    echo "RELEASE_NOTE_CONTENT="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))""
    
  • after merging a release PR to main

    echo "RELEASE_NOTE_CONTENT="$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")""
    

image

Who Benefits?

PM and Testers

luongvo avatar May 16 '23 08:05 luongvo

@luongvo @ryan-conway Let me update the title of this issue for Github action. I'll add more similar to this for Codemagic. 🙏

lydiasama avatar Jul 17 '23 10:07 lydiasama

@lydiasama Since I handled this in the new project, in case you haven't started working on this so would you mind if I handle this for template updates? 😄

hoangnguyen92dn avatar Sep 19 '23 02:09 hoangnguyen92dn

@hoangnguyen92dn Sure thing. Thank you. 🙏🏻

lydiasama avatar Sep 28 '23 09:09 lydiasama

@hoangnguyen92dn @lydiasama You can consider using https://github.com/mikepenz/release-changelog-builder-action to generate the changelog for release notes on develop and main branches here https://github.com/nimblehq/flutter-templates/pull/270.

luongvo avatar Nov 10 '23 10:11 luongvo