diff --git a/otterdog/eclipse-jdtls.jsonnet b/otterdog/eclipse-jdtls.jsonnet new file mode 100644 index 0000000..9b55c29 --- /dev/null +++ b/otterdog/eclipse-jdtls.jsonnet @@ -0,0 +1,117 @@ +local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet'; + +orgs.newOrg('eclipse-jdtls') { + settings+: { + dependabot_security_updates_enabled_for_new_repositories: false, + description: "", + members_can_change_project_visibility: false, + members_can_change_repo_visibility: false, + members_can_create_teams: false, + members_can_delete_repositories: false, + name: "Eclipse JDT LS", + packages_containers_internal: false, + packages_containers_public: false, + readers_can_create_discussions: true, + web_commit_signoff_required: false, + workflows+: { + actions_can_approve_pull_request_reviews: false, + }, + }, + webhooks+: [ + orgs.newOrgWebhook('https://ci.eclipse.org/ls/github-webhook/') { + content_type: "json", + events+: [ + "pull_request", + "push" + ], + }, + ], + _repositories+:: [ + orgs.newRepo('eclipse-jdt-core-incubator') { + allow_merge_commit: true, + allow_update_branch: false, + default_branch: "master", + delete_branch_on_merge: false, + dependabot_alerts_enabled: false, + has_issues: false, + secret_scanning: "disabled", + secret_scanning_push_protection: "disabled", + web_commit_signoff_required: false, + workflows+: { + actions_can_approve_pull_request_reviews: false, + }, + }, + orgs.newRepo('eclipse.jdt.ls') { + allow_update_branch: false, + default_branch: "master", + delete_branch_on_merge: false, + dependabot_security_updates_enabled: true, + description: "Java language server", + has_discussions: true, + secret_scanning: "disabled", + secret_scanning_push_protection: "disabled", + squash_merge_commit_title: "PR_TITLE", + topics+: [ + "eclipse", + "java", + "language-server-protocol" + ], + web_commit_signoff_required: false, + workflows+: { + actions_can_approve_pull_request_reviews: false, + }, + webhooks: [ + orgs.newRepoWebhook('https://hooks.waffle.io/api/projects/57e1520d88710fd001c25c9e/sources/57e15250097d9e01017605f3/receive') { + content_type: "json", + events+: [ + "*" + ], + secret: "********", + }, + orgs.newRepoWebhook('https://github.hipch.at/incoming?r=3205333&i=883df964-ce54-4c57-8dd3-88ccd826bde7') { + content_type: "json", + events+: [ + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "fork", + "gollum", + "issue_comment", + "issues", + "member", + "public", + "pull_request", + "pull_request_review_comment", + "push", + "release", + "status", + "team_add", + "watch" + ], + secret: "********", + }, + orgs.newRepoWebhook('https://ci.eclipse.org/ls/github-webhook/') { + events+: [ + "push" + ], + }, + orgs.newRepoWebhook('https://ci.eclipse.org/ls/ghprbhook/') { + events+: [ + "issue_comment", + "pull_request" + ], + }, + ], + branch_protection_rules: [ + orgs.newBranchProtectionRule('master') { + required_approving_review_count: null, + requires_pull_request: false, + requires_status_checks: false, + requires_strict_status_checks: true, + }, + ], + }, + ], +}