Skip to content

Commit

Permalink
chore: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Jan 2, 2025
1 parent 756b6d7 commit 31e6e5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/otterdog.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"api_token": "bots/technology.cbi/github.com/api_token",
"username": "bots/technology.cbi/github.com/username",
"password": "bots/technology.cbi/github.com/password",
"2fa_seed": "bots/technology.cbi/github.com/2FA-seed"
"twofa_seed": "bots/technology.cbi/github.com/2FA-seed"
}
}
]
Expand Down
15 changes: 15 additions & 0 deletions examples/template/otterdog-defaults.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,17 @@ local newOrgRole(name) = {
base_role: "none",
};

# Function to create a new team with default settings.
local newTeam(name) = {
name: name,
description: "",
privacy: "visible",
notifications: true,
members: [],
skip_members: false,
skip_non_organization_members: false,
};

# Function to create a new environment with default settings.
local newEnvironment(name) = {
name: name,
Expand Down Expand Up @@ -371,6 +382,9 @@ local newOrg(name, id=name) = {
# organization roles
roles: [],

# organization teams
teams: [],

# organization secrets
secrets: [],

Expand Down Expand Up @@ -398,6 +412,7 @@ local newOrg(name, id=name) = {
{
newOrg:: newOrg,
newOrgRole:: newOrgRole,
newTeam:: newTeam,
newOrgWebhook:: newOrgWebhook,
newOrgSecret:: newOrgSecret,
newOrgVariable:: newOrgVariable,
Expand Down

0 comments on commit 31e6e5f

Please sign in to comment.