Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Protect release branches #134

Closed
ggwpez opened this issue Jul 24, 2023 · 12 comments
Closed

Protect release branches #134

ggwpez opened this issue Jul 24, 2023 · 12 comments

Comments

@ggwpez
Copy link
Member

ggwpez commented Jul 24, 2023

All substrate branches with prefix polkadot-v and all Polkadot branches with prefix release-v should require approval from @coderobe or @chevdor.

I could not find such an option in the GitHub branch protection, but we need this since the release branches keep getting pushed without coordination.

Tasks

No tasks being tracked yet.
@mordamax
Copy link
Contributor

@ggwpez in gh team/enterprise plan they seem to have rulesets, which can make this happen. PR custom review, is only for PRs, and it can't prevent push or creation

this is test from https://github.com/paritytech-stg/polkadot-sdk/settings/rules/55406
image

@paritytech-ci @lovelaced could you please take a look and help to configure this ?

@coderobe
Copy link

This would be extremely useful, both accidental and intentional circumvention happens way too frequently.
Whichever solution we have should allow @paritytech/release-engineering to push/approve

@lovelaced
Copy link

Right, if everyone agrees I can put this in place on both polkadot and substrate. There's a few more items I need to know the details of here:

Screenshot_20230725-091818.png

@coderobe
Copy link

@lovelaced that looks good to me as-is

@lovelaced
Copy link

Okay, rules have been created and are enforcing. Please let me know if something isn't behaving as expected

@lovelaced
Copy link

lovelaced commented Jul 25, 2023

Currently each is resolving to these branches being enforced under the rulesets:

polkadot:
Screenshot_20230725-093739.png

substrate:
Screenshot_20230725-093724.png

@coderobe
Copy link

i think you might have the targets the wrong way around

@lovelaced
Copy link

Oops so it is. Fixed

@coderobe
Copy link

Thanks 🙏

@ggwpez
Copy link
Member Author

ggwpez commented Aug 2, 2023

Looks like we cannot merge this now because of some rule paritytech/polkadot#7571.

Screenshot 2023-08-02 at 11 57 58

I think this "Only allow users with bypass permission to update matching refs" means that only Admins can actually merge anything, or?

@ggwpez ggwpez reopened this Aug 2, 2023
@coderobe
Copy link

coderobe commented Aug 2, 2023

Looks like we cannot merge this now because of some rule paritytech/polkadot#7571.

Screenshot 2023-08-02 at 11 57 58 I think this "Only allow users with bypass permission to update matching refs" means that only Admins can actually merge anything, or?

No, releng can :)
merged ^^

@ggwpez
Copy link
Member Author

ggwpez commented Aug 2, 2023

Okay good, thanks!

@ggwpez ggwpez closed this as completed Aug 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants