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

Failing to query related issues #41

Open
naeben opened this issue Oct 30, 2023 · 0 comments
Open

Failing to query related issues #41

naeben opened this issue Oct 30, 2023 · 0 comments

Comments

@naeben
Copy link

naeben commented Oct 30, 2023

Hi,
For some reason I'm not able to query the related issues, any idea what might be the issue?
I have the idea I'm missing something stupid (quite new to github actions).

  • Initially I thought that it was a permissions issue, so I gave full permissions using write-all but no luck
  • The new release gets created with the correct tag, but the release changelog is empty (because it can't find any issues I assume)
  • I trigger the action manually for testing purposes.

Any pointers or tips are highly appreciated! 🙏

Action:


name: Create SemVer Release with Conventional Commits

on:
  workflow_dispatch:

permissions: write-all


jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Code
        uses: actions/checkout@v3

      - name: Get Next Version
        id: semver
        uses: ietf-tools/semver-action@v1
        with:
          token: ${{ github.token }}
          branch: master

      - name: Create Release
        uses: ncipollo/[email protected]
        with:
          allowUpdates: true
          draft: false
          makeLatest: true
          tag: ${{ steps.semver.outputs.next }}
          name: ${{ steps.semver.outputs.next }}
          body: Changelog Contents
          token: ${{ github.token }}

      - name: Generate CHANGELOG
        id: changelog
        uses: requarks/changelog-action@v1
        with:
          token: ${{ github.token }}
          tag: ${{ steps.semver.outputs.next }}
          writeToFile: false
          
      - name: Commit CHANGELOG.md
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          branch: master
          commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
          file_pattern: CHANGELOG.md

Output:

Querying related issues for PR 1...
Warning: Failed to query issues related to PR 1. Skipping.
Querying related issues for PR 2...
Warning: Failed to query issues related to PR 2. Skipping.

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