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

Release note gets all issues #319

Open
tetsuya28 opened this issue Aug 18, 2023 · 0 comments
Open

Release note gets all issues #319

tetsuya28 opened this issue Aug 18, 2023 · 0 comments

Comments

@tetsuya28
Copy link

With datasources=issues and the following GItHub Actions workflow, a Release Note has all issues with no error.
Then, run the workflow again, the Release Note gets expected issues, that have closed between the last tag and the latest tag.

name: Release

on:
  push:
    tags:
      - "*"

jobs:
  note:
    name: Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/[email protected]
        with:
          fetch-depth: 0

      - name: Use Node.js
        uses: actions/[email protected]

      - name: Install gren
        run: |
          npm install github-release-notes -g

      - name: Create a release
        env:
          GREN_GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
        run: |
          gren release \
            --override \
            --tags=${{ github.ref_name }}

.grenrc.yaml is here.

---
  dataSource: "issues"
  groupBy:
    "✨ Enhancement":
      - "enhancement"
    "🐛 Bug":
      - "bug"
  changelogFilename: "CHANGELOG.md"
  template:
    label: ""
  limit: 99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant