Skip to content

Cherry Pick script fails on missing merge_commit_sha in Github API response #59398

Open
@getdave

Description

During Cherry Picing for WP 6.5 Beta 3 the npm run other:cherry-pick script kept failing with:

Error: Cannot fetch the merge commit sha for #XXXXX

The API request is to https://api.github.com/repos/wordpress/gutenberg/pulls/XXXX.

I check the code and it will fail if merge_commit_sha is not in the response.

Performing this manually using a REST client, I could see that merge_commit_sha was included in the response. So for some reason when running using the script it doesn't include that field for certain PRs.

It seems this field may have been deprecated so we may need to find a better method.

Metadata

Assignees

No one assigned

    Labels

    Gutenberg PluginIssues or PRs related to Gutenberg Plugin management related efforts[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions