Skip to content

Commit

Permalink
feat: add eclipse_project custom property
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Dec 20, 2024
1 parent 2f6c3e2 commit b751d3e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion otterdog-defaults.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,14 @@ local newOrg(name, id) = {
"%(project_slug)s-security" % { project_slug: std.strReplace($.project_name, ".", "-") },
],

custom_properties: [],
custom_properties+: [
orgs.newCustomProperty('eclipse_project') {
default_value: $.project_name,
description: "the Eclipse project this repository belongs to",
required: true,
value_type: "string",
},
],

workflows: {
# enable workflows for all repositories
Expand Down Expand Up @@ -431,6 +438,11 @@ local newOrg(name, id) = {
required_status_checks: ['eclipse-otterdog:eclipsefdn/otterdog-sync', 'eclipse-otterdog:eclipsefdn/otterdog-validation'],
},
],

custom_properties+: {
eclipse_project: "foundation-internal",
},

environments: [
newEnvironment('github-pages') {
branch_policies: [
Expand Down

0 comments on commit b751d3e

Please sign in to comment.