diff --git a/otterdog/eclipse-windowbuilder.jsonnet b/otterdog/eclipse-windowbuilder.jsonnet new file mode 100644 index 0000000..363e260 --- /dev/null +++ b/otterdog/eclipse-windowbuilder.jsonnet @@ -0,0 +1,90 @@ +local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet'; + +orgs.newOrg('eclipse-windowbuilder') { + settings+: { + blog: "https://www.eclipse.org/windowbuilder/", + dependabot_security_updates_enabled_for_new_repositories: false, + description: "A powerful, easy-to-use, bi-directional Java GUI designer.", + email: "wb-dev@eclipse.org", + members_can_change_project_visibility: false, + members_can_change_repo_visibility: false, + members_can_create_teams: false, + members_can_delete_repositories: false, + name: "Eclipse WindowBuilderâ„¢", + packages_containers_internal: false, + packages_containers_public: false, + readers_can_create_discussions: true, + two_factor_requirement: false, + web_commit_signoff_required: false, + workflows+: { + actions_can_approve_pull_request_reviews: false, + default_workflow_permissions: "write", + }, + }, + webhooks+: [ + orgs.newOrgWebhook('https://ci.eclipse.org/windowbuilder/github-webhook/') { + content_type: "json", + events+: [ + "issue_comment", + "pull_request", + "push" + ], + }, + orgs.newOrgWebhook('https://ci.eclipse.org/windowbuilder/ghprbhook/') { + content_type: "json", + events+: [ + "issue_comment", + "pull_request", + "push" + ], + }, + ], + secrets+: [ + orgs.newOrgSecret('GITLAB_API_TOKEN') { + selected_repositories+: [ + "windowbuilder" + ], + value: "********", + visibility: "selected", + }, + ], + _repositories+:: [ + orgs.newRepo('.github') { + allow_merge_commit: true, + allow_update_branch: false, + delete_branch_on_merge: false, + secret_scanning_push_protection: "disabled", + web_commit_signoff_required: false, + workflows+: { + actions_can_approve_pull_request_reviews: false, + default_workflow_permissions: "write", + }, + }, + orgs.newRepo('windowbuilder') { + allow_merge_commit: true, + default_branch: "master", + delete_branch_on_merge: false, + dependabot_security_updates_enabled: true, + description: "Eclipse Windowbuilder", + has_discussions: true, + homepage: "https://projects.eclipse.org/projects/tools.windowbuilder", + secret_scanning_push_protection: "disabled", + web_commit_signoff_required: false, + workflows+: { + actions_can_approve_pull_request_reviews: false, + default_workflow_permissions: "write", + }, + }, + orgs.newRepo('windowbuilder-website') { + allow_merge_commit: true, + allow_update_branch: false, + default_branch: "master", + delete_branch_on_merge: false, + secret_scanning_push_protection: "disabled", + web_commit_signoff_required: false, + workflows+: { + enabled: false, + }, + }, + ], +}