Skip to content

"A pull request already exists" is output even if there is no PR #982

Description

@koppor

In case the action could create a branch, but not a PR and is run a second time, the output is

A pull request already exists that updates Gradle Wrapper to 9.2.0.

This is wrong.

Quick fix. Replace by:

There is already a branch existing that updates Gradle Wrapper to 9.2.0.

This covers both the branch and the PR.

Alternatively, there could be a check for a PR opened. If PR exists: Output PR message, if no PR, output branch message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions