setup: help with protected branch
- Dominant language
- JavaScript
- Stars
- 776
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the toReleaseBranch strategy and the GitHub API integration. Check whether the working branch is protected and whether force pushes are allowed, then enable forcePushBranches by default only when appropriate; done means releases can handle protected working branches without a failed merge push.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, javascript
- Domain
- devops, release
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100