diff --git a/.github/workflows/check-if-generated-code-up-to-date.main.kts b/.github/workflows/check-if-generated-code-up-to-date.main.kts deleted file mode 100755 index 096d356ba3..0000000000 --- a/.github/workflows/check-if-generated-code-up-to-date.main.kts +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env kotlin -@file:Repository("https://repo.maven.apache.org/maven2/") -@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.0.1") - -@file:Repository("https://bindings.krzeminski.it") -@file:DependsOn("actions:checkout:v4") -@file:DependsOn("gradle:actions__setup-gradle:v4") - -@file:Import("setup-java.main.kts") - -import io.github.typesafegithub.workflows.actions.actions.Checkout -import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle -import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest -import io.github.typesafegithub.workflows.domain.RunnerType.Windows2022 -import io.github.typesafegithub.workflows.domain.triggers.PullRequest -import io.github.typesafegithub.workflows.domain.triggers.Push -import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch -import io.github.typesafegithub.workflows.dsl.workflow - -workflow( - name = "Check if generated code up to date", - on = listOf( - Push(branches = listOf("main")), - PullRequest(), - WorkflowDispatch(), - ), - sourceFile = __FILE__, -) { - listOf(UbuntuLatest, Windows2022).forEach { runnerType -> - job( - id = "check-on-${runnerType::class.simpleName}", - runsOn = runnerType, - ) { - uses(action = Checkout()) - setupJava() - uses(action = ActionsSetupGradle()) - run( - name = "Generate action bindings", - command = "./gradlew :automation:code-generator:run", - ) - run( - name = "Fail if there are any changes in the generated code or docs", - command = "git diff --exit-code github-workflows-kt/src/gen/" - ) - } - } -} diff --git a/.github/workflows/check-if-generated-code-up-to-date.yaml b/.github/workflows/check-if-generated-code-up-to-date.yaml deleted file mode 100644 index 341c250e5f..0000000000 --- a/.github/workflows/check-if-generated-code-up-to-date.yaml +++ /dev/null @@ -1,67 +0,0 @@ -# This file was generated using Kotlin DSL (.github/workflows/check-if-generated-code-up-to-date.main.kts). -# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. -# Generated with https://github.com/typesafegithub/github-workflows-kt - -name: 'Check if generated code up to date' -on: - push: - branches: - - 'main' - pull_request: {} - workflow_dispatch: {} -jobs: - check_yaml_consistency: - name: 'Check YAML consistency' - runs-on: 'ubuntu-latest' - steps: - - id: 'step-0' - name: 'Check out' - uses: 'actions/checkout@v4' - - id: 'step-1' - name: 'Execute script' - run: 'rm ''.github/workflows/check-if-generated-code-up-to-date.yaml'' && ''.github/workflows/check-if-generated-code-up-to-date.main.kts''' - - id: 'step-2' - name: 'Consistency check' - run: 'git diff --exit-code ''.github/workflows/check-if-generated-code-up-to-date.yaml''' - check-on-UbuntuLatest: - runs-on: 'ubuntu-latest' - needs: - - 'check_yaml_consistency' - steps: - - id: 'step-0' - uses: 'actions/checkout@v4' - - id: 'step-1' - name: 'Set up JDK' - uses: 'actions/setup-java@v4' - with: - java-version: '11' - distribution: 'zulu' - - id: 'step-2' - uses: 'gradle/actions/setup-gradle@v4' - - id: 'step-3' - name: 'Generate action bindings' - run: './gradlew :automation:code-generator:run' - - id: 'step-4' - name: 'Fail if there are any changes in the generated code or docs' - run: 'git diff --exit-code github-workflows-kt/src/gen/' - check-on-Windows2022: - runs-on: 'windows-2022' - needs: - - 'check_yaml_consistency' - steps: - - id: 'step-0' - uses: 'actions/checkout@v4' - - id: 'step-1' - name: 'Set up JDK' - uses: 'actions/setup-java@v4' - with: - java-version: '11' - distribution: 'zulu' - - id: 'step-2' - uses: 'gradle/actions/setup-gradle@v4' - - id: 'step-3' - name: 'Generate action bindings' - run: './gradlew :automation:code-generator:run' - - id: 'step-4' - name: 'Fail if there are any changes in the generated code or docs' - run: 'git diff --exit-code github-workflows-kt/src/gen/' diff --git a/automation/code-generator/build.gradle.kts b/automation/code-generator/build.gradle.kts index 2643ebd8f3..3e3180c605 100644 --- a/automation/code-generator/build.gradle.kts +++ b/automation/code-generator/build.gradle.kts @@ -2,19 +2,11 @@ plugins { buildsrc.convention.`kotlin-jvm` kotlin("plugin.serialization") - - application } dependencies { + implementation("com.google.devtools.ksp:symbol-processing-api:2.0.21-1.0.26") implementation("com.squareup:kotlinpoet:2.0.0") + implementation("com.squareup:kotlinpoet-ksp:2.0.0") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") } - -application { - mainClass.set("io.github.typesafegithub.workflows.codegenerator.GenerationEntryPointKt") -} - -tasks.run.configure { - workingDir(rootProject.layout.projectDirectory) -} diff --git a/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/GenerationEntryPoint.kt b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/GenerationEntryPoint.kt deleted file mode 100644 index f035e067dc..0000000000 --- a/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/GenerationEntryPoint.kt +++ /dev/null @@ -1,13 +0,0 @@ -package io.github.typesafegithub.workflows.codegenerator - -import io.github.typesafegithub.workflows.dsl.expressions.generateEventPayloads -import java.nio.file.Paths - -/*** - * Either run this main() function or run this command: ./gradlew :code-generator:run - */ -fun main() { - // To ensure there are no leftovers from previous generations. - Paths.get("github-workflows-kt/src/gen").toFile().deleteRecursively() - generateEventPayloads() -} diff --git a/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/KspGenerator.kt b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/KspGenerator.kt new file mode 100644 index 0000000000..cf5374dbd8 --- /dev/null +++ b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/KspGenerator.kt @@ -0,0 +1,21 @@ +package io.github.typesafegithub.workflows.codegenerator + +import com.google.devtools.ksp.processing.CodeGenerator +import com.google.devtools.ksp.processing.Resolver +import com.google.devtools.ksp.processing.SymbolProcessor +import com.google.devtools.ksp.symbol.KSAnnotated +import io.github.typesafegithub.workflows.dsl.expressions.generateEventPayloads + +class KspGenerator( + private val codeGenerator: CodeGenerator, +) : SymbolProcessor { + private var wasRun = false + + override fun process(resolver: Resolver): List { + if (!wasRun) { + generateEventPayloads(codeGenerator = codeGenerator) + wasRun = true + } + return emptyList() + } +} diff --git a/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/KspGeneratorProvider.kt b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/KspGeneratorProvider.kt new file mode 100644 index 0000000000..3de1c573de --- /dev/null +++ b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/codegenerator/KspGeneratorProvider.kt @@ -0,0 +1,12 @@ +package io.github.typesafegithub.workflows.codegenerator + +import com.google.devtools.ksp.processing.SymbolProcessor +import com.google.devtools.ksp.processing.SymbolProcessorEnvironment +import com.google.devtools.ksp.processing.SymbolProcessorProvider + +class KspGeneratorProvider : SymbolProcessorProvider { + override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor = + KspGenerator( + codeGenerator = environment.codeGenerator, + ) +} diff --git a/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/dsl/expressions/GenerateEventPayloads.kt b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/dsl/expressions/GenerateEventPayloads.kt index 8059be5789..55eb883ebd 100644 --- a/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/dsl/expressions/GenerateEventPayloads.kt +++ b/automation/code-generator/src/main/kotlin/io/github/typesafegithub/workflows/dsl/expressions/GenerateEventPayloads.kt @@ -1,5 +1,6 @@ package io.github.typesafegithub.workflows.dsl.expressions +import com.google.devtools.ksp.processing.CodeGenerator import com.squareup.kotlinpoet.AnnotationSpec import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.FileSpec @@ -8,30 +9,26 @@ import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy import com.squareup.kotlinpoet.PropertySpec import com.squareup.kotlinpoet.TypeSpec import com.squareup.kotlinpoet.asClassName +import com.squareup.kotlinpoet.ksp.writeTo import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonArray import kotlinx.serialization.json.JsonElement import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.JsonPrimitive -import java.io.File +import kotlin.io.path.Path +import kotlin.io.path.invariantSeparatorsPathString -fun main() { - generateEventPayloads() -} - -/* +/** * Generate type-safe accessors for GitHub Event payloads * The payloads depend on the kind of the event: pull request, push, ... * * We read event payloads from binding-generate/src/test/resources/payloads - * We generate it inside github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/expressions/contexts + * The generated files are added using KSP's [codeGenerator]. * * The JSONs come from https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads * Feel free to add any payload you might need from that page - * */ -fun generateEventPayloads() { - println("== generateEventPayloads()") - println("GitHubContext subclass will be generated in ${kotlinGenDir.absolutePath}") + */ +fun generateEventPayloads(codeGenerator: CodeGenerator) { val params = listOf( PayloadEventParams("PushEvent", "event-push.json"), @@ -41,15 +38,14 @@ fun generateEventPayloads() { ) params .map { it.generateTypesafePayload() } - .forEach { fileSpec -> fileSpec.writeTo(kotlinGenDir) } - println("\n") + .forEach { fileSpec -> + fileSpec.writeTo(codeGenerator = codeGenerator, aggregating = false) + } } private val EXPRESSIONS = "io.github.typesafegithub.workflows.dsl.expressions" private val PACKAGE = "$EXPRESSIONS.contexts" -private val resourcesDir = File("automation/code-generator/src/main/resources/payloads") - -private val kotlinGenDir = File("github-workflows-kt/src/gen/kotlin") +private val resourcesDir = Path("/payloads") // ClassNames private val fakeList = ClassName(EXPRESSIONS, "FakeList") @@ -61,23 +57,22 @@ private val annotationFileSuppress = .addMember("%S", "ObjectPropertyNaming") .build() -private val fileComment = "File auto-generated by :gradlew code-generator:run" +private val fileComment = "File auto-generated by KSP" data class PayloadEventParams( val className: String, val path: String, ) { - val jsonFile = resourcesDir.resolve(path) + val jsonFile = resourcesDir.resolve(path).invariantSeparatorsPathString init { check(className == className.toPascalCase()) - check(jsonFile.canRead()) { "Can't read ${jsonFile.canonicalPath}" } } } fun PayloadEventParams.generateTypesafePayload(): FileSpec { - println("Parsing ${jsonFile.canonicalPath}") - val element: JsonObject = Json.parseToJsonElement(jsonFile.readText()) as JsonObject + val jsonFileContent = this::class.java.getResource(jsonFile)?.readText() ?: error("Cannot read $jsonFile!") + val element: JsonObject = Json.parseToJsonElement(jsonFileContent) as JsonObject val objects: Map = findAllObjects(element, "event") val fileSpec = generateObjectTypes(objects, className) return fileSpec @@ -133,7 +128,6 @@ fun JsonObject.generateObjectType( key: String, filename: String, ): TypeSpec { - println("Generating class ${payloadClassName(key, filename)} : ExpressionContext(\"github.$key\")") val properties = mapNotNull { it.generatePropertySpec(key, filename) } return TypeSpec .objectBuilder(payloadClassName(key, filename)) @@ -167,7 +161,6 @@ fun Map.Entry.generatePropertySpec( .build() } else -> { - println("Warning: unhandled $child") null } } diff --git a/automation/code-generator/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider b/automation/code-generator/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider new file mode 100644 index 0000000000..1b8b9dee34 --- /dev/null +++ b/automation/code-generator/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider @@ -0,0 +1 @@ +io.github.typesafegithub.workflows.codegenerator.KspGeneratorProvider \ No newline at end of file diff --git a/github-workflows-kt/build.gradle.kts b/github-workflows-kt/build.gradle.kts index 81671e7dae..686654c43d 100644 --- a/github-workflows-kt/build.gradle.kts +++ b/github-workflows-kt/build.gradle.kts @@ -7,6 +7,7 @@ plugins { buildsrc.convention.`duplicate-versions` kotlin("plugin.serialization") + id("com.google.devtools.ksp") version "2.0.21-1.0.26" // Code quality. id("io.gitlab.arturbosch.detekt") @@ -24,6 +25,7 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.3") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") implementation(projects.sharedInternal) + ksp(projects.automation.codeGenerator) testImplementation("dev.zacsweers.kctfork:core:0.5.1") // Needed to use the right version of the compiler for the libraries that depend on it. @@ -38,14 +40,6 @@ dependencies { testImplementation("EndBug:add-and-commit:v9") } -sourceSets { - main { - java { - setSrcDirs(listOf("src/gen/kotlin")) - } - } -} - tasks.withType { compilerOptions { freeCompilerArgs.addAll( @@ -68,7 +62,7 @@ kotlin { } fun ConfigurableKtLintTask.kotlinterConfig() { - exclude { it.file.invariantSeparatorsPath.contains("/gen/") } + exclude { it.file.invariantSeparatorsPath.contains("/generated/") } } tasks.lintKotlinMain { diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/PullRequestEvent.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/PullRequestEvent.kt deleted file mode 100644 index c8e44fb6d1..0000000000 --- a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/PullRequestEvent.kt +++ /dev/null @@ -1,952 +0,0 @@ -// File auto-generated by :gradlew code-generator:run -@file:Suppress("ObjectPropertyNaming") - -package io.github.typesafegithub.workflows.dsl.expressions.contexts - -import io.github.typesafegithub.workflows.dsl.expressions.FakeList -import kotlin.String -import kotlin.Suppress -import kotlin.collections.List - -public object PullRequestEventPullRequestUser { - public const val login: String = "github.event.pull_request.user.login" - - public const val id: String = "github.event.pull_request.user.id" - - public const val node_id: String = "github.event.pull_request.user.node_id" - - public const val avatar_url: String = "github.event.pull_request.user.avatar_url" - - public const val gravatar_id: String = "github.event.pull_request.user.gravatar_id" - - public const val url: String = "github.event.pull_request.user.url" - - public const val html_url: String = "github.event.pull_request.user.html_url" - - public const val followers_url: String = "github.event.pull_request.user.followers_url" - - public const val following_url: String = "github.event.pull_request.user.following_url" - - public const val gists_url: String = "github.event.pull_request.user.gists_url" - - public const val starred_url: String = "github.event.pull_request.user.starred_url" - - public const val subscriptions_url: String = "github.event.pull_request.user.subscriptions_url" - - public const val organizations_url: String = "github.event.pull_request.user.organizations_url" - - public const val repos_url: String = "github.event.pull_request.user.repos_url" - - public const val events_url: String = "github.event.pull_request.user.events_url" - - public const val received_events_url: String = - "github.event.pull_request.user.received_events_url" - - public const val type: String = "github.event.pull_request.user.type" - - public const val site_admin: String = "github.event.pull_request.user.site_admin" -} - -public object PullRequestEventPullRequestHeadUser { - public const val login: String = "github.event.pull_request.head.user.login" - - public const val id: String = "github.event.pull_request.head.user.id" - - public const val node_id: String = "github.event.pull_request.head.user.node_id" - - public const val avatar_url: String = "github.event.pull_request.head.user.avatar_url" - - public const val gravatar_id: String = "github.event.pull_request.head.user.gravatar_id" - - public const val url: String = "github.event.pull_request.head.user.url" - - public const val html_url: String = "github.event.pull_request.head.user.html_url" - - public const val followers_url: String = "github.event.pull_request.head.user.followers_url" - - public const val following_url: String = "github.event.pull_request.head.user.following_url" - - public const val gists_url: String = "github.event.pull_request.head.user.gists_url" - - public const val starred_url: String = "github.event.pull_request.head.user.starred_url" - - public const val subscriptions_url: String = - "github.event.pull_request.head.user.subscriptions_url" - - public const val organizations_url: String = - "github.event.pull_request.head.user.organizations_url" - - public const val repos_url: String = "github.event.pull_request.head.user.repos_url" - - public const val events_url: String = "github.event.pull_request.head.user.events_url" - - public const val received_events_url: String = - "github.event.pull_request.head.user.received_events_url" - - public const val type: String = "github.event.pull_request.head.user.type" - - public const val site_admin: String = "github.event.pull_request.head.user.site_admin" -} - -public object PullRequestEventPullRequestHeadRepoOwner { - public const val login: String = "github.event.pull_request.head.repo.owner.login" - - public const val id: String = "github.event.pull_request.head.repo.owner.id" - - public const val node_id: String = "github.event.pull_request.head.repo.owner.node_id" - - public const val avatar_url: String = "github.event.pull_request.head.repo.owner.avatar_url" - - public const val gravatar_id: String = "github.event.pull_request.head.repo.owner.gravatar_id" - - public const val url: String = "github.event.pull_request.head.repo.owner.url" - - public const val html_url: String = "github.event.pull_request.head.repo.owner.html_url" - - public const val followers_url: String = "github.event.pull_request.head.repo.owner.followers_url" - - public const val following_url: String = "github.event.pull_request.head.repo.owner.following_url" - - public const val gists_url: String = "github.event.pull_request.head.repo.owner.gists_url" - - public const val starred_url: String = "github.event.pull_request.head.repo.owner.starred_url" - - public const val subscriptions_url: String = - "github.event.pull_request.head.repo.owner.subscriptions_url" - - public const val organizations_url: String = - "github.event.pull_request.head.repo.owner.organizations_url" - - public const val repos_url: String = "github.event.pull_request.head.repo.owner.repos_url" - - public const val events_url: String = "github.event.pull_request.head.repo.owner.events_url" - - public const val received_events_url: String = - "github.event.pull_request.head.repo.owner.received_events_url" - - public const val type: String = "github.event.pull_request.head.repo.owner.type" - - public const val site_admin: String = "github.event.pull_request.head.repo.owner.site_admin" -} - -public object PullRequestEventPullRequestHeadRepo { - public const val id: String = "github.event.pull_request.head.repo.id" - - public const val node_id: String = "github.event.pull_request.head.repo.node_id" - - public const val name: String = "github.event.pull_request.head.repo.name" - - public const val full_name: String = "github.event.pull_request.head.repo.full_name" - - public const val `private`: String = "github.event.pull_request.head.repo.private" - - public val owner: PullRequestEventPullRequestHeadRepoOwner = - PullRequestEventPullRequestHeadRepoOwner - - public const val html_url: String = "github.event.pull_request.head.repo.html_url" - - public const val description: String = "github.event.pull_request.head.repo.description" - - public const val fork: String = "github.event.pull_request.head.repo.fork" - - public const val url: String = "github.event.pull_request.head.repo.url" - - public const val forks_url: String = "github.event.pull_request.head.repo.forks_url" - - public const val keys_url: String = "github.event.pull_request.head.repo.keys_url" - - public const val collaborators_url: String = - "github.event.pull_request.head.repo.collaborators_url" - - public const val teams_url: String = "github.event.pull_request.head.repo.teams_url" - - public const val hooks_url: String = "github.event.pull_request.head.repo.hooks_url" - - public const val issue_events_url: String = "github.event.pull_request.head.repo.issue_events_url" - - public const val events_url: String = "github.event.pull_request.head.repo.events_url" - - public const val assignees_url: String = "github.event.pull_request.head.repo.assignees_url" - - public const val branches_url: String = "github.event.pull_request.head.repo.branches_url" - - public const val tags_url: String = "github.event.pull_request.head.repo.tags_url" - - public const val blobs_url: String = "github.event.pull_request.head.repo.blobs_url" - - public const val git_tags_url: String = "github.event.pull_request.head.repo.git_tags_url" - - public const val git_refs_url: String = "github.event.pull_request.head.repo.git_refs_url" - - public const val trees_url: String = "github.event.pull_request.head.repo.trees_url" - - public const val statuses_url: String = "github.event.pull_request.head.repo.statuses_url" - - public const val languages_url: String = "github.event.pull_request.head.repo.languages_url" - - public const val stargazers_url: String = "github.event.pull_request.head.repo.stargazers_url" - - public const val contributors_url: String = "github.event.pull_request.head.repo.contributors_url" - - public const val subscribers_url: String = "github.event.pull_request.head.repo.subscribers_url" - - public const val subscription_url: String = "github.event.pull_request.head.repo.subscription_url" - - public const val commits_url: String = "github.event.pull_request.head.repo.commits_url" - - public const val git_commits_url: String = "github.event.pull_request.head.repo.git_commits_url" - - public const val comments_url: String = "github.event.pull_request.head.repo.comments_url" - - public const val issue_comment_url: String = - "github.event.pull_request.head.repo.issue_comment_url" - - public const val contents_url: String = "github.event.pull_request.head.repo.contents_url" - - public const val compare_url: String = "github.event.pull_request.head.repo.compare_url" - - public const val merges_url: String = "github.event.pull_request.head.repo.merges_url" - - public const val archive_url: String = "github.event.pull_request.head.repo.archive_url" - - public const val downloads_url: String = "github.event.pull_request.head.repo.downloads_url" - - public const val issues_url: String = "github.event.pull_request.head.repo.issues_url" - - public const val pulls_url: String = "github.event.pull_request.head.repo.pulls_url" - - public const val milestones_url: String = "github.event.pull_request.head.repo.milestones_url" - - public const val notifications_url: String = - "github.event.pull_request.head.repo.notifications_url" - - public const val labels_url: String = "github.event.pull_request.head.repo.labels_url" - - public const val releases_url: String = "github.event.pull_request.head.repo.releases_url" - - public const val deployments_url: String = "github.event.pull_request.head.repo.deployments_url" - - public const val created_at: String = "github.event.pull_request.head.repo.created_at" - - public const val updated_at: String = "github.event.pull_request.head.repo.updated_at" - - public const val pushed_at: String = "github.event.pull_request.head.repo.pushed_at" - - public const val git_url: String = "github.event.pull_request.head.repo.git_url" - - public const val ssh_url: String = "github.event.pull_request.head.repo.ssh_url" - - public const val clone_url: String = "github.event.pull_request.head.repo.clone_url" - - public const val svn_url: String = "github.event.pull_request.head.repo.svn_url" - - public const val homepage: String = "github.event.pull_request.head.repo.homepage" - - public const val size: String = "github.event.pull_request.head.repo.size" - - public const val stargazers_count: String = "github.event.pull_request.head.repo.stargazers_count" - - public const val watchers_count: String = "github.event.pull_request.head.repo.watchers_count" - - public const val language: String = "github.event.pull_request.head.repo.language" - - public const val has_issues: String = "github.event.pull_request.head.repo.has_issues" - - public const val has_projects: String = "github.event.pull_request.head.repo.has_projects" - - public const val has_downloads: String = "github.event.pull_request.head.repo.has_downloads" - - public const val has_wiki: String = "github.event.pull_request.head.repo.has_wiki" - - public const val has_pages: String = "github.event.pull_request.head.repo.has_pages" - - public const val forks_count: String = "github.event.pull_request.head.repo.forks_count" - - public const val mirror_url: String = "github.event.pull_request.head.repo.mirror_url" - - public const val archived: String = "github.event.pull_request.head.repo.archived" - - public const val disabled: String = "github.event.pull_request.head.repo.disabled" - - public const val open_issues_count: String = - "github.event.pull_request.head.repo.open_issues_count" - - public const val license: String = "github.event.pull_request.head.repo.license" - - public const val forks: String = "github.event.pull_request.head.repo.forks" - - public const val open_issues: String = "github.event.pull_request.head.repo.open_issues" - - public const val watchers: String = "github.event.pull_request.head.repo.watchers" - - public const val default_branch: String = "github.event.pull_request.head.repo.default_branch" - - public const val allow_squash_merge: String = - "github.event.pull_request.head.repo.allow_squash_merge" - - public const val allow_merge_commit: String = - "github.event.pull_request.head.repo.allow_merge_commit" - - public const val allow_rebase_merge: String = - "github.event.pull_request.head.repo.allow_rebase_merge" - - public const val delete_branch_on_merge: String = - "github.event.pull_request.head.repo.delete_branch_on_merge" -} - -public object PullRequestEventPullRequestHead { - public const val label: String = "github.event.pull_request.head.label" - - public const val ref: String = "github.event.pull_request.head.ref" - - public const val sha: String = "github.event.pull_request.head.sha" - - public val user: PullRequestEventPullRequestHeadUser = PullRequestEventPullRequestHeadUser - - public val repo: PullRequestEventPullRequestHeadRepo = PullRequestEventPullRequestHeadRepo -} - -public object PullRequestEventPullRequestBaseUser { - public const val login: String = "github.event.pull_request.base.user.login" - - public const val id: String = "github.event.pull_request.base.user.id" - - public const val node_id: String = "github.event.pull_request.base.user.node_id" - - public const val avatar_url: String = "github.event.pull_request.base.user.avatar_url" - - public const val gravatar_id: String = "github.event.pull_request.base.user.gravatar_id" - - public const val url: String = "github.event.pull_request.base.user.url" - - public const val html_url: String = "github.event.pull_request.base.user.html_url" - - public const val followers_url: String = "github.event.pull_request.base.user.followers_url" - - public const val following_url: String = "github.event.pull_request.base.user.following_url" - - public const val gists_url: String = "github.event.pull_request.base.user.gists_url" - - public const val starred_url: String = "github.event.pull_request.base.user.starred_url" - - public const val subscriptions_url: String = - "github.event.pull_request.base.user.subscriptions_url" - - public const val organizations_url: String = - "github.event.pull_request.base.user.organizations_url" - - public const val repos_url: String = "github.event.pull_request.base.user.repos_url" - - public const val events_url: String = "github.event.pull_request.base.user.events_url" - - public const val received_events_url: String = - "github.event.pull_request.base.user.received_events_url" - - public const val type: String = "github.event.pull_request.base.user.type" - - public const val site_admin: String = "github.event.pull_request.base.user.site_admin" -} - -public object PullRequestEventPullRequestBaseRepoOwner { - public const val login: String = "github.event.pull_request.base.repo.owner.login" - - public const val id: String = "github.event.pull_request.base.repo.owner.id" - - public const val node_id: String = "github.event.pull_request.base.repo.owner.node_id" - - public const val avatar_url: String = "github.event.pull_request.base.repo.owner.avatar_url" - - public const val gravatar_id: String = "github.event.pull_request.base.repo.owner.gravatar_id" - - public const val url: String = "github.event.pull_request.base.repo.owner.url" - - public const val html_url: String = "github.event.pull_request.base.repo.owner.html_url" - - public const val followers_url: String = "github.event.pull_request.base.repo.owner.followers_url" - - public const val following_url: String = "github.event.pull_request.base.repo.owner.following_url" - - public const val gists_url: String = "github.event.pull_request.base.repo.owner.gists_url" - - public const val starred_url: String = "github.event.pull_request.base.repo.owner.starred_url" - - public const val subscriptions_url: String = - "github.event.pull_request.base.repo.owner.subscriptions_url" - - public const val organizations_url: String = - "github.event.pull_request.base.repo.owner.organizations_url" - - public const val repos_url: String = "github.event.pull_request.base.repo.owner.repos_url" - - public const val events_url: String = "github.event.pull_request.base.repo.owner.events_url" - - public const val received_events_url: String = - "github.event.pull_request.base.repo.owner.received_events_url" - - public const val type: String = "github.event.pull_request.base.repo.owner.type" - - public const val site_admin: String = "github.event.pull_request.base.repo.owner.site_admin" -} - -public object PullRequestEventPullRequestBaseRepo { - public const val id: String = "github.event.pull_request.base.repo.id" - - public const val node_id: String = "github.event.pull_request.base.repo.node_id" - - public const val name: String = "github.event.pull_request.base.repo.name" - - public const val full_name: String = "github.event.pull_request.base.repo.full_name" - - public const val `private`: String = "github.event.pull_request.base.repo.private" - - public val owner: PullRequestEventPullRequestBaseRepoOwner = - PullRequestEventPullRequestBaseRepoOwner - - public const val html_url: String = "github.event.pull_request.base.repo.html_url" - - public const val description: String = "github.event.pull_request.base.repo.description" - - public const val fork: String = "github.event.pull_request.base.repo.fork" - - public const val url: String = "github.event.pull_request.base.repo.url" - - public const val forks_url: String = "github.event.pull_request.base.repo.forks_url" - - public const val keys_url: String = "github.event.pull_request.base.repo.keys_url" - - public const val collaborators_url: String = - "github.event.pull_request.base.repo.collaborators_url" - - public const val teams_url: String = "github.event.pull_request.base.repo.teams_url" - - public const val hooks_url: String = "github.event.pull_request.base.repo.hooks_url" - - public const val issue_events_url: String = "github.event.pull_request.base.repo.issue_events_url" - - public const val events_url: String = "github.event.pull_request.base.repo.events_url" - - public const val assignees_url: String = "github.event.pull_request.base.repo.assignees_url" - - public const val branches_url: String = "github.event.pull_request.base.repo.branches_url" - - public const val tags_url: String = "github.event.pull_request.base.repo.tags_url" - - public const val blobs_url: String = "github.event.pull_request.base.repo.blobs_url" - - public const val git_tags_url: String = "github.event.pull_request.base.repo.git_tags_url" - - public const val git_refs_url: String = "github.event.pull_request.base.repo.git_refs_url" - - public const val trees_url: String = "github.event.pull_request.base.repo.trees_url" - - public const val statuses_url: String = "github.event.pull_request.base.repo.statuses_url" - - public const val languages_url: String = "github.event.pull_request.base.repo.languages_url" - - public const val stargazers_url: String = "github.event.pull_request.base.repo.stargazers_url" - - public const val contributors_url: String = "github.event.pull_request.base.repo.contributors_url" - - public const val subscribers_url: String = "github.event.pull_request.base.repo.subscribers_url" - - public const val subscription_url: String = "github.event.pull_request.base.repo.subscription_url" - - public const val commits_url: String = "github.event.pull_request.base.repo.commits_url" - - public const val git_commits_url: String = "github.event.pull_request.base.repo.git_commits_url" - - public const val comments_url: String = "github.event.pull_request.base.repo.comments_url" - - public const val issue_comment_url: String = - "github.event.pull_request.base.repo.issue_comment_url" - - public const val contents_url: String = "github.event.pull_request.base.repo.contents_url" - - public const val compare_url: String = "github.event.pull_request.base.repo.compare_url" - - public const val merges_url: String = "github.event.pull_request.base.repo.merges_url" - - public const val archive_url: String = "github.event.pull_request.base.repo.archive_url" - - public const val downloads_url: String = "github.event.pull_request.base.repo.downloads_url" - - public const val issues_url: String = "github.event.pull_request.base.repo.issues_url" - - public const val pulls_url: String = "github.event.pull_request.base.repo.pulls_url" - - public const val milestones_url: String = "github.event.pull_request.base.repo.milestones_url" - - public const val notifications_url: String = - "github.event.pull_request.base.repo.notifications_url" - - public const val labels_url: String = "github.event.pull_request.base.repo.labels_url" - - public const val releases_url: String = "github.event.pull_request.base.repo.releases_url" - - public const val deployments_url: String = "github.event.pull_request.base.repo.deployments_url" - - public const val created_at: String = "github.event.pull_request.base.repo.created_at" - - public const val updated_at: String = "github.event.pull_request.base.repo.updated_at" - - public const val pushed_at: String = "github.event.pull_request.base.repo.pushed_at" - - public const val git_url: String = "github.event.pull_request.base.repo.git_url" - - public const val ssh_url: String = "github.event.pull_request.base.repo.ssh_url" - - public const val clone_url: String = "github.event.pull_request.base.repo.clone_url" - - public const val svn_url: String = "github.event.pull_request.base.repo.svn_url" - - public const val homepage: String = "github.event.pull_request.base.repo.homepage" - - public const val size: String = "github.event.pull_request.base.repo.size" - - public const val stargazers_count: String = "github.event.pull_request.base.repo.stargazers_count" - - public const val watchers_count: String = "github.event.pull_request.base.repo.watchers_count" - - public const val language: String = "github.event.pull_request.base.repo.language" - - public const val has_issues: String = "github.event.pull_request.base.repo.has_issues" - - public const val has_projects: String = "github.event.pull_request.base.repo.has_projects" - - public const val has_downloads: String = "github.event.pull_request.base.repo.has_downloads" - - public const val has_wiki: String = "github.event.pull_request.base.repo.has_wiki" - - public const val has_pages: String = "github.event.pull_request.base.repo.has_pages" - - public const val forks_count: String = "github.event.pull_request.base.repo.forks_count" - - public const val mirror_url: String = "github.event.pull_request.base.repo.mirror_url" - - public const val archived: String = "github.event.pull_request.base.repo.archived" - - public const val disabled: String = "github.event.pull_request.base.repo.disabled" - - public const val open_issues_count: String = - "github.event.pull_request.base.repo.open_issues_count" - - public const val license: String = "github.event.pull_request.base.repo.license" - - public const val forks: String = "github.event.pull_request.base.repo.forks" - - public const val open_issues: String = "github.event.pull_request.base.repo.open_issues" - - public const val watchers: String = "github.event.pull_request.base.repo.watchers" - - public const val default_branch: String = "github.event.pull_request.base.repo.default_branch" - - public const val allow_squash_merge: String = - "github.event.pull_request.base.repo.allow_squash_merge" - - public const val allow_merge_commit: String = - "github.event.pull_request.base.repo.allow_merge_commit" - - public const val allow_rebase_merge: String = - "github.event.pull_request.base.repo.allow_rebase_merge" - - public const val delete_branch_on_merge: String = - "github.event.pull_request.base.repo.delete_branch_on_merge" -} - -public object PullRequestEventPullRequestBase { - public const val label: String = "github.event.pull_request.base.label" - - public const val ref: String = "github.event.pull_request.base.ref" - - public const val sha: String = "github.event.pull_request.base.sha" - - public val user: PullRequestEventPullRequestBaseUser = PullRequestEventPullRequestBaseUser - - public val repo: PullRequestEventPullRequestBaseRepo = PullRequestEventPullRequestBaseRepo -} - -public object PullRequestEventPullRequestLinksSelf { - public const val href: String = "github.event.pull_request._links.self.href" -} - -public object PullRequestEventPullRequestLinksHtml { - public const val href: String = "github.event.pull_request._links.html.href" -} - -public object PullRequestEventPullRequestLinksIssue { - public const val href: String = "github.event.pull_request._links.issue.href" -} - -public object PullRequestEventPullRequestLinksComments { - public const val href: String = "github.event.pull_request._links.comments.href" -} - -public object PullRequestEventPullRequestLinksReviewComments { - public const val href: String = "github.event.pull_request._links.review_comments.href" -} - -public object PullRequestEventPullRequestLinksReviewComment { - public const val href: String = "github.event.pull_request._links.review_comment.href" -} - -public object PullRequestEventPullRequestLinksCommits { - public const val href: String = "github.event.pull_request._links.commits.href" -} - -public object PullRequestEventPullRequestLinksStatuses { - public const val href: String = "github.event.pull_request._links.statuses.href" -} - -public object PullRequestEventPullRequestLinks { - public val self: PullRequestEventPullRequestLinksSelf = PullRequestEventPullRequestLinksSelf - - public val html: PullRequestEventPullRequestLinksHtml = PullRequestEventPullRequestLinksHtml - - public val issue: PullRequestEventPullRequestLinksIssue = PullRequestEventPullRequestLinksIssue - - public val comments: PullRequestEventPullRequestLinksComments = - PullRequestEventPullRequestLinksComments - - public val review_comments: PullRequestEventPullRequestLinksReviewComments = - PullRequestEventPullRequestLinksReviewComments - - public val review_comment: PullRequestEventPullRequestLinksReviewComment = - PullRequestEventPullRequestLinksReviewComment - - public val commits: PullRequestEventPullRequestLinksCommits = - PullRequestEventPullRequestLinksCommits - - public val statuses: PullRequestEventPullRequestLinksStatuses = - PullRequestEventPullRequestLinksStatuses -} - -public object PullRequestEventPullRequest { - public const val url: String = "github.event.pull_request.url" - - public const val id: String = "github.event.pull_request.id" - - public const val node_id: String = "github.event.pull_request.node_id" - - public const val html_url: String = "github.event.pull_request.html_url" - - public const val diff_url: String = "github.event.pull_request.diff_url" - - public const val patch_url: String = "github.event.pull_request.patch_url" - - public const val issue_url: String = "github.event.pull_request.issue_url" - - public const val number: String = "github.event.pull_request.number" - - public const val state: String = "github.event.pull_request.state" - - public const val locked: String = "github.event.pull_request.locked" - - public const val title: String = "github.event.pull_request.title" - - public val user: PullRequestEventPullRequestUser = PullRequestEventPullRequestUser - - public const val body: String = "github.event.pull_request.body" - - public const val created_at: String = "github.event.pull_request.created_at" - - public const val updated_at: String = "github.event.pull_request.updated_at" - - public const val closed_at: String = "github.event.pull_request.closed_at" - - public const val merged_at: String = "github.event.pull_request.merged_at" - - public const val merge_commit_sha: String = "github.event.pull_request.merge_commit_sha" - - public const val assignee: String = "github.event.pull_request.assignee" - - public val assignees: List = FakeList("github.event.pull_request.assignees") - - public val requested_reviewers: List = - FakeList("github.event.pull_request.requested_reviewers") - - public val requested_teams: List = FakeList("github.event.pull_request.requested_teams") - - public val labels: List = FakeList("github.event.pull_request.labels") - - public const val milestone: String = "github.event.pull_request.milestone" - - public const val commits_url: String = "github.event.pull_request.commits_url" - - public const val review_comments_url: String = "github.event.pull_request.review_comments_url" - - public const val review_comment_url: String = "github.event.pull_request.review_comment_url" - - public const val comments_url: String = "github.event.pull_request.comments_url" - - public const val statuses_url: String = "github.event.pull_request.statuses_url" - - public val head: PullRequestEventPullRequestHead = PullRequestEventPullRequestHead - - public val base: PullRequestEventPullRequestBase = PullRequestEventPullRequestBase - - public val _links: PullRequestEventPullRequestLinks = PullRequestEventPullRequestLinks - - public const val author_association: String = "github.event.pull_request.author_association" - - public const val draft: String = "github.event.pull_request.draft" - - public const val merged: String = "github.event.pull_request.merged" - - public const val mergeable: String = "github.event.pull_request.mergeable" - - public const val rebaseable: String = "github.event.pull_request.rebaseable" - - public const val mergeable_state: String = "github.event.pull_request.mergeable_state" - - public const val merged_by: String = "github.event.pull_request.merged_by" - - public const val comments: String = "github.event.pull_request.comments" - - public const val review_comments: String = "github.event.pull_request.review_comments" - - public const val maintainer_can_modify: String = "github.event.pull_request.maintainer_can_modify" - - public const val commits: String = "github.event.pull_request.commits" - - public const val additions: String = "github.event.pull_request.additions" - - public const val deletions: String = "github.event.pull_request.deletions" - - public const val changed_files: String = "github.event.pull_request.changed_files" -} - -public object PullRequestEventRepositoryOwner { - public const val login: String = "github.event.repository.owner.login" - - public const val id: String = "github.event.repository.owner.id" - - public const val node_id: String = "github.event.repository.owner.node_id" - - public const val avatar_url: String = "github.event.repository.owner.avatar_url" - - public const val gravatar_id: String = "github.event.repository.owner.gravatar_id" - - public const val url: String = "github.event.repository.owner.url" - - public const val html_url: String = "github.event.repository.owner.html_url" - - public const val followers_url: String = "github.event.repository.owner.followers_url" - - public const val following_url: String = "github.event.repository.owner.following_url" - - public const val gists_url: String = "github.event.repository.owner.gists_url" - - public const val starred_url: String = "github.event.repository.owner.starred_url" - - public const val subscriptions_url: String = "github.event.repository.owner.subscriptions_url" - - public const val organizations_url: String = "github.event.repository.owner.organizations_url" - - public const val repos_url: String = "github.event.repository.owner.repos_url" - - public const val events_url: String = "github.event.repository.owner.events_url" - - public const val received_events_url: String = "github.event.repository.owner.received_events_url" - - public const val type: String = "github.event.repository.owner.type" - - public const val site_admin: String = "github.event.repository.owner.site_admin" -} - -public object PullRequestEventRepository { - public const val id: String = "github.event.repository.id" - - public const val node_id: String = "github.event.repository.node_id" - - public const val name: String = "github.event.repository.name" - - public const val full_name: String = "github.event.repository.full_name" - - public const val `private`: String = "github.event.repository.private" - - public val owner: PullRequestEventRepositoryOwner = PullRequestEventRepositoryOwner - - public const val html_url: String = "github.event.repository.html_url" - - public const val description: String = "github.event.repository.description" - - public const val fork: String = "github.event.repository.fork" - - public const val url: String = "github.event.repository.url" - - public const val forks_url: String = "github.event.repository.forks_url" - - public const val keys_url: String = "github.event.repository.keys_url" - - public const val collaborators_url: String = "github.event.repository.collaborators_url" - - public const val teams_url: String = "github.event.repository.teams_url" - - public const val hooks_url: String = "github.event.repository.hooks_url" - - public const val issue_events_url: String = "github.event.repository.issue_events_url" - - public const val events_url: String = "github.event.repository.events_url" - - public const val assignees_url: String = "github.event.repository.assignees_url" - - public const val branches_url: String = "github.event.repository.branches_url" - - public const val tags_url: String = "github.event.repository.tags_url" - - public const val blobs_url: String = "github.event.repository.blobs_url" - - public const val git_tags_url: String = "github.event.repository.git_tags_url" - - public const val git_refs_url: String = "github.event.repository.git_refs_url" - - public const val trees_url: String = "github.event.repository.trees_url" - - public const val statuses_url: String = "github.event.repository.statuses_url" - - public const val languages_url: String = "github.event.repository.languages_url" - - public const val stargazers_url: String = "github.event.repository.stargazers_url" - - public const val contributors_url: String = "github.event.repository.contributors_url" - - public const val subscribers_url: String = "github.event.repository.subscribers_url" - - public const val subscription_url: String = "github.event.repository.subscription_url" - - public const val commits_url: String = "github.event.repository.commits_url" - - public const val git_commits_url: String = "github.event.repository.git_commits_url" - - public const val comments_url: String = "github.event.repository.comments_url" - - public const val issue_comment_url: String = "github.event.repository.issue_comment_url" - - public const val contents_url: String = "github.event.repository.contents_url" - - public const val compare_url: String = "github.event.repository.compare_url" - - public const val merges_url: String = "github.event.repository.merges_url" - - public const val archive_url: String = "github.event.repository.archive_url" - - public const val downloads_url: String = "github.event.repository.downloads_url" - - public const val issues_url: String = "github.event.repository.issues_url" - - public const val pulls_url: String = "github.event.repository.pulls_url" - - public const val milestones_url: String = "github.event.repository.milestones_url" - - public const val notifications_url: String = "github.event.repository.notifications_url" - - public const val labels_url: String = "github.event.repository.labels_url" - - public const val releases_url: String = "github.event.repository.releases_url" - - public const val deployments_url: String = "github.event.repository.deployments_url" - - public const val created_at: String = "github.event.repository.created_at" - - public const val updated_at: String = "github.event.repository.updated_at" - - public const val pushed_at: String = "github.event.repository.pushed_at" - - public const val git_url: String = "github.event.repository.git_url" - - public const val ssh_url: String = "github.event.repository.ssh_url" - - public const val clone_url: String = "github.event.repository.clone_url" - - public const val svn_url: String = "github.event.repository.svn_url" - - public const val homepage: String = "github.event.repository.homepage" - - public const val size: String = "github.event.repository.size" - - public const val stargazers_count: String = "github.event.repository.stargazers_count" - - public const val watchers_count: String = "github.event.repository.watchers_count" - - public const val language: String = "github.event.repository.language" - - public const val has_issues: String = "github.event.repository.has_issues" - - public const val has_projects: String = "github.event.repository.has_projects" - - public const val has_downloads: String = "github.event.repository.has_downloads" - - public const val has_wiki: String = "github.event.repository.has_wiki" - - public const val has_pages: String = "github.event.repository.has_pages" - - public const val forks_count: String = "github.event.repository.forks_count" - - public const val mirror_url: String = "github.event.repository.mirror_url" - - public const val archived: String = "github.event.repository.archived" - - public const val disabled: String = "github.event.repository.disabled" - - public const val open_issues_count: String = "github.event.repository.open_issues_count" - - public const val license: String = "github.event.repository.license" - - public const val forks: String = "github.event.repository.forks" - - public const val open_issues: String = "github.event.repository.open_issues" - - public const val watchers: String = "github.event.repository.watchers" - - public const val default_branch: String = "github.event.repository.default_branch" -} - -public object PullRequestEventSender { - public const val login: String = "github.event.sender.login" - - public const val id: String = "github.event.sender.id" - - public const val node_id: String = "github.event.sender.node_id" - - public const val avatar_url: String = "github.event.sender.avatar_url" - - public const val gravatar_id: String = "github.event.sender.gravatar_id" - - public const val url: String = "github.event.sender.url" - - public const val html_url: String = "github.event.sender.html_url" - - public const val followers_url: String = "github.event.sender.followers_url" - - public const val following_url: String = "github.event.sender.following_url" - - public const val gists_url: String = "github.event.sender.gists_url" - - public const val starred_url: String = "github.event.sender.starred_url" - - public const val subscriptions_url: String = "github.event.sender.subscriptions_url" - - public const val organizations_url: String = "github.event.sender.organizations_url" - - public const val repos_url: String = "github.event.sender.repos_url" - - public const val events_url: String = "github.event.sender.events_url" - - public const val received_events_url: String = "github.event.sender.received_events_url" - - public const val type: String = "github.event.sender.type" - - public const val site_admin: String = "github.event.sender.site_admin" -} - -public object PullRequestEvent { - public const val action: String = "github.event.action" - - public const val number: String = "github.event.number" - - public val pull_request: PullRequestEventPullRequest = PullRequestEventPullRequest - - public val repository: PullRequestEventRepository = PullRequestEventRepository - - public val sender: PullRequestEventSender = PullRequestEventSender -} diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/PushEvent.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/PushEvent.kt deleted file mode 100644 index 7de863c6a6..0000000000 --- a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/PushEvent.kt +++ /dev/null @@ -1,315 +0,0 @@ -// File auto-generated by :gradlew code-generator:run -@file:Suppress("ObjectPropertyNaming") - -package io.github.typesafegithub.workflows.dsl.expressions.contexts - -import io.github.typesafegithub.workflows.dsl.expressions.FakeList -import kotlin.String -import kotlin.Suppress -import kotlin.collections.List - -public object PushEventHeadCommitAuthor { - public const val name: String = "github.event.head_commit.author.name" - - public const val email: String = "github.event.head_commit.author.email" - - public const val username: String = "github.event.head_commit.author.username" -} - -public object PushEventHeadCommitCommitter { - public const val name: String = "github.event.head_commit.committer.name" - - public const val email: String = "github.event.head_commit.committer.email" - - public const val username: String = "github.event.head_commit.committer.username" -} - -public object PushEventHeadCommit { - public const val id: String = "github.event.head_commit.id" - - public const val tree_id: String = "github.event.head_commit.tree_id" - - public const val distinct: String = "github.event.head_commit.distinct" - - public const val message: String = "github.event.head_commit.message" - - public const val timestamp: String = "github.event.head_commit.timestamp" - - public const val url: String = "github.event.head_commit.url" - - public val author: PushEventHeadCommitAuthor = PushEventHeadCommitAuthor - - public val committer: PushEventHeadCommitCommitter = PushEventHeadCommitCommitter - - public val added: List = FakeList("github.event.head_commit.added") - - public val removed: List = FakeList("github.event.head_commit.removed") - - public val modified: List = FakeList("github.event.head_commit.modified") -} - -public object PushEventRepositoryOwner { - public const val name: String = "github.event.repository.owner.name" - - public const val email: String = "github.event.repository.owner.email" - - public const val login: String = "github.event.repository.owner.login" - - public const val id: String = "github.event.repository.owner.id" - - public const val node_id: String = "github.event.repository.owner.node_id" - - public const val avatar_url: String = "github.event.repository.owner.avatar_url" - - public const val gravatar_id: String = "github.event.repository.owner.gravatar_id" - - public const val url: String = "github.event.repository.owner.url" - - public const val html_url: String = "github.event.repository.owner.html_url" - - public const val followers_url: String = "github.event.repository.owner.followers_url" - - public const val following_url: String = "github.event.repository.owner.following_url" - - public const val gists_url: String = "github.event.repository.owner.gists_url" - - public const val starred_url: String = "github.event.repository.owner.starred_url" - - public const val subscriptions_url: String = "github.event.repository.owner.subscriptions_url" - - public const val organizations_url: String = "github.event.repository.owner.organizations_url" - - public const val repos_url: String = "github.event.repository.owner.repos_url" - - public const val events_url: String = "github.event.repository.owner.events_url" - - public const val received_events_url: String = "github.event.repository.owner.received_events_url" - - public const val type: String = "github.event.repository.owner.type" - - public const val site_admin: String = "github.event.repository.owner.site_admin" -} - -public object PushEventRepository { - public const val id: String = "github.event.repository.id" - - public const val node_id: String = "github.event.repository.node_id" - - public const val name: String = "github.event.repository.name" - - public const val full_name: String = "github.event.repository.full_name" - - public const val `private`: String = "github.event.repository.private" - - public val owner: PushEventRepositoryOwner = PushEventRepositoryOwner - - public const val html_url: String = "github.event.repository.html_url" - - public const val description: String = "github.event.repository.description" - - public const val fork: String = "github.event.repository.fork" - - public const val url: String = "github.event.repository.url" - - public const val forks_url: String = "github.event.repository.forks_url" - - public const val keys_url: String = "github.event.repository.keys_url" - - public const val collaborators_url: String = "github.event.repository.collaborators_url" - - public const val teams_url: String = "github.event.repository.teams_url" - - public const val hooks_url: String = "github.event.repository.hooks_url" - - public const val issue_events_url: String = "github.event.repository.issue_events_url" - - public const val events_url: String = "github.event.repository.events_url" - - public const val assignees_url: String = "github.event.repository.assignees_url" - - public const val branches_url: String = "github.event.repository.branches_url" - - public const val tags_url: String = "github.event.repository.tags_url" - - public const val blobs_url: String = "github.event.repository.blobs_url" - - public const val git_tags_url: String = "github.event.repository.git_tags_url" - - public const val git_refs_url: String = "github.event.repository.git_refs_url" - - public const val trees_url: String = "github.event.repository.trees_url" - - public const val statuses_url: String = "github.event.repository.statuses_url" - - public const val languages_url: String = "github.event.repository.languages_url" - - public const val stargazers_url: String = "github.event.repository.stargazers_url" - - public const val contributors_url: String = "github.event.repository.contributors_url" - - public const val subscribers_url: String = "github.event.repository.subscribers_url" - - public const val subscription_url: String = "github.event.repository.subscription_url" - - public const val commits_url: String = "github.event.repository.commits_url" - - public const val git_commits_url: String = "github.event.repository.git_commits_url" - - public const val comments_url: String = "github.event.repository.comments_url" - - public const val issue_comment_url: String = "github.event.repository.issue_comment_url" - - public const val contents_url: String = "github.event.repository.contents_url" - - public const val compare_url: String = "github.event.repository.compare_url" - - public const val merges_url: String = "github.event.repository.merges_url" - - public const val archive_url: String = "github.event.repository.archive_url" - - public const val downloads_url: String = "github.event.repository.downloads_url" - - public const val issues_url: String = "github.event.repository.issues_url" - - public const val pulls_url: String = "github.event.repository.pulls_url" - - public const val milestones_url: String = "github.event.repository.milestones_url" - - public const val notifications_url: String = "github.event.repository.notifications_url" - - public const val labels_url: String = "github.event.repository.labels_url" - - public const val releases_url: String = "github.event.repository.releases_url" - - public const val deployments_url: String = "github.event.repository.deployments_url" - - public const val created_at: String = "github.event.repository.created_at" - - public const val updated_at: String = "github.event.repository.updated_at" - - public const val pushed_at: String = "github.event.repository.pushed_at" - - public const val git_url: String = "github.event.repository.git_url" - - public const val ssh_url: String = "github.event.repository.ssh_url" - - public const val clone_url: String = "github.event.repository.clone_url" - - public const val svn_url: String = "github.event.repository.svn_url" - - public const val homepage: String = "github.event.repository.homepage" - - public const val size: String = "github.event.repository.size" - - public const val stargazers_count: String = "github.event.repository.stargazers_count" - - public const val watchers_count: String = "github.event.repository.watchers_count" - - public const val language: String = "github.event.repository.language" - - public const val has_issues: String = "github.event.repository.has_issues" - - public const val has_projects: String = "github.event.repository.has_projects" - - public const val has_downloads: String = "github.event.repository.has_downloads" - - public const val has_wiki: String = "github.event.repository.has_wiki" - - public const val has_pages: String = "github.event.repository.has_pages" - - public const val forks_count: String = "github.event.repository.forks_count" - - public const val mirror_url: String = "github.event.repository.mirror_url" - - public const val archived: String = "github.event.repository.archived" - - public const val disabled: String = "github.event.repository.disabled" - - public const val open_issues_count: String = "github.event.repository.open_issues_count" - - public const val license: String = "github.event.repository.license" - - public const val forks: String = "github.event.repository.forks" - - public const val open_issues: String = "github.event.repository.open_issues" - - public const val watchers: String = "github.event.repository.watchers" - - public const val default_branch: String = "github.event.repository.default_branch" - - public const val stargazers: String = "github.event.repository.stargazers" - - public const val master_branch: String = "github.event.repository.master_branch" -} - -public object PushEventPusher { - public const val name: String = "github.event.pusher.name" - - public const val email: String = "github.event.pusher.email" -} - -public object PushEventSender { - public const val login: String = "github.event.sender.login" - - public const val id: String = "github.event.sender.id" - - public const val node_id: String = "github.event.sender.node_id" - - public const val avatar_url: String = "github.event.sender.avatar_url" - - public const val gravatar_id: String = "github.event.sender.gravatar_id" - - public const val url: String = "github.event.sender.url" - - public const val html_url: String = "github.event.sender.html_url" - - public const val followers_url: String = "github.event.sender.followers_url" - - public const val following_url: String = "github.event.sender.following_url" - - public const val gists_url: String = "github.event.sender.gists_url" - - public const val starred_url: String = "github.event.sender.starred_url" - - public const val subscriptions_url: String = "github.event.sender.subscriptions_url" - - public const val organizations_url: String = "github.event.sender.organizations_url" - - public const val repos_url: String = "github.event.sender.repos_url" - - public const val events_url: String = "github.event.sender.events_url" - - public const val received_events_url: String = "github.event.sender.received_events_url" - - public const val type: String = "github.event.sender.type" - - public const val site_admin: String = "github.event.sender.site_admin" -} - -public object PushEvent { - public const val ref: String = "github.event.ref" - - public const val before: String = "github.event.before" - - public const val after: String = "github.event.after" - - public const val created: String = "github.event.created" - - public const val deleted: String = "github.event.deleted" - - public const val forced: String = "github.event.forced" - - public const val base_ref: String = "github.event.base_ref" - - public const val compare: String = "github.event.compare" - - public val commits: List = FakeList("github.event.commits") - - public val head_commit: PushEventHeadCommit = PushEventHeadCommit - - public val repository: PushEventRepository = PushEventRepository - - public val pusher: PushEventPusher = PushEventPusher - - public val sender: PushEventSender = PushEventSender -} diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/ReleaseEvent.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/ReleaseEvent.kt deleted file mode 100644 index dfaf7c1e27..0000000000 --- a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/ReleaseEvent.kt +++ /dev/null @@ -1,319 +0,0 @@ -// File auto-generated by :gradlew code-generator:run -@file:Suppress("ObjectPropertyNaming") - -package io.github.typesafegithub.workflows.dsl.expressions.contexts - -import io.github.typesafegithub.workflows.dsl.expressions.FakeList -import kotlin.String -import kotlin.Suppress -import kotlin.collections.List - -public object ReleaseEventReleaseAuthor { - public const val login: String = "github.event.release.author.login" - - public const val id: String = "github.event.release.author.id" - - public const val node_id: String = "github.event.release.author.node_id" - - public const val avatar_url: String = "github.event.release.author.avatar_url" - - public const val gravatar_id: String = "github.event.release.author.gravatar_id" - - public const val url: String = "github.event.release.author.url" - - public const val html_url: String = "github.event.release.author.html_url" - - public const val followers_url: String = "github.event.release.author.followers_url" - - public const val following_url: String = "github.event.release.author.following_url" - - public const val gists_url: String = "github.event.release.author.gists_url" - - public const val starred_url: String = "github.event.release.author.starred_url" - - public const val subscriptions_url: String = "github.event.release.author.subscriptions_url" - - public const val organizations_url: String = "github.event.release.author.organizations_url" - - public const val repos_url: String = "github.event.release.author.repos_url" - - public const val events_url: String = "github.event.release.author.events_url" - - public const val received_events_url: String = "github.event.release.author.received_events_url" - - public const val type: String = "github.event.release.author.type" - - public const val site_admin: String = "github.event.release.author.site_admin" -} - -public object ReleaseEventRelease { - public const val url: String = "github.event.release.url" - - public const val assets_url: String = "github.event.release.assets_url" - - public const val upload_url: String = "github.event.release.upload_url" - - public const val html_url: String = "github.event.release.html_url" - - public const val id: String = "github.event.release.id" - - public const val node_id: String = "github.event.release.node_id" - - public const val tag_name: String = "github.event.release.tag_name" - - public const val target_commitish: String = "github.event.release.target_commitish" - - public const val name: String = "github.event.release.name" - - public const val draft: String = "github.event.release.draft" - - public val author: ReleaseEventReleaseAuthor = ReleaseEventReleaseAuthor - - public const val prerelease: String = "github.event.release.prerelease" - - public const val created_at: String = "github.event.release.created_at" - - public const val published_at: String = "github.event.release.published_at" - - public val assets: List = FakeList("github.event.release.assets") - - public const val tarball_url: String = "github.event.release.tarball_url" - - public const val zipball_url: String = "github.event.release.zipball_url" - - public const val body: String = "github.event.release.body" -} - -public object ReleaseEventRepositoryOwner { - public const val login: String = "github.event.repository.owner.login" - - public const val id: String = "github.event.repository.owner.id" - - public const val node_id: String = "github.event.repository.owner.node_id" - - public const val avatar_url: String = "github.event.repository.owner.avatar_url" - - public const val gravatar_id: String = "github.event.repository.owner.gravatar_id" - - public const val url: String = "github.event.repository.owner.url" - - public const val html_url: String = "github.event.repository.owner.html_url" - - public const val followers_url: String = "github.event.repository.owner.followers_url" - - public const val following_url: String = "github.event.repository.owner.following_url" - - public const val gists_url: String = "github.event.repository.owner.gists_url" - - public const val starred_url: String = "github.event.repository.owner.starred_url" - - public const val subscriptions_url: String = "github.event.repository.owner.subscriptions_url" - - public const val organizations_url: String = "github.event.repository.owner.organizations_url" - - public const val repos_url: String = "github.event.repository.owner.repos_url" - - public const val events_url: String = "github.event.repository.owner.events_url" - - public const val received_events_url: String = "github.event.repository.owner.received_events_url" - - public const val type: String = "github.event.repository.owner.type" - - public const val site_admin: String = "github.event.repository.owner.site_admin" -} - -public object ReleaseEventRepository { - public const val id: String = "github.event.repository.id" - - public const val node_id: String = "github.event.repository.node_id" - - public const val name: String = "github.event.repository.name" - - public const val full_name: String = "github.event.repository.full_name" - - public const val `private`: String = "github.event.repository.private" - - public val owner: ReleaseEventRepositoryOwner = ReleaseEventRepositoryOwner - - public const val html_url: String = "github.event.repository.html_url" - - public const val description: String = "github.event.repository.description" - - public const val fork: String = "github.event.repository.fork" - - public const val url: String = "github.event.repository.url" - - public const val forks_url: String = "github.event.repository.forks_url" - - public const val keys_url: String = "github.event.repository.keys_url" - - public const val collaborators_url: String = "github.event.repository.collaborators_url" - - public const val teams_url: String = "github.event.repository.teams_url" - - public const val hooks_url: String = "github.event.repository.hooks_url" - - public const val issue_events_url: String = "github.event.repository.issue_events_url" - - public const val events_url: String = "github.event.repository.events_url" - - public const val assignees_url: String = "github.event.repository.assignees_url" - - public const val branches_url: String = "github.event.repository.branches_url" - - public const val tags_url: String = "github.event.repository.tags_url" - - public const val blobs_url: String = "github.event.repository.blobs_url" - - public const val git_tags_url: String = "github.event.repository.git_tags_url" - - public const val git_refs_url: String = "github.event.repository.git_refs_url" - - public const val trees_url: String = "github.event.repository.trees_url" - - public const val statuses_url: String = "github.event.repository.statuses_url" - - public const val languages_url: String = "github.event.repository.languages_url" - - public const val stargazers_url: String = "github.event.repository.stargazers_url" - - public const val contributors_url: String = "github.event.repository.contributors_url" - - public const val subscribers_url: String = "github.event.repository.subscribers_url" - - public const val subscription_url: String = "github.event.repository.subscription_url" - - public const val commits_url: String = "github.event.repository.commits_url" - - public const val git_commits_url: String = "github.event.repository.git_commits_url" - - public const val comments_url: String = "github.event.repository.comments_url" - - public const val issue_comment_url: String = "github.event.repository.issue_comment_url" - - public const val contents_url: String = "github.event.repository.contents_url" - - public const val compare_url: String = "github.event.repository.compare_url" - - public const val merges_url: String = "github.event.repository.merges_url" - - public const val archive_url: String = "github.event.repository.archive_url" - - public const val downloads_url: String = "github.event.repository.downloads_url" - - public const val issues_url: String = "github.event.repository.issues_url" - - public const val pulls_url: String = "github.event.repository.pulls_url" - - public const val milestones_url: String = "github.event.repository.milestones_url" - - public const val notifications_url: String = "github.event.repository.notifications_url" - - public const val labels_url: String = "github.event.repository.labels_url" - - public const val releases_url: String = "github.event.repository.releases_url" - - public const val deployments_url: String = "github.event.repository.deployments_url" - - public const val created_at: String = "github.event.repository.created_at" - - public const val updated_at: String = "github.event.repository.updated_at" - - public const val pushed_at: String = "github.event.repository.pushed_at" - - public const val git_url: String = "github.event.repository.git_url" - - public const val ssh_url: String = "github.event.repository.ssh_url" - - public const val clone_url: String = "github.event.repository.clone_url" - - public const val svn_url: String = "github.event.repository.svn_url" - - public const val homepage: String = "github.event.repository.homepage" - - public const val size: String = "github.event.repository.size" - - public const val stargazers_count: String = "github.event.repository.stargazers_count" - - public const val watchers_count: String = "github.event.repository.watchers_count" - - public const val language: String = "github.event.repository.language" - - public const val has_issues: String = "github.event.repository.has_issues" - - public const val has_projects: String = "github.event.repository.has_projects" - - public const val has_downloads: String = "github.event.repository.has_downloads" - - public const val has_wiki: String = "github.event.repository.has_wiki" - - public const val has_pages: String = "github.event.repository.has_pages" - - public const val forks_count: String = "github.event.repository.forks_count" - - public const val mirror_url: String = "github.event.repository.mirror_url" - - public const val archived: String = "github.event.repository.archived" - - public const val disabled: String = "github.event.repository.disabled" - - public const val open_issues_count: String = "github.event.repository.open_issues_count" - - public const val license: String = "github.event.repository.license" - - public const val forks: String = "github.event.repository.forks" - - public const val open_issues: String = "github.event.repository.open_issues" - - public const val watchers: String = "github.event.repository.watchers" - - public const val default_branch: String = "github.event.repository.default_branch" -} - -public object ReleaseEventSender { - public const val login: String = "github.event.sender.login" - - public const val id: String = "github.event.sender.id" - - public const val node_id: String = "github.event.sender.node_id" - - public const val avatar_url: String = "github.event.sender.avatar_url" - - public const val gravatar_id: String = "github.event.sender.gravatar_id" - - public const val url: String = "github.event.sender.url" - - public const val html_url: String = "github.event.sender.html_url" - - public const val followers_url: String = "github.event.sender.followers_url" - - public const val following_url: String = "github.event.sender.following_url" - - public const val gists_url: String = "github.event.sender.gists_url" - - public const val starred_url: String = "github.event.sender.starred_url" - - public const val subscriptions_url: String = "github.event.sender.subscriptions_url" - - public const val organizations_url: String = "github.event.sender.organizations_url" - - public const val repos_url: String = "github.event.sender.repos_url" - - public const val events_url: String = "github.event.sender.events_url" - - public const val received_events_url: String = "github.event.sender.received_events_url" - - public const val type: String = "github.event.sender.type" - - public const val site_admin: String = "github.event.sender.site_admin" -} - -public object ReleaseEvent { - public const val action: String = "github.event.action" - - public val release: ReleaseEventRelease = ReleaseEventRelease - - public val repository: ReleaseEventRepository = ReleaseEventRepository - - public val sender: ReleaseEventSender = ReleaseEventSender -} diff --git a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/WorkflowDispatchEvent.kt b/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/WorkflowDispatchEvent.kt deleted file mode 100644 index d898e3f825..0000000000 --- a/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/dsl/expressions/contexts/WorkflowDispatchEvent.kt +++ /dev/null @@ -1,285 +0,0 @@ -// File auto-generated by :gradlew code-generator:run -@file:Suppress("ObjectPropertyNaming") - -package io.github.typesafegithub.workflows.dsl.expressions.contexts - -import io.github.typesafegithub.workflows.dsl.expressions.FakeList -import kotlin.String -import kotlin.Suppress -import kotlin.collections.List - -public object WorkflowDispatchEventInputs { - public const val name: String = "github.event.inputs.name" -} - -public object WorkflowDispatchEventOrganization { - public const val avatar_url: String = "github.event.organization.avatar_url" - - public const val description: String = "github.event.organization.description" - - public const val events_url: String = "github.event.organization.events_url" - - public const val hooks_url: String = "github.event.organization.hooks_url" - - public const val id: String = "github.event.organization.id" - - public const val issues_url: String = "github.event.organization.issues_url" - - public const val login: String = "github.event.organization.login" - - public const val members_url: String = "github.event.organization.members_url" - - public const val node_id: String = "github.event.organization.node_id" - - public const val public_members_url: String = "github.event.organization.public_members_url" - - public const val repos_url: String = "github.event.organization.repos_url" - - public const val url: String = "github.event.organization.url" -} - -public object WorkflowDispatchEventRepositoryOwner { - public const val avatar_url: String = "github.event.repository.owner.avatar_url" - - public const val events_url: String = "github.event.repository.owner.events_url" - - public const val followers_url: String = "github.event.repository.owner.followers_url" - - public const val following_url: String = "github.event.repository.owner.following_url" - - public const val gists_url: String = "github.event.repository.owner.gists_url" - - public const val gravatar_id: String = "github.event.repository.owner.gravatar_id" - - public const val html_url: String = "github.event.repository.owner.html_url" - - public const val id: String = "github.event.repository.owner.id" - - public const val login: String = "github.event.repository.owner.login" - - public const val node_id: String = "github.event.repository.owner.node_id" - - public const val organizations_url: String = "github.event.repository.owner.organizations_url" - - public const val received_events_url: String = "github.event.repository.owner.received_events_url" - - public const val repos_url: String = "github.event.repository.owner.repos_url" - - public const val site_admin: String = "github.event.repository.owner.site_admin" - - public const val starred_url: String = "github.event.repository.owner.starred_url" - - public const val subscriptions_url: String = "github.event.repository.owner.subscriptions_url" - - public const val type: String = "github.event.repository.owner.type" - - public const val url: String = "github.event.repository.owner.url" -} - -public object WorkflowDispatchEventRepository { - public const val allow_forking: String = "github.event.repository.allow_forking" - - public const val archive_url: String = "github.event.repository.archive_url" - - public const val archived: String = "github.event.repository.archived" - - public const val assignees_url: String = "github.event.repository.assignees_url" - - public const val blobs_url: String = "github.event.repository.blobs_url" - - public const val branches_url: String = "github.event.repository.branches_url" - - public const val clone_url: String = "github.event.repository.clone_url" - - public const val collaborators_url: String = "github.event.repository.collaborators_url" - - public const val comments_url: String = "github.event.repository.comments_url" - - public const val commits_url: String = "github.event.repository.commits_url" - - public const val compare_url: String = "github.event.repository.compare_url" - - public const val contents_url: String = "github.event.repository.contents_url" - - public const val contributors_url: String = "github.event.repository.contributors_url" - - public const val created_at: String = "github.event.repository.created_at" - - public const val default_branch: String = "github.event.repository.default_branch" - - public const val deployments_url: String = "github.event.repository.deployments_url" - - public const val description: String = "github.event.repository.description" - - public const val disabled: String = "github.event.repository.disabled" - - public const val downloads_url: String = "github.event.repository.downloads_url" - - public const val events_url: String = "github.event.repository.events_url" - - public const val fork: String = "github.event.repository.fork" - - public const val forks: String = "github.event.repository.forks" - - public const val forks_count: String = "github.event.repository.forks_count" - - public const val forks_url: String = "github.event.repository.forks_url" - - public const val full_name: String = "github.event.repository.full_name" - - public const val git_commits_url: String = "github.event.repository.git_commits_url" - - public const val git_refs_url: String = "github.event.repository.git_refs_url" - - public const val git_tags_url: String = "github.event.repository.git_tags_url" - - public const val git_url: String = "github.event.repository.git_url" - - public const val has_downloads: String = "github.event.repository.has_downloads" - - public const val has_issues: String = "github.event.repository.has_issues" - - public const val has_pages: String = "github.event.repository.has_pages" - - public const val has_projects: String = "github.event.repository.has_projects" - - public const val has_wiki: String = "github.event.repository.has_wiki" - - public const val homepage: String = "github.event.repository.homepage" - - public const val hooks_url: String = "github.event.repository.hooks_url" - - public const val html_url: String = "github.event.repository.html_url" - - public const val id: String = "github.event.repository.id" - - public const val is_template: String = "github.event.repository.is_template" - - public const val issue_comment_url: String = "github.event.repository.issue_comment_url" - - public const val issue_events_url: String = "github.event.repository.issue_events_url" - - public const val issues_url: String = "github.event.repository.issues_url" - - public const val keys_url: String = "github.event.repository.keys_url" - - public const val labels_url: String = "github.event.repository.labels_url" - - public const val language: String = "github.event.repository.language" - - public const val languages_url: String = "github.event.repository.languages_url" - - public const val license: String = "github.event.repository.license" - - public const val merges_url: String = "github.event.repository.merges_url" - - public const val milestones_url: String = "github.event.repository.milestones_url" - - public const val mirror_url: String = "github.event.repository.mirror_url" - - public const val name: String = "github.event.repository.name" - - public const val node_id: String = "github.event.repository.node_id" - - public const val notifications_url: String = "github.event.repository.notifications_url" - - public const val open_issues: String = "github.event.repository.open_issues" - - public const val open_issues_count: String = "github.event.repository.open_issues_count" - - public val owner: WorkflowDispatchEventRepositoryOwner = WorkflowDispatchEventRepositoryOwner - - public const val `private`: String = "github.event.repository.private" - - public const val pulls_url: String = "github.event.repository.pulls_url" - - public const val pushed_at: String = "github.event.repository.pushed_at" - - public const val releases_url: String = "github.event.repository.releases_url" - - public const val size: String = "github.event.repository.size" - - public const val ssh_url: String = "github.event.repository.ssh_url" - - public const val stargazers_count: String = "github.event.repository.stargazers_count" - - public const val stargazers_url: String = "github.event.repository.stargazers_url" - - public const val statuses_url: String = "github.event.repository.statuses_url" - - public const val subscribers_url: String = "github.event.repository.subscribers_url" - - public const val subscription_url: String = "github.event.repository.subscription_url" - - public const val svn_url: String = "github.event.repository.svn_url" - - public const val tags_url: String = "github.event.repository.tags_url" - - public const val teams_url: String = "github.event.repository.teams_url" - - public val topics: List = FakeList("github.event.repository.topics") - - public const val trees_url: String = "github.event.repository.trees_url" - - public const val updated_at: String = "github.event.repository.updated_at" - - public const val url: String = "github.event.repository.url" - - public const val visibility: String = "github.event.repository.visibility" - - public const val watchers: String = "github.event.repository.watchers" - - public const val watchers_count: String = "github.event.repository.watchers_count" -} - -public object WorkflowDispatchEventSender { - public const val avatar_url: String = "github.event.sender.avatar_url" - - public const val events_url: String = "github.event.sender.events_url" - - public const val followers_url: String = "github.event.sender.followers_url" - - public const val following_url: String = "github.event.sender.following_url" - - public const val gists_url: String = "github.event.sender.gists_url" - - public const val gravatar_id: String = "github.event.sender.gravatar_id" - - public const val html_url: String = "github.event.sender.html_url" - - public const val id: String = "github.event.sender.id" - - public const val login: String = "github.event.sender.login" - - public const val node_id: String = "github.event.sender.node_id" - - public const val organizations_url: String = "github.event.sender.organizations_url" - - public const val received_events_url: String = "github.event.sender.received_events_url" - - public const val repos_url: String = "github.event.sender.repos_url" - - public const val site_admin: String = "github.event.sender.site_admin" - - public const val starred_url: String = "github.event.sender.starred_url" - - public const val subscriptions_url: String = "github.event.sender.subscriptions_url" - - public const val type: String = "github.event.sender.type" - - public const val url: String = "github.event.sender.url" -} - -public object WorkflowDispatchEvent { - public val inputs: WorkflowDispatchEventInputs = WorkflowDispatchEventInputs - - public val organization: WorkflowDispatchEventOrganization = WorkflowDispatchEventOrganization - - public const val ref: String = "github.event.ref" - - public val repository: WorkflowDispatchEventRepository = WorkflowDispatchEventRepository - - public val sender: WorkflowDispatchEventSender = WorkflowDispatchEventSender - - public const val workflow: String = "github.event.workflow" -} diff --git a/gradle.properties b/gradle.properties index e6b5c91879..6018b34570 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,3 +7,6 @@ org.gradle.java.installations.auto-download=false kotlin.code.style=official kotlin.incremental.useClasspathSnapshot=true + +# So that KSP doesn't generate files in "test" sources root +ksp.allow.all.target.configuration=false