ER: Developers are creating branches off hackforla/website
- Dominant language
- JavaScript
- Stars
- 363
- Forks
- 872
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 18
Description
### Dependency
- [ ] #6416
### Emergent Requirement - Problem
Developers inadvertently create extraneous branches off the hackforla/website repository (instead of creating branches on their fork) but they do not have rights to delete the extraneous branches. We need to prevent developers from creating these branches, and we require an issue template for instances for use when such a branch has been created and needs to be deleted.
### Issue you discovered this emergent requirement in
- N/A
### Date discovered
discussed at meeting 6/12/2023
### Did you have to do something temporarily
- [x] YES
- [ ] NO
We are currently pruning the branches manually, which is a waste of time.
### Who was involved
Bonnie Wolfe, @JessicaLucindaCheng
### What happens if this is not addressed
The branches will persist until deleted by a lead and the lead will need to figure out which branches can be deleted, which can take a lot of time and research.
### Resources
### Recommended Action Items
- [x] Make a new issue
- [ ] Discuss with team
- [ ] Let a Team Lead know
### Potential solutions [draft]
- [x] prevent write members who are not part of merge team from creating branches
- @JessicaLucindaCheng implemented the solution for preventing members (aside from merge team) from creating branches off hackforla/website in the future by doing the following:
Click here to see the detailed instructions
- On the repo, select Settings.
- On the left menu, select Branches.
- Select Edit for the branch rule named *. (Yes, the branch rule is named with the asterisk symbol).
-
Scroll toward the bottom of the page. Then, you'll see the Restrict pushes that create matching branches; make sure the checkbox next to it is selected.
- [ ] Write an issue for a back-end developer to work on creating an issue template that includes both:
- [ ] A section for reporting that a branch created on the Website repo needs to be removed
- [ ] A section with instructions for how to remove the branch.
- [ ] Instructions can be copied and pasted from [Insert link to instructions] into the issue template
Contributor guide
Assessment
This issue has not been assessed yet.