Skip to content

Commit

Permalink
change: convert status checks of a ruleset to an embedded model, add …
Browse files Browse the repository at this point in the history
…do_not_enforce_on_create parameter
  • Loading branch information
netomi committed Oct 7, 2024
1 parent 15fc951 commit b0ef9fc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## [0.9.1] - 2024/10/07

### Added

- Added support for parameter `do_not_enforce_on_create` for status checks in a ruleset.

### Changed

- Converted status check related configurations of a ruleset to an embedded model.


## [0.9.0] - 2024/09/26

### Changed
Expand Down
19 changes: 12 additions & 7 deletions otterdog-defaults.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ local newPullRequest() = {
dismisses_stale_reviews: false,
};

# Function to create status checks with default settings.
local newStatusChecks() = {
do_not_enforce_on_create: false,
strict: false,
status_checks: [
"eclipse-eca-validation:eclipsefdn/eca"
],
};

# Function to create a new repository ruleset with default settings.
local newRepoRuleset(name) = {
name: name,
Expand All @@ -169,19 +178,14 @@ local newRepoRuleset(name) = {
bypass_actors: [],

required_pull_request: newPullRequest(),
required_status_checks: newStatusChecks(),

requires_linear_history: false,
requires_commit_signatures: false,

requires_status_checks: true,
required_status_checks: [
"eclipse-eca-validation:eclipsefdn/eca"
],
requires_strict_status_checks: false,

requires_deployments: false,
required_deployment_environments: [],

required_merge_queue: null,
};

Expand Down Expand Up @@ -437,5 +441,6 @@ local newOrg(id) = {
newRepoRuleset:: newRepoRuleset,
newEnvironment:: newEnvironment,
newPullRequest:: newPullRequest,
newStatusChecks:: newStatusChecks,
newMergeQueue:: newMergeQueue,
}

0 comments on commit b0ef9fc

Please sign in to comment.