w3c / wai-website

This repository hosts the WAI Website.
https://www.w3.org/WAI/
Other
46 stars 157 forks source link

Setup branch protection for all resource repos #310

Closed SteveALee closed 2 years ago

SteveALee commented 2 years ago

For each - take the branch listed in .gitmodules and

SteveALee commented 2 years ago

@shawna-slh are you aware of any I can leave out of above.

I intend to leave ACT, APG and Curricular until after meeting

SteveALee commented 2 years ago

@shawna-slh

I've added protection to all the above, even if have no non Team contributors or never will. Or if are not used in the wai-website repo.

I have NOT processed wai-aria-practices or wcag-act-rules yet as we might need to coordinate with the teams

A few observations:

SteveALee commented 2 years ago

How to change to a new "published" branch in resource repos

  1. Go to settings -> branches and find the current published branch
    • normally the one with the protection set - usually master
    • might need to check in wai-website .gitmodules files if more than one
  2. Go to the code page and select that branch image
  3. click on the branch name, enter publication into the box and click the create branch:... link image
  4. Goto to the settings pages -> branches and select edit for the rule for the old published branch
  5. Change the branch name to published and save image
  6. in the wai-website repo edit .gitmodules changing the branch name for resource repo to be published image

Now resource editors just need to create a PR and assign to you as per the workflow instructions

SteveALee commented 2 years ago

All done and tested with wcag-act-rules, wai-intro-wcag and wai-aria-practices

shawna-slh commented 2 years ago

@SteveALee build error for change to wai-aria-practices

SteveALee commented 2 years ago

fixed - was over protection

SteveALee commented 2 years ago

All done and tested with wcag-act-rules, wai-intro-wcag and wai-aria-practices

shawna-slh commented 1 year ago

Hey @SteveALee Please wait to do more until after we talk. Thanks!

SteveALee commented 1 year ago

Sure, though I think the new protected branch has been added to all repos now.