GitHub Setup

Configure GitHub to work with Sometimes

Branch Protection

Note: If your organization is on GitHub's free tier, Sometimes checks won't be fully enforced. To ensure full functionality and proper enforcement of checks, you'll need to upgrade your GitHub organization to either a Team or Enterprise plan. Until the upgrade is made, Sometimes checks may not behave as expected, which could impact your workflow or enforcement policies. If you've any questions, please contact us for assistance. Issue with free plan

The power of Sometimes comes from its ability to determine if a PR should require a review. In order for this to work, you will need to disable GitHub's built-in "Require approvals" setting within your branch protection rules.

  1. Navigate to your repository on GitHub
  2. Click on the "Settings" tab
  3. Click on "Branches" in the left-hand navigation
  4. Click on the "Add rule" button
  5. Under "Branch name pattern", enter *
  6. Under "Require pull request reviews before merging", uncheck the "Require approvals" checkbox
  7. Click "Create" to save your changes

Branch Protection