Class PullRequestEvent
-
- All Implemented Interfaces:
-
io.typeflows.github.workflow.event.GitHubEvent
public final class PullRequestEvent extends Context implements GitHubEvent
Represents a pull request event in GitHub Actions workflows.
This event is triggered when pull requests are opened, edited, closed, reopened, assigned, unassigned, labeled, unlabeled, or synchronized. It provides access to the pull request details, the action performed, and related information such as reviewers and labels. Use this event to automate code review workflows, testing, and deployment processes.
-
-
Field Summary
Fields Modifier and Type Field Description private final Repositoryrepositoryprivate final Usersenderprivate final StrExpactionprivate final NumExpnumberprivate final PullRequestpull_requestprivate final Userassigneeprivate final StrExpreviewersprivate final Labellabelprivate final StrExpchangesprivate final Stringprefix
-
Constructor Summary
Constructors Constructor Description PullRequestEvent(String prefix)
-
Method Summary
Modifier and Type Method Description RepositorygetRepository()UsergetSender()final StrExpgetAction()final NumExpgetNumber()final PullRequestgetPull_request()final UsergetAssignee()final StrExpgetReviewers()final LabelgetLabel()final StrExpgetChanges()final StringgetPrefix()-
-
Constructor Detail
-
PullRequestEvent
PullRequestEvent(String prefix)
-
-
Method Detail
-
getRepository
Repository getRepository()
-
getPull_request
final PullRequest getPull_request()
-
getAssignee
final User getAssignee()
-
getReviewers
final StrExp getReviewers()
-
getChanges
final StrExp getChanges()
-
-
-
-