Closed AlexTelon closed 1 year ago
The only reason I would have against this is that during a new PR, the text telling you which branch you're targeting is quite small and could be missed. So feature branches destined for dev
could end up all the way in main if both creator of the PR and the approver misses this part.
But perhaps a PR template with a "confirm correct branch is targeted" checkbox or something could help catch that?
"But perhaps a PR template with a "confirm correct branch is targeted" checkbox or something could help catch that?"
I really like this suggestion. If we find out that we actually have issues with this, meaning people merge to the wrong place, we can look into improving the process. But we can live with the risk I think. Its always possible to revert for instance if something actually went wrong.
I mean we could probably add a github action that checks if the PR to main was approved by ellen and if not fail it. Or use a hack where ellen is marked as the only codeowners and enfore codeowners in PR's to main.
So suggestion is
main
branch in all repos. (I could do this today if you agree)Sounds good?
Ok will update these repos and once a new issue has been created regarding point 2 above we can close this issue. @ellencarlsson can you create an issue for the addition of a PR template and reference this issue?
Note for the future. I'm happy to do more changes to the rules if you need or wish to try something else out. Just provide me with a clear instruction or which setting you wish changed and a checklist like the one above of which repos to change and it will probably only take me a few minutes.
As long as the instructions are clear and that I see that the build master approves of it.
Ok will update these repos and once a new issue has been created regarding point 2 above we can close this issue. @ellencarlsson can you create an issue for the addition of a PR template and reference this issue?
- [x] BMS
- [x] Backend
- [x] Charge-station-plus
- [x] Admin-GUI
- [x] My-pages
- [x] Cross-Platform
- [x] Android
yes I can do that!!
I mentioned this in #79:
"Also I have not added @ellencarlsson our build master to have any exemptions. I did not find a way to add a individual directly. Only roles and roles seem to only be possible to manage if one has a organization. See https://github.com/AlexTelon/FlexiCharge-Org/issues/73.
Would this cause issues? Every process must not be enforced by tooling. We can have a policy that she is the only one who can accept PR's to main even if technically all collaborators in the repo can do so."
73 would be one possible way to solve this. But I wont have time to look into this now.
Could we relax the enforced rules to allow updates to main? Like the Build Master is still the only one allowed to do it. But technically others could do so as well.
@ellencarlsson @Lillenooben @ecle20yy