Skip to content

Commit 05a3b17

Browse files
authored
Merge pull request #30 from lcarva/HACBS-2534
Add blurb about bypassing rulesets
2 parents 54259f6 + d1f4d01 commit 05a3b17

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ ruleset](https://docs.github.com/en/repositories/configuring-branches-and-merges
2020
at the organization level. This is not done automatically. When adding a new workflow, be sure to
2121
also update the corresponding ruleset
2222
[here](https://github.com/organizations/enterprise-contract/settings/rules).
23+
24+
An existing ruleset may prevent direct pushes to the default branch, e.g. `main`, for a variety of
25+
reasons. Although pushing a commit directly to `main` is not recommended, certain occasions require
26+
it. For example, it is not possible to create a pull request targeting a brand-new empty repository.
27+
In such cases, add a temporary exception target for the corresponding ruleset. Remember to revert
28+
this change. Alternatively, avoid creating empty repositories altogether by always choosing to
29+
include a license.

0 commit comments

Comments
 (0)