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

Automatically Generate Release Notes #160

Open
Michaelpalacce opened this issue Aug 21, 2023 · 12 comments
Open

Automatically Generate Release Notes #160

Michaelpalacce opened this issue Aug 21, 2023 · 12 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request release

Comments

@Michaelpalacce
Copy link
Contributor

Description

Investigate what's the best way to generate release notes.

Additional Context

Some options

@Michaelpalacce Michaelpalacce added enhancement New feature or request dependencies Pull requests that update a dependency file release labels Aug 21, 2023
@Hristo-Cholakov Hristo-Cholakov self-assigned this Oct 9, 2023
@Hristo-Cholakov
Copy link

name: Generate Release Notes

on:
  push:
    branches:
      - main

jobs:
  generate-release-notes:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Check if conventional-changelog-cli is installed
        id: check-install
        run: |
          if ! command -v conventional-changelog &> /dev/null; then
            echo "conventional-changelog-cli is not installed."
            echo "Installing it now..."
            npm install -g conventional-changelog-cli
          else
            echo "conventional-changelog-cli is already installed."
          fi
        env:
          GH_TOKEN: ${{ secrets.GH_TOKEN }}

      - name: Generate Release Notes
        if: steps.check-install.outcome == 'success'
        run: |
          conventional-changelog -p angular -i CHANGELOG.md -s
        env:
          GH_TOKEN: ${{ secrets.GH_TOKEN }}

      - name: Commit and push changes
        if: steps.check-install.outcome == 'success'
        run: |
          git config --global user.email "svc-wwcoe-ci-admin@vmware.com"
          git config --global user.name "WWCoE CI admin"
          git add CHANGELOG.md
          git commit -m "chore(release): Update changelog [skip ci]"
          git push
        env:
          GH_TOKEN: ${{ secrets.GH_TOKEN }}

@Hristo-Cholakov Hristo-Cholakov removed their assignment Nov 22, 2023
@Michaelpalacce
Copy link
Contributor Author

@VenelinBakalov do you think this is still a priority?

@VenelinBakalov
Copy link
Contributor

@Michaelpalacce I wouldn't say priority, but I think it is still a topic of interest.

@Michaelpalacce
Copy link
Contributor Author

I am not sure how to test this honestly 😄

@VenelinBakalov
Copy link
Contributor

well...I can suggest one not pretty but working method...in prod kinda.
Commit a Workflow that has just the name and the following property:

name:

on:
workflow_dispatch:

https://github.com/vmware/build-tools-for-vmware-aria/blob/main/.github/workflows/stale.yml

Once this is in master, the workflow_dispatch will enable you to select the action and run it manually. You can then create a branch with the code suggested by @Hristo-Cholakov and then you can manually run the workflow from that branch:
image

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 12, 2024
@VenelinBakalov
Copy link
Contributor

Issue is still valid

@github-actions github-actions bot removed the Stale label Feb 13, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Mar 15, 2024
@VenelinBakalov
Copy link
Contributor

Still valid

@github-actions github-actions bot removed the Stale label Mar 19, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 18, 2024
@VenelinBakalov
Copy link
Contributor

Not stale

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request release
Projects
None yet
Development

No branches or pull requests

3 participants