UNCLASSIFIED - NO CUI

Figure out why `project template` isn't protecting branches

Current Behavior

When the project template script runs branch remediation daily, it attempts to update dev/master branches for each dsop project to match the development/master branches of master-project-template. This should include protecting the development and master branches of each project in the dsop group, but currently that functionality does not appear to be working.

Live Example

https://repo1.dso.mil/ironbank-tools/project-template/-/jobs/5526876 In the console output from lines 53-57, it shows that the attempt to protect the development and master branches results in a 422 status code.

Expected Behavior

project-template should protect branches successfully on branch remediation

Possible Solution

Acceptance Criteria

  • project-template successfully protects master/development branches when they're unprotected

Unit and Integration Tests

  • Write or update any unit or integration tests
Edited by Kenneth Maguire