Skip to content

Command get-pr-info exits w/ status 1 if NOT in PR #12

@MobileVet

Description

@MobileVet

If you attempt to run ghpr/get-pr-info on a branch w/o a PR, the Job fails exit status 1. This results in Workflow failures and means that ANY script using GHPR can NOT be run on a branch w/o a PR.

I am curious if there is a use case that desires this behavior or if it should instead return 0. For our use case, we are trying to determine the merge into branch and it is ok if that isn't present yet as long as we can set the ENV accordingly.

I suppose the easiest thing to do would be to add the ** pass_on_fail** option that is available to slack-pr-author.

Screen Shot 2021-06-02 at 4 46 19 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions