apache / apache/infrastructure-asfyaml
Add support for Lock branch - read-only
- Dominant language
- Python
- Stars
- 16
- Forks
- 23
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 4
Description
There is options that can set a branch as read-only, is some case when we finish works in specific version/branch it can be useful.
Docs:
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#lock-branch
There is also in api: `lock_branch`
https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28#update-branch-protection
I don't know if it possible to implement also for ASF GitBox.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the .asf.yaml documentation and schema, then trace how branch-related options are consumed by ASF GitBox. Check the linked GitHub branch-protection API documentation, especially lock_branch, and determine whether the option can be represented and applied. Done means the configuration supports read-only branch locking and its behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, python
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100