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

[Feature] Add "Create Release PR" composite action #7

Merged
merged 10 commits into from
May 31, 2024

Conversation

luongvo
Copy link
Member

@luongvo luongvo commented Nov 23, 2023

What happened 👀

Create a new Composite workflow create_release_pr to automate the Release pull request creation:

  • generate the change log as the Release PR content to list all done tasks and PRs from the last tag on the main branch to the latest HEAD on the develop.
  • create the Release PR with the necessary info: title, body, assignee, label, and milestone.

Insight 📝

Proof Of Work 📹

Sample usage:

      - uses: nimblehq/github-actions-workflows/[email protected]
        with:
          version: ${{ steps.version.outputs.version }}
          changelogConfiguration: ".github/workflows/config/changelog-release.json"
          assignee: bot-nimble

A sample generated Release PR for the current develop 👉 main nimblehq/android-templates#561 🎉

image

Run log: https://github.com/nimblehq/android-templates/actions/runs/6976881886/job/18985941279

@luongvo luongvo self-assigned this Nov 23, 2023
@luongvo luongvo force-pushed the feature/add-create-release-pr-action branch from f3ae9f3 to c5e2980 Compare November 23, 2023 16:49
@luongvo luongvo force-pushed the feature/add-create-release-pr-action branch from 6bbc762 to dfe2c22 Compare November 24, 2023 04:07
Copy link

@hoangmirs hoangmirs left a comment

Choose a reason for hiding this comment

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

I don't have any big concerns for this 🙏

create_release_pr/action.yml Outdated Show resolved Hide resolved
create_release_pr/action.yml Outdated Show resolved Hide resolved
Copy link
Member

@andyduong1920 andyduong1920 left a comment

Choose a reason for hiding this comment

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

Thanks @luongvo, this will help me to create the release PRs for more than 15 repos on the GT API 💪

create_release_pr/action.yml Outdated Show resolved Hide resolved
create_release_pr/action.yml Outdated Show resolved Hide resolved
create_release_pr/action.yml Outdated Show resolved Hide resolved
create_release_pr/action.yml Outdated Show resolved Hide resolved
create_release_pr/action.yml Outdated Show resolved Hide resolved
@@ -84,12 +84,19 @@ runs:
git checkout -b $RELEASE_BRANCH
git push origin $RELEASE_BRANCH -f

# Add milestone if available
if [ -n "${{ steps.find_milestone.outputs.milestone_url }}" ]; then
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI: if milestone_url is found, that means the milestone from the release version is available from the repo.

@luongvo luongvo requested a review from andyduong1920 May 28, 2024 03:39
@luongvo luongvo force-pushed the feature/add-create-release-pr-action branch from 8a28ee6 to d2f913f Compare May 28, 2024 03:43
@luongvo
Copy link
Member Author

luongvo commented May 30, 2024

@hoangmirs Please have your final review on this PR, please 👋

Copy link

@hoangmirs hoangmirs left a comment

Choose a reason for hiding this comment

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

🎉

@luongvo luongvo merged commit 3b9388d into develop May 31, 2024
@luongvo luongvo deleted the feature/add-create-release-pr-action branch May 31, 2024 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants