Class DiscussionEvent
-
- All Implemented Interfaces:
-
io.typeflows.github.workflow.event.GitHubEvent
public final class DiscussionEvent extends Context implements GitHubEvent
Represents a discussion event in GitHub Actions workflows.
This event is triggered when discussions are created, edited, deleted, pinned, unpinned, locked, unlocked, transferred, answered, or unanswered. It provides access to discussion content and metadata including the category and action performed. Use this event to automate community management, implement discussion-based workflows, or trigger notifications based on discussion activity.
-
-
Field Summary
Fields Modifier and Type Field Description private final Repositoryrepositoryprivate final Usersenderprivate final StrExpactionprivate final Discussiondiscussionprivate final StrExpchangesprivate final Stringprefix
-
Constructor Summary
Constructors Constructor Description DiscussionEvent(String prefix)
-
Method Summary
Modifier and Type Method Description RepositorygetRepository()UsergetSender()final StrExpgetAction()final DiscussiongetDiscussion()final StrExpgetChanges()final StringgetPrefix()-
-
Constructor Detail
-
DiscussionEvent
DiscussionEvent(String prefix)
-
-
Method Detail
-
getRepository
Repository getRepository()
-
getDiscussion
final Discussion getDiscussion()
-
getChanges
final StrExp getChanges()
-
-
-
-