googleapis / googleapis/release-please

Github Release and tag is not created when merging the release PR using the Github CLI

Open
#2,457 1 comment 0 reactions 1 assignee Claimed by @chingor13 View on GitHub
priority: p3 type: bug
Dominant language
TypeScript
Stars
7.5k
Forks
588
Avg merge
12h 16m
Merged PRs (30d)
7

Description

#### Describe the error
Neither a tag, nor a release, is being created when merging the release PR using the Github CLI.

#### Steps to reproduce

1. Push a commit so that a release PR is generated
2. Merge the PR manually so that a release and tag are created
3. Push a commit so that a new release PR is generated
4. Use the Github CLI to merge the release PR, e.g. `gh pr merge --squash`
5. The release PR is merged, but neither a release, nor a tag, is a created

Please refer to the [sample code](https://github.com/nils1k/release-please) that reproduces the issue.

#### Workaround
A workaround seems to be to add the `release-please:force-run` label to the merged PR, as suggested in the [README](https://github.com/googleapis/release-please?tab=readme-ov-file#step-3-rerun-release-please).

#### Notes
This issue was originally posted in the [release-please-action](https://github.com/googleapis/release-please-action/issues/1067) repository, but I'm posting it here as well as I'm unsure about where the issue belongs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.