Skip to content

[Bug] Hotfix changelogs exclude PRs to dev #800

Open
@cycraig

Description

@cycraig

Bug description

The "Wasm Create Hotfix PR" GitHub Action fails to include changelog entries on a support/* branch when those PRs were made to the dev branch.

Cause

The cause of this bug is due to passing the --release-branch ${{ inputs.branch }} argument to github_changelog_generator:

--release-branch RELEASE-BRANCH

Limit pull requests to the release branch, such as master or release.

However, the argument was added a while ago to fix a different issue (unclear what exactly that was or if we still suffer from it): #560

The current workaround is to remove that argument in the workflow, but only in the hotfix/support branch, and to run the workflow from the support/wasm-v0.5 branch rather than dev.

Example

For the support/wasm-v0.5 branch, the dev branch commits were pushed directly to it rather than re-doing the PRs targeting the support/wasm-v0.5 branch as a base. This was done because no breaking changes were made and the PRs from those commits were intended for 0.5.1.

However, when the "Wasm Create Hotfix PR" action was executed, it failed with an error that the changelog file was unchanged. This is because it excluded the PRs to dev, even though they were made after the most recent tag, wasm-v0.5.0.

Specifically, the following PRs were not included (the rest have the No changelog label):

Steps To reproduce the bug

Explain how the maintainer can reproduce the bug.

  1. Push a PR to dev with changelog labels, e.g. Wasm, Patch.
  2. Create a hotfix branch from dev, e.g. support/wasm-v0.5.
  3. Run the "Wasm Create Hotfix PR" workflow.

Expected behaviour

"Wasm Create Hotfix PR" workflow executes without errors, including the PR from dev in the new changelog.

Actual behaviour

An error is thrown by the workflow that the changelog is unchanged, because the PR from dev is excluded.

Errors

Paste any errors that you see, including logs, errors, or screenshots.

https://github.com/iotaledger/identity.rs/runs/5855428737?check_suite_focus=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions