Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,045 changes: 955 additions & 90 deletions github-workflows-kt/api/github-workflows-kt.api

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

@Serializable
public data class BranchProtectionRule(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

@Serializable
public data class CheckRun(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Rerequested : EventType("rerequested")

public object Completed : EventType("completed")

public object RequestedAction : EventType("requested_action")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

@Serializable
public data class CheckSuite(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Completed : EventType("completed")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

@Serializable
public data class Discussion(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public object Transferred : EventType("transferred")

public object Pinned : EventType("pinned")

public object Unpinned : EventType("unpinned")

public object Labeled : EventType("labeled")

public object Unlabeled : EventType("unlabeled")

public object Locked : EventType("locked")

public object Unlocked : EventType("unlocked")

public object CategoryChanged : EventType("category_changed")

public object Answered : EventType("answered")

public object Unanswered : EventType("unanswered")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

@Serializable
public data class DiscussionComment(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

/**
* https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment
*/
@Serializable
public data class IssueComment(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,61 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

/**
* https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues
*/
@Serializable
public data class Issues(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Opened : EventType("opened")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public object Transferred : EventType("transferred")

public object Pinned : EventType("pinned")

public object Unpinned : EventType("unpinned")

public object Closed : EventType("closed")

public object Reopened : EventType("reopened")

public object Assigned : EventType("assigned")

public object Unassigned : EventType("unassigned")

public object Labeled : EventType("labeled")

public object Unlabeled : EventType("unlabeled")

public object Locked : EventType("locked")

public object Unlocked : EventType("unlocked")

public object Milestoned : EventType("milestoned")

public object Demilestoned : EventType("demilestoned")

public object Typed : EventType("typed")

public object Untyped : EventType("untyped")

public object FieldAdded : EventType("field_added")

public object FieldRemoved : EventType("field_removed")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

/**
* https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#label
*/
@Serializable
public data class Label(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

/**
* https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#merge_group
*/
@Serializable
public data class MergeGroup(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object ChecksRequested : EventType("checks_requested")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

/**
* https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#milestone
*/
@Serializable
public data class Milestone(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Closed : EventType("closed")

public object Opened : EventType("opened")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
package io.github.typesafegithub.workflows.domain.triggers

import kotlinx.serialization.Contextual
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.Serializable

/**
* https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#project
*/
@Serializable
public data class Project(
val types: List<EventType> = emptyList(),
override val _customArguments: Map<String, @Contextual Any> = mapOf(),
) : Trigger()
) : Trigger() {
@OptIn(InternalSerializationApi::class)
@Serializable
public sealed class EventType(
public val name: String,
) {
public object Created : EventType("created")

public object Updated : EventType("updated")

public object Closed : EventType("closed")

public object Reopened : EventType("reopened")

public object Edited : EventType("edited")

public object Deleted : EventType("deleted")

public data class Custom(
val value: String,
) : EventType(name = value)
}
}
Loading
Loading