Skip to content

setup: help with protected branch #817

@eunjae-lee

Description

@eunjae-lee

When using toReleaseBranch strategy, there can be a possibility that the working branch is protected. It means after release, when Ship.js tries to merge the release branch back to the working branch, it will fail to push the merge commit. In that case, there's nothing much that can be done programmatically.

So if we can check via GitHub API

(1) if this branch is protected
(2) and this branch allows force push,

then we can enable forcePushBranches config by default.

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