// This file is generated by `pnpm generate:event-payloads`. Do not edit it. // Source: https://raw.githubusercontent.com/github/rest-api-description/bbd57e64767616df3b37792a1186166334043761/descriptions/api.github.com/api.github.com.json /** GitHub webhook payloads by Connect event type: the `X-GitHub-Event` header, then `.` and the body's `action` when the event has one. */ export interface GithubWebhookPayloads { 'check_run.completed': GithubWebhookCheckRunCompleted; 'check_run.created': GithubWebhookCheckRunCreated; 'check_run.requested_action': GithubWebhookCheckRunRequestedAction; 'check_run.rerequested': GithubWebhookCheckRunRerequested; 'check_suite.completed': GithubWebhookCheckSuiteCompleted; 'check_suite.requested': GithubWebhookCheckSuiteRequested; 'check_suite.rerequested': GithubWebhookCheckSuiteRerequested; create: GithubWebhookCreate; delete: GithubWebhookDelete; 'dependabot_alert.assignees_changed': GithubWebhookDependabotAlertAssigneesChanged; 'dependabot_alert.auto_dismissed': GithubWebhookDependabotAlertAutoDismissed; 'dependabot_alert.auto_reopened': GithubWebhookDependabotAlertAutoReopened; 'dependabot_alert.created': GithubWebhookDependabotAlertCreated; 'dependabot_alert.dismissed': GithubWebhookDependabotAlertDismissed; 'dependabot_alert.fixed': GithubWebhookDependabotAlertFixed; 'dependabot_alert.reintroduced': GithubWebhookDependabotAlertReintroduced; 'dependabot_alert.reopened': GithubWebhookDependabotAlertReopened; 'dependabot_alert.withdrawn': GithubWebhookDependabotAlertWithdrawn; 'deployment_status.created': GithubWebhookDeploymentStatusCreated; 'installation_repositories.added': GithubWebhookInstallationRepositoriesAdded; 'installation_repositories.removed': GithubWebhookInstallationRepositoriesRemoved; 'installation.created': GithubWebhookInstallationCreated; 'installation.deleted': GithubWebhookInstallationDeleted; 'installation.new_permissions_accepted': GithubWebhookInstallationNewPermissionsAccepted; 'installation.suspend': GithubWebhookInstallationSuspend; 'installation.unsuspend': GithubWebhookInstallationUnsuspend; 'issue_comment.created': GithubWebhookIssueCommentCreated; 'issue_comment.deleted': GithubWebhookIssueCommentDeleted; 'issue_comment.edited': GithubWebhookIssueCommentEdited; 'issue_comment.pinned': GithubWebhookIssueCommentPinned; 'issue_comment.unpinned': GithubWebhookIssueCommentUnpinned; 'issues.assigned': GithubWebhookIssuesAssigned; 'issues.closed': GithubWebhookIssuesClosed; 'issues.deleted': GithubWebhookIssuesDeleted; 'issues.demilestoned': GithubWebhookIssuesDemilestoned; 'issues.edited': GithubWebhookIssuesEdited; 'issues.field_added': GithubWebhookIssuesFieldAdded; 'issues.field_removed': GithubWebhookIssuesFieldRemoved; 'issues.labeled': GithubWebhookIssuesLabeled; 'issues.locked': GithubWebhookIssuesLocked; 'issues.milestoned': GithubWebhookIssuesMilestoned; 'issues.opened': GithubWebhookIssuesOpened; 'issues.pinned': GithubWebhookIssuesPinned; 'issues.reopened': GithubWebhookIssuesReopened; 'issues.status_changed': GithubWebhookIssuesStatusChanged; 'issues.transferred': GithubWebhookIssuesTransferred; 'issues.typed': GithubWebhookIssuesTyped; 'issues.unassigned': GithubWebhookIssuesUnassigned; 'issues.unlabeled': GithubWebhookIssuesUnlabeled; 'issues.unlocked': GithubWebhookIssuesUnlocked; 'issues.unpinned': GithubWebhookIssuesUnpinned; 'issues.untyped': GithubWebhookIssuesUntyped; 'pull_request_review_comment.created': GithubWebhookPullRequestReviewCommentCreated; 'pull_request_review_comment.deleted': GithubWebhookPullRequestReviewCommentDeleted; 'pull_request_review_comment.edited': GithubWebhookPullRequestReviewCommentEdited; 'pull_request_review_thread.resolved': GithubWebhookPullRequestReviewThreadResolved; 'pull_request_review_thread.unresolved': GithubWebhookPullRequestReviewThreadUnresolved; 'pull_request_review.dismissed': GithubWebhookPullRequestReviewDismissed; 'pull_request_review.edited': GithubWebhookPullRequestReviewEdited; 'pull_request_review.submitted': GithubWebhookPullRequestReviewSubmitted; 'pull_request.assigned': GithubWebhookPullRequestAssigned; 'pull_request.auto_merge_disabled': GithubWebhookPullRequestAutoMergeDisabled; 'pull_request.auto_merge_enabled': GithubWebhookPullRequestAutoMergeEnabled; 'pull_request.closed': GithubWebhookPullRequestClosed; 'pull_request.converted_to_draft': GithubWebhookPullRequestConvertedToDraft; 'pull_request.demilestoned': GithubWebhookPullRequestDemilestoned; 'pull_request.dequeued': GithubWebhookPullRequestDequeued; 'pull_request.edited': GithubWebhookPullRequestEdited; 'pull_request.enqueued': GithubWebhookPullRequestEnqueued; 'pull_request.labeled': GithubWebhookPullRequestLabeled; 'pull_request.locked': GithubWebhookPullRequestLocked; 'pull_request.milestoned': GithubWebhookPullRequestMilestoned; 'pull_request.opened': GithubWebhookPullRequestOpened; 'pull_request.ready_for_review': GithubWebhookPullRequestReadyForReview; 'pull_request.reopened': GithubWebhookPullRequestReopened; 'pull_request.review_request_removed': GithubWebhookPullRequestReviewRequestRemoved; 'pull_request.review_requested': GithubWebhookPullRequestReviewRequested; 'pull_request.stacked': GithubWebhookPullRequestStacked; 'pull_request.synchronize': GithubWebhookPullRequestSynchronize; 'pull_request.unassigned': GithubWebhookPullRequestUnassigned; 'pull_request.unlabeled': GithubWebhookPullRequestUnlabeled; 'pull_request.unlocked': GithubWebhookPullRequestUnlocked; push: GithubWebhookPush; 'release.created': GithubWebhookReleaseCreated; 'release.deleted': GithubWebhookReleaseDeleted; 'release.edited': GithubWebhookReleaseEdited; 'release.prereleased': GithubWebhookReleasePrereleased; 'release.published': GithubWebhookReleasePublished; 'release.released': GithubWebhookReleaseReleased; 'release.unpublished': GithubWebhookReleaseUnpublished; status: GithubWebhookStatus; 'workflow_job.completed': GithubWebhookWorkflowJobCompleted; 'workflow_job.in_progress': GithubWebhookWorkflowJobInProgress; 'workflow_job.queued': GithubWebhookWorkflowJobQueued; 'workflow_job.waiting': GithubWebhookWorkflowJobWaiting; 'workflow_run.completed': GithubWebhookWorkflowRunCompleted; 'workflow_run.in_progress': GithubWebhookWorkflowRunInProgress; 'workflow_run.requested': GithubWebhookWorkflowRunRequested; } /** Check Run Completed Event */ export interface GithubWebhookCheckRunCompleted { action?: 'completed'; check_run: GithubCheckRunWithSimpleCheckSuite; installation?: GithubSimpleInstallation; enterprise?: GithubEnterpriseWebhooks; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Check Run Created Event */ export interface GithubWebhookCheckRunCreated { action?: 'created'; check_run: GithubCheckRunWithSimpleCheckSuite; installation?: GithubSimpleInstallation; enterprise?: GithubEnterpriseWebhooks; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Check Run Requested Action Event */ export interface GithubWebhookCheckRunRequestedAction { action: 'requested_action'; check_run: GithubCheckRunWithSimpleCheckSuite; installation?: GithubSimpleInstallation; enterprise?: GithubEnterpriseWebhooks; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; /** The action requested by the user. */ requested_action?: { /** The integrator reference of the action requested by the user. */ identifier?: string; }; sender: GithubSimpleUser; } /** Check Run Re-Requested Event */ export interface GithubWebhookCheckRunRerequested { action?: 'rerequested'; check_run: GithubCheckRunWithSimpleCheckSuite; installation?: GithubSimpleInstallation; enterprise?: GithubEnterpriseWebhooks; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** check_suite completed event */ export interface GithubWebhookCheckSuiteCompleted { action: 'completed'; /** The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). */ check_suite: { after: string | null; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ app: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'merge_group' | 'pull_request_review_thread' | 'workflow_job' | 'merge_queue_entry' | 'security_and_analysis' | 'projects_v2_item' | 'secret_scanning_alert_location' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The client ID of the GitHub app */ client_id?: string | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookCheckSuiteCompletedCheckSuiteAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; before: string | null; check_runs_url: string; /** The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`. */ conclusion: | 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | null | 'skipped' | 'startup_failure'; created_at: string; /** The head branch name the changes are on. */ head_branch: string | null; head_commit: GithubSimpleCommit; /** The SHA of the head commit that is being checked. */ head_sha: string; id: number; latest_check_runs_count: number; node_id: string; /** An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pul... */ pull_requests: Array; rerequestable?: boolean; runs_rerequestable?: boolean; /** The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`. */ status: 'requested' | 'in_progress' | 'completed' | 'queued' | null | 'pending'; updated_at: string; /** URL that points to the check suite API resource. */ url: string; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** check_suite requested event */ export interface GithubWebhookCheckSuiteRequested { action: 'requested'; /** The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). */ check_suite: { after: string | null; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ app: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'pull_request_review_thread' | 'workflow_job' | 'merge_queue_entry' | 'security_and_analysis' | 'secret_scanning_alert_location' | 'projects_v2_item' | 'merge_group' | 'repository_import' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** Client ID of the GitHub app */ client_id?: string | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookCheckSuiteRequestedCheckSuiteAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; before: string | null; check_runs_url: string; /** The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed. */ conclusion: | 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | null | 'skipped'; created_at: string; /** The head branch name the changes are on. */ head_branch: string | null; head_commit: GithubSimpleCommit; /** The SHA of the head commit that is being checked. */ head_sha: string; id: number; latest_check_runs_count: number; node_id: string; /** An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pul... */ pull_requests: Array; rerequestable?: boolean; runs_rerequestable?: boolean; /** The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`. */ status: 'requested' | 'in_progress' | 'completed' | 'queued' | null; updated_at: string; /** URL that points to the check suite API resource. */ url: string; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** check_suite rerequested event */ export interface GithubWebhookCheckSuiteRerequested { action: 'rerequested'; /** The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). */ check_suite: { after: string | null; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ app: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'pull_request_review_thread' | 'merge_queue_entry' | 'workflow_job' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The Client ID for the GitHub app */ client_id?: string | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookCheckSuiteRequestedCheckSuiteAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; before: string | null; check_runs_url: string; /** The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed. */ conclusion: 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | null; created_at: string; /** The head branch name the changes are on. */ head_branch: string | null; head_commit: GithubSimpleCommit; /** The SHA of the head commit that is being checked. */ head_sha: string; id: number; latest_check_runs_count: number; node_id: string; /** An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pul... */ pull_requests: Array; rerequestable?: boolean; runs_rerequestable?: boolean; /** The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`. */ status: 'requested' | 'in_progress' | 'completed' | 'queued' | null; updated_at: string; /** URL that points to the check suite API resource. */ url: string; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** create event */ export interface GithubWebhookCreate { /** The repository's current description. */ description: string | null; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The name of the repository's default branch (usually `main`). */ master_branch: string; organization?: GithubOrganizationSimpleWebhooks; pusher_type: GithubWebhooksDeployPusherType; ref: GithubWebhooksRef0; /** The type of Git ref object created in the repository. */ ref_type: 'tag' | 'branch'; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** delete event */ export interface GithubWebhookDelete { enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pusher_type: GithubWebhooksDeployPusherType; ref: GithubWebhooksRef0; /** The type of Git ref object deleted in the repository. */ ref_type: 'tag' | 'branch'; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert assignees changed event */ export interface GithubWebhookDependabotAlertAssigneesChanged { action: 'assignees_changed'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert auto-dismissed event */ export interface GithubWebhookDependabotAlertAutoDismissed { action: 'auto_dismissed'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert auto-reopened event */ export interface GithubWebhookDependabotAlertAutoReopened { action: 'auto_reopened'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert created event */ export interface GithubWebhookDependabotAlertCreated { action: 'created'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert dismissed event */ export interface GithubWebhookDependabotAlertDismissed { action: 'dismissed'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert fixed event */ export interface GithubWebhookDependabotAlertFixed { action: 'fixed'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert reintroduced event */ export interface GithubWebhookDependabotAlertReintroduced { action: 'reintroduced'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert reopened event */ export interface GithubWebhookDependabotAlertReopened { action: 'reopened'; alert: GithubDependabotAlert; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** Dependabot alert withdrawn event */ export interface GithubWebhookDependabotAlertWithdrawn { action: 'withdrawn'; alert: GithubDependabotAlertWithdrawnWebhook; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; enterprise?: GithubEnterpriseWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** deployment_status created event */ export interface GithubWebhookDeploymentStatusCreated { action: 'created'; check_run?: { completed_at: string | null; /** The result of the completed check run. This value will be `null` until the check run has completed. */ conclusion: | 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped' | null; details_url: string; external_id: string; /** The SHA of the commit that is being checked. */ head_sha: string; html_url: string; /** The id of the check. */ id: number; /** The name of the check run. */ name: string; node_id: string; started_at: string; /** The current status of the check run. Can be `queued`, `in_progress`, or `completed`. */ status: 'queued' | 'in_progress' | 'completed' | 'waiting' | 'pending'; url: string; }; /** The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments). */ deployment: { created_at: string; creator: GithubUser | null; description: string | null; environment: string; id: number; node_id: string; original_environment: string; payload: string | Record | null; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'merge_queue_entry' | 'workflow_job' | 'pull_request_review_thread' | 'secret_scanning_alert_location' | 'merge_group' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; production_environment?: boolean; ref: string; repository_url: string; sha: string; statuses_url: string; task: string; transient_environment?: boolean; updated_at: string; url: string; }; /** The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses). */ deployment_status: { created_at: string; creator: GithubUser | null; deployment_url: string; /** The optional human-readable description added to the status. */ description: string; environment: string; environment_url?: string; id: number; log_url?: string; node_id: string; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'pull_request_review_thread' | 'merge_queue_entry' | 'workflow_job' | 'merge_group' | 'secret_scanning_alert_location' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; repository_url: string; /** The new state. Can be `pending`, `success`, `failure`, or `error`. */ state: string; /** The optional link added to the status. */ target_url: string; updated_at: string; url: string; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow?: GithubWebhooksWorkflow; workflow_run?: { actor: GithubUser | null; artifacts_url?: string; cancel_url?: string; check_suite_id: number; check_suite_node_id: string; check_suite_url?: string; conclusion: | 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | null | 'startup_failure'; created_at: string; display_title: string; event: string; head_branch: string; head_commit?: unknown; head_repository?: GithubWebhookDeploymentStatusCreatedWorkflowRunHeadRepository; head_sha: string; html_url: string; id: number; jobs_url?: string; logs_url?: string; name: string; node_id: string; path: string; previous_attempt_url?: unknown; pull_requests: Array; referenced_workflows?: Array | null; repository?: GithubWebhookDeploymentStatusCreatedWorkflowRunHeadRepository; rerun_url?: string; run_attempt: number; run_number: number; run_started_at: string; status: 'requested' | 'in_progress' | 'completed' | 'queued' | 'waiting' | 'pending'; triggering_actor: GithubUser | null; updated_at: string; url: string; workflow_id: number; workflow_url?: string; }; } /** installation created event */ export interface GithubWebhookInstallationCreated { action: 'created'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories?: GithubWebhooksRepositories; repository?: GithubRepositoryWebhooks; requester?: GithubWebhooksUser; sender: GithubSimpleUser; } /** installation deleted event */ export interface GithubWebhookInstallationDeleted { action: 'deleted'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories?: GithubWebhooksRepositories; repository?: GithubRepositoryWebhooks; requester?: unknown; sender: GithubSimpleUser; } /** installation new_permissions_accepted event */ export interface GithubWebhookInstallationNewPermissionsAccepted { action: 'new_permissions_accepted'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories?: GithubWebhooksRepositories; repository?: GithubRepositoryWebhooks; requester?: unknown; sender: GithubSimpleUser; } /** installation_repositories added event */ export interface GithubWebhookInstallationRepositoriesAdded { action: 'added'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories_added: GithubWebhooksRepositoriesAdded; /** An array of repository objects, which were removed from the installation. When `repository_selection` changes from `all` to `selected`, this array is empty. */ repositories_removed: Array<{ full_name?: string; /** Unique identifier of the repository */ id?: number; /** The name of the repository. */ name?: string; node_id?: string; /** Whether the repository is private or public. */ private?: boolean; }>; repository?: GithubRepositoryWebhooks; repository_selection: GithubWebhooksRepositorySelection; requester: GithubWebhooksUser; sender: GithubSimpleUser; } /** installation_repositories removed event */ export interface GithubWebhookInstallationRepositoriesRemoved { action: 'removed'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories_added: GithubWebhooksRepositoriesAdded; /** An array of repository objects, which were removed from the installation. When `repository_selection` changes from `all` to `selected`, this array is empty. */ repositories_removed: Array; repository?: GithubRepositoryWebhooks; repository_selection: GithubWebhooksRepositorySelection; requester: GithubWebhooksUser; sender: GithubSimpleUser; } /** installation suspend event */ export interface GithubWebhookInstallationSuspend { action: 'suspend'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories?: GithubWebhooksRepositories; repository?: GithubRepositoryWebhooks; requester?: unknown; sender: GithubSimpleUser; } /** installation unsuspend event */ export interface GithubWebhookInstallationUnsuspend { action: 'unsuspend'; enterprise?: GithubEnterpriseWebhooks; installation: GithubInstallation; organization?: GithubOrganizationSimpleWebhooks; repositories?: GithubWebhooksRepositories; repository?: GithubRepositoryWebhooks; requester?: unknown; sender: GithubSimpleUser; } /** issue_comment created event */ export interface GithubWebhookIssueCommentCreated { action: 'created'; /** The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. */ comment: { /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue comment */ body: string; created_at: string; html_url: string; /** Unique identifier of the issue comment */ id: number; issue_url: string; node_id: string; performed_via_github_app: GithubNullableIntegration; reactions: GithubReactions; updated_at: string; /** URL for the issue comment */ url: string; pin?: GithubNullablePinnedIssueComment; minimized?: GithubNullableIssueCommentMinimized; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'reminder' | 'pull_request_review_thread' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookCheckSuiteCompletedCheckSuiteAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } & GithubWebhookIssueCommentCreatedIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issue_comment deleted event */ export interface GithubWebhookIssueCommentDeleted { action: 'deleted'; comment: GithubWebhooksIssueComment; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } & GithubWebhookIssueCommentDeletedIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issue_comment edited event */ export interface GithubWebhookIssueCommentEdited { action: 'edited'; changes: GithubWebhooksChanges; comment: GithubWebhooksIssueComment; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubWebhookIssueCommentEditedIssuePerformedViaGithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } & GithubWebhookIssueCommentCreatedIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issue_comment pinned event */ export interface GithubWebhookIssueCommentPinned { action: 'pinned'; comment: GithubWebhooksIssueComment; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. */ issue: GithubIssue & GithubWebhookIssueCommentDeletedIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issue_comment unpinned event */ export interface GithubWebhookIssueCommentUnpinned { action: 'unpinned'; comment: GithubWebhooksIssueComment; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. */ issue: GithubIssue & GithubWebhookIssueCommentDeletedIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues assigned event */ export interface GithubWebhookIssuesAssigned { /** The action that was performed. */ action: 'assigned'; assignee?: GithubWebhooksUser; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues closed event */ export interface GithubWebhookIssuesClosed { /** The action that was performed. */ action: 'closed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'security_and_analysis' | 'reminder' | 'pull_request_review_thread' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } & { active_lock_reason?: string | null; assignee?: Record | null; assignees?: Array | null>; author_association?: string; body?: string | null; closed_at: string | null; comments?: number; comments_url?: string; created_at?: string; events_url?: string; html_url?: string; id?: number; labels?: Array; labels_url?: string; locked?: boolean; milestone?: Record | null; node_id?: string; number?: number; performed_via_github_app?: Record | null; reactions?: GithubWebhookIssuesClosedIssueReactions; repository_url?: string; state: 'closed' | 'open'; timeline_url?: string; title?: string; updated_at?: string; url?: string; user?: GithubWebhookIssuesClosedIssueUser; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues deleted event */ export interface GithubWebhookIssuesDeleted { action: 'deleted'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'reminder' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues demilestoned event */ export interface GithubWebhookIssuesDemilestoned { action: 'demilestoned'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssuesDemilestonedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDemilestonedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubWebhookIssuesDemilestonedIssueReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssuesDemilestonedIssueUser | null; }; milestone?: GithubWebhooksMilestone; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues edited event */ export interface GithubWebhookIssuesEdited { action: 'edited'; /** The changes to the issue. */ changes: { body?: GithubWebhookIssuesEditedChangesBody; title?: { /** The previous version of the title. */ from: string; }; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubWebhookIssuesEditedIssuePerformedViaGithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; type?: GithubIssueType; /** Title of the issue */ title: string; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; label?: GithubWebhooksLabel; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues field_added event */ export interface GithubWebhookIssuesFieldAdded { action: 'field_added'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; /** The issue field whose value was set or updated on the issue. */ issue_field: { /** The unique identifier of the issue field. */ id: number; /** The name of the issue field. */ name: string; /** The data type of the issue field. */ field_type: 'text' | 'date' | 'single_select' | 'multi_select' | 'number'; }; /** The value that was set or updated for the issue field. When updating an existing value, the previous value is available in `changes`. */ issue_field_value?: { /** The unique identifier of the issue field value. */ id: number; /** The value of the field. Present for text, date, and number field types. */ value?: string | number | null; /** The identifier of the selected option. Present for single_select field types. */ value_id?: number; /** The selected option details. Present for single_select field types. */ option?: GithubWebhookIssuesFieldAddedIssueFieldValueOption; /** The identifiers of the selected options. Present for multi_select field types. */ value_ids?: Array; /** The selected option details. Present for multi_select field types. */ options?: Array; }; /** The previous field value, present when an existing value was updated. */ changes?: { /** The previous issue field value data. */ issue_field_value?: { /** The previous value of the issue field before the update. */ from: { /** The unique identifier of the issue field value. */ id: number; /** The previous value. Present for text, date, and number field types. */ value?: string | number | null; /** The identifier of the previously selected option. Present for single_select field types. */ value_id?: number; /** The previously selected option details. Present for single_select field types. */ option?: { id?: number; name?: string; color?: string; description?: string | null; }; /** The identifiers of the previously selected options. Present for multi_select field types. */ value_ids?: Array; /** The previously selected option details. Present for multi_select field types. */ options?: Array; }; }; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues field_removed event */ export interface GithubWebhookIssuesFieldRemoved { action: 'field_removed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; /** The issue field whose value was cleared from the issue. */ issue_field: { /** The unique identifier of the issue field. */ id: number; /** The name of the issue field. */ name: string; /** The data type of the issue field. */ field_type: 'text' | 'date' | 'single_select' | 'multi_select' | 'number'; }; /** The value that was cleared from the issue field. */ issue_field_value?: { /** The unique identifier of the issue field value. */ id: number; /** The value of the field. Present for text, date, and number field types. */ value?: string | number | null; /** The identifier of the selected option. Present for single_select field types. */ value_id?: number; /** The selected option details. Present for single_select field types. */ option?: GithubWebhookIssuesFieldAddedIssueFieldValueOption; /** The identifiers of the selected options. Present for multi_select field types. */ value_ids?: Array; /** The selected option details. Present for multi_select field types. */ options?: Array; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues labeled event */ export interface GithubWebhookIssuesLabeled { action: 'labeled'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'pull_request_review_thread' | 'reminder' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; type?: GithubIssueType; /** Title of the issue */ title: string; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; label?: GithubWebhooksLabel; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues locked event */ export interface GithubWebhookIssuesLocked { action: 'locked'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked: true; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesLockedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'reminder' | 'security_and_analysis' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubWebhookIssuesDemilestonedIssueReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; type?: GithubIssueType; /** Title of the issue */ title: string; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssuesLockedIssueUser | null; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues milestoned event */ export interface GithubWebhookIssuesMilestoned { action: 'milestoned'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssuesMilestonedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDemilestonedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'reminder' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubWebhookIssuesDemilestonedIssueReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssuesLockedIssueUser | null; }; milestone: GithubWebhooksMilestone; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues opened event */ export interface GithubWebhookIssuesOpened { action: 'opened'; changes?: { /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ old_issue: { active_lock_reason?: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubUser | null; assignees?: Array; /** How the author is associated with the repository. */ author_association?: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body?: string | null; closed_at?: string | null; comments?: number; comments_url?: string; created_at?: string; draft?: boolean; events_url?: string; html_url?: string; id: number; labels?: Array; labels_url?: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone?: GithubWebhookIssuesDeletedIssueMilestone | null; node_id?: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions?: GithubReactions; repository_url?: string; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title?: string; updated_at?: string; /** URL for the issue */ url?: string; pinned_comment?: GithubNullableIssueComment; user?: GithubWebhookIssueCommentCreatedCommentUser | null; type?: GithubIssueType; }; /** A git repository */ old_repository: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. */ custom_properties?: Record; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether the repository has discussions enabled. */ has_discussions?: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require commit signoff. */ web_commit_signoff_required?: boolean; }; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubWebhookIssuesEditedIssuePerformedViaGithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; pinned_comment?: GithubNullableIssueComment; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues pinned event */ export interface GithubWebhookIssuesPinned { action: 'pinned'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue2; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues reopened event */ export interface GithubWebhookIssuesReopened { action: 'reopened'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssuesMilestonedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array<{ /** Timestamp indicating when the label was archived, or `null` if it has not been archived. */ archived_at?: string | null; /** The user who archived the label, or `null` if it has not been archived. */ archived_by?: GithubSimpleUser | null; /** 6-character hex code, without the leading #, identifying the color */ color: string; default: boolean; description: string | null; id: number; /** The name of the label. */ name: string; node_id: string; /** URL for the label */ url: string; }>; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDemilestonedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'pull_request_review_thread' | 'reminder' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookCheckSuiteCompletedCheckSuiteAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubWebhookIssuesDemilestonedIssueReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssuesDemilestonedIssueUser | null; type?: GithubIssueType; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues status_changed event */ export interface GithubWebhookIssuesStatusChanged { action: 'status_changed'; /** The changes to the issue. `state` and `state_reason` are only included when the status change also closed or reopened the issue, or changed the reason it was closed. */ changes: { status: { /** The status the issue had before the change, or `null` if it had none. */ from: { /** The stable identifier of the planning status. */ id: number; /** The display name of the planning status, which may change in the future. */ name: string; /** A stable identifier for the category, such as `backlog`, `planned`, `started`, `completed`, `not_planned` or `duplicate`. Clients should expect new keys to be added. */ category: string; } | null; }; state?: { /** The state of the issue before the change. */ from: 'open' | 'closed'; }; state_reason?: { /** The reason for the state of the issue before the change. */ from: string | null; }; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; /** The status the issue changed to. */ status: { /** The stable identifier of the planning status. */ id: number; /** The display name of the planning status, which may change in the future. */ name: string; /** A stable identifier for the category, such as `backlog`, `planned`, `started`, `completed`, `not_planned` or `duplicate`. Clients should expect new keys to be added. */ category: string; }; } /** issues transferred event */ export interface GithubWebhookIssuesTransferred { action: 'transferred'; changes: { /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ new_issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; /** A git repository */ new_repository: GithubWebhookIssuesTransferredChangesNewRepository; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue2; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues typed event */ export interface GithubWebhookIssuesTyped { action: 'typed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; type: GithubIssueType; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues unassigned event */ export interface GithubWebhookIssuesUnassigned { /** The action that was performed. */ action: 'unassigned'; assignee?: GithubWebhooksUserMannequin; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues unlabeled event */ export interface GithubWebhookIssuesUnlabeled { action: 'unlabeled'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; label?: GithubWebhooksLabel; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues unlocked event */ export interface GithubWebhookIssuesUnlocked { action: 'unlocked'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ issue: { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked: false; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesLockedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubWebhookIssuesDemilestonedIssueReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssuesLockedIssueUser | null; }; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues unpinned event */ export interface GithubWebhookIssuesUnpinned { action: 'unpinned'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue2; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** issues untyped event */ export interface GithubWebhookIssuesUntyped { action: 'untyped'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; issue: GithubWebhooksIssue; type: GithubIssueType; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request assigned event */ export interface GithubWebhookPullRequestAssigned { action: 'assigned'; assignee: GithubWebhooksUser; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request auto_merge_disabled event */ export interface GithubWebhookPullRequestAutoMergeDisabled { action: 'auto_merge_disabled'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; reason: string; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request auto_merge_enabled event */ export interface GithubWebhookPullRequestAutoMergeEnabled { action: 'auto_merge_enabled'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; reason?: string; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request closed event */ export interface GithubWebhookPullRequestClosed { action: 'closed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubPullRequestWebhook; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request converted_to_draft event */ export interface GithubWebhookPullRequestConvertedToDraft { action: 'converted_to_draft'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubPullRequestWebhook; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request demilestoned event */ export interface GithubWebhookPullRequestDemilestoned { action: 'demilestoned'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; milestone?: GithubMilestone; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubWebhooksPullRequest5; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request dequeued event */ export interface GithubWebhookPullRequestDequeued { action: 'dequeued'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; reason: | 'UNKNOWN_REMOVAL_REASON' | 'MANUAL' | 'MERGE' | 'MERGE_CONFLICT' | 'CI_FAILURE' | 'CI_TIMEOUT' | 'ALREADY_MERGED' | 'QUEUE_CLEARED' | 'ROLL_BACK' | 'BRANCH_PROTECTIONS' | 'GIT_TREE_INVALID' | 'INVALID_MERGE_COMMIT'; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request edited event */ export interface GithubWebhookPullRequestEdited { action: 'edited'; /** The changes to the comment if the action was `edited`. */ changes: { base?: { ref: GithubWebhookPullRequestEditedChangesBaseRef; sha: GithubWebhookPullRequestEditedChangesBaseRef; }; body?: GithubWebhookPullRequestEditedChangesBody; title?: { /** The previous version of the title if the action was `edited`. */ from: string; }; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubPullRequestWebhook; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request enqueued event */ export interface GithubWebhookPullRequestEnqueued { action: 'enqueued'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request labeled event */ export interface GithubWebhookPullRequestLabeled { action: 'labeled'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; label?: GithubWebhooksLabel; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubWebhookIssueCommentCreatedIssueAssignee | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request locked event */ export interface GithubWebhookPullRequestLocked { action: 'locked'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubWebhookIssueCommentCreatedIssueAssignee | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request milestoned event */ export interface GithubWebhookPullRequestMilestoned { action: 'milestoned'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; milestone?: GithubMilestone; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubWebhooksPullRequest5; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request opened event */ export interface GithubWebhookPullRequestOpened { action: 'opened'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubPullRequestWebhook; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request ready_for_review event */ export interface GithubWebhookPullRequestReadyForReview { action: 'ready_for_review'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubPullRequestWebhook; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request reopened event */ export interface GithubWebhookPullRequestReopened { action: 'reopened'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: GithubPullRequestWebhook; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request_review_comment created event */ export interface GithubWebhookPullRequestReviewCommentCreated { action: 'created'; /** The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. */ comment: { _links: GithubWebhookPullRequestReviewCommentCreatedCommentLinks; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The text of the comment. */ body: string; /** The SHA of the commit to which the comment applies. */ commit_id: string; created_at: string; /** The diff of the line that the comment refers to. */ diff_hunk: string; /** HTML URL for the pull request review comment. */ html_url: string; /** The ID of the pull request review comment. */ id: number; /** The comment ID to reply to. */ in_reply_to_id?: number; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ line: number | null; /** The node ID of the pull request review comment. */ node_id: string; /** The SHA of the original commit to which the comment applies. */ original_commit_id: string; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ original_line: number | null; /** The index of the original line in the diff to which the comment applies. */ original_position: number; /** The first line of the range for a multi-line comment. */ original_start_line: number | null; /** The relative path of the file to which the comment applies. */ path: string; /** The line index in the diff to which the comment applies. */ position: number | null; /** The ID of the pull request review to which the comment belongs. */ pull_request_review_id: number | null; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; reactions: GithubReactions; /** The side of the first line of the range for a multi-line comment. */ side: 'LEFT' | 'RIGHT'; /** The first line of the range for a multi-line comment. */ start_line: number | null; /** The side of the first line of the range for a multi-line comment. */ start_side: 'LEFT' | 'RIGHT' | null; /** The level at which the comment is targeted, can be a diff line or a file. */ subject_type?: 'line' | 'file'; updated_at: string; /** URL for the pull request review comment */ url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge?: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft?: boolean; head: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions?: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request_review_comment deleted event */ export interface GithubWebhookPullRequestReviewCommentDeleted { action: 'deleted'; comment: GithubWebhooksReviewComment; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge?: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft?: boolean; head: GithubWebhookPullRequestReviewCommentDeletedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request_review_comment edited event */ export interface GithubWebhookPullRequestReviewCommentEdited { action: 'edited'; changes: GithubWebhooksChanges; comment: GithubWebhooksReviewComment; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge?: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft?: boolean; head: GithubWebhookPullRequestReviewCommentDeletedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; user_view_type?: string; url?: string; }; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request_review dismissed event */ export interface GithubWebhookPullRequestReviewDismissed { action: 'dismissed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft: boolean; head: GithubWebhookPullRequestReviewCommentDeletedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; /** The review that was affected. */ review: { _links: GithubWebhookPullRequestReviewDismissedReviewLinks; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The text of the review. */ body: string | null; /** A commit SHA for the review. */ commit_id: string; html_url: string; /** Unique identifier of the review */ id: number; node_id: string; pull_request_url: string; state: 'dismissed' | 'approved' | 'changes_requested'; submitted_at: string; updated_at?: string | null; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; sender: GithubSimpleUser; } /** pull_request_review edited event */ export interface GithubWebhookPullRequestReviewEdited { action: 'edited'; changes: { body?: GithubWebhookPullRequestEditedChangesBody; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft: boolean; head: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; review: GithubWebhooksReview; sender: GithubSimpleUser; } /** pull_request review_request_removed event */ export type GithubWebhookPullRequestReviewRequestRemoved = | { action: 'review_request_removed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The pull request number. */ number: number; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title. */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; repository: GithubRepositoryWebhooks; requested_reviewer: GithubUser | null; sender: GithubSimpleUser; } | { action: 'review_request_removed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The pull request number. */ number: number; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; repository: GithubRepositoryWebhooks; /** Groups of organization members that gives permissions on specified repositories. */ requested_team: GithubTeam; sender: GithubSimpleUser; }; /** pull_request review_requested event */ export type GithubWebhookPullRequestReviewRequested = | { action: 'review_requested'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The pull request number. */ number: number; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; requested_reviewer: GithubWebhookIssueCommentCreatedIssueAssignee | null; sender: GithubSimpleUser; } | { action: 'review_requested'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; /** The pull request number. */ number: number; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; /** Groups of organization members that gives permissions on specified repositories. */ requested_team: GithubWebhookPullRequestAssignedPullRequestRequestedTeamsItem; sender: GithubSimpleUser; }; /** pull_request_review submitted event */ export interface GithubWebhookPullRequestReviewSubmitted { action: 'submitted'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; review: GithubWebhooksReview; sender: GithubSimpleUser; } /** pull_request_review_thread resolved event */ export interface GithubWebhookPullRequestReviewThreadResolved { action: 'resolved'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestReviewThreadResolvedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft: boolean; head: { label: string | null; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; thread: { comments: Array<{ _links: GithubWebhookPullRequestReviewCommentCreatedCommentLinks; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The text of the comment. */ body: string; /** The SHA of the commit to which the comment applies. */ commit_id: string; created_at: string; /** The diff of the line that the comment refers to. */ diff_hunk: string; /** HTML URL for the pull request review comment. */ html_url: string; /** The ID of the pull request review comment. */ id: number; /** The comment ID to reply to. */ in_reply_to_id?: number; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ line: number | null; /** The node ID of the pull request review comment. */ node_id: string; /** The SHA of the original commit to which the comment applies. */ original_commit_id: string; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ original_line: number | null; /** The index of the original line in the diff to which the comment applies. */ original_position: number; /** The first line of the range for a multi-line comment. */ original_start_line: number | null; /** The relative path of the file to which the comment applies. */ path: string; /** The line index in the diff to which the comment applies. */ position: number | null; /** The ID of the pull request review to which the comment belongs. */ pull_request_review_id: number | null; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; reactions: GithubReactions; /** The side of the first line of the range for a multi-line comment. */ side: 'LEFT' | 'RIGHT'; /** The first line of the range for a multi-line comment. */ start_line: number | null; /** The side of the first line of the range for a multi-line comment. */ start_side: 'LEFT' | 'RIGHT' | null; /** The level at which the comment is targeted, can be a diff line or a file. */ subject_type?: 'line' | 'file'; updated_at: string; /** URL for the pull request review comment */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }>; node_id: string; }; updated_at?: string | null; } /** pull_request_review_thread unresolved event */ export interface GithubWebhookPullRequestReviewThreadUnresolved { action: 'unresolved'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubWebhookPullRequestReviewThreadUnresolvedPullRequestAutoMerge | null; base: GithubWebhookPullRequestReviewThreadResolvedPullRequestBase; body: string | null; closed_at: string | null; comments_url: string; commits_url: string; created_at: string; diff_url: string; draft: boolean; head: GithubWebhookPullRequestReviewThreadResolvedPullRequestBase; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; merge_commit_sha: string | null; merged_at: string | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; patch_url: string; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments_url: string; stack?: GithubPullRequestStack; state: 'open' | 'closed'; statuses_url: string; title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; thread: { comments: Array<{ _links: GithubWebhookPullRequestReviewCommentCreatedCommentLinks; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The text of the comment. */ body: string; /** The SHA of the commit to which the comment applies. */ commit_id: string; created_at: string; /** The diff of the line that the comment refers to. */ diff_hunk: string; /** HTML URL for the pull request review comment. */ html_url: string; /** The ID of the pull request review comment. */ id: number; /** The comment ID to reply to. */ in_reply_to_id?: number; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ line: number | null; /** The node ID of the pull request review comment. */ node_id: string; /** The SHA of the original commit to which the comment applies. */ original_commit_id: string; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ original_line: number; /** The index of the original line in the diff to which the comment applies. */ original_position: number; /** The first line of the range for a multi-line comment. */ original_start_line: number | null; /** The relative path of the file to which the comment applies. */ path: string; /** The line index in the diff to which the comment applies. */ position: number | null; /** The ID of the pull request review to which the comment belongs. */ pull_request_review_id: number | null; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; reactions: GithubReactions; /** The side of the first line of the range for a multi-line comment. */ side: 'LEFT' | 'RIGHT'; /** The first line of the range for a multi-line comment. */ start_line: number | null; /** The side of the first line of the range for a multi-line comment. */ start_side: 'LEFT' | 'RIGHT' | null; /** The level at which the comment is targeted, can be a diff line or a file. */ subject_type?: 'line' | 'file'; updated_at: string; /** URL for the pull request review comment */ url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }>; node_id: string; }; updated_at?: string | null; } /** pull_request stacked event */ export interface GithubWebhookPullRequestStacked { action: 'stacked'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; stack?: GithubPullRequestStack; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubWebhookIssueCommentCreatedIssueAssignee | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request synchronize event */ export interface GithubWebhookPullRequestSynchronize { action: 'synchronize'; after: string; before: string; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit message title. */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request unassigned event */ export interface GithubWebhookPullRequestUnassigned { action: 'unassigned'; assignee?: GithubWebhooksUserMannequin; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: { label: string | null; ref: string; /** A git repository */ repo: GithubWebhookPullRequestUnassignedPullRequestBaseRepo; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestAssignedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubWebhookIssueCommentCreatedIssueAssignee | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request unlabeled event */ export interface GithubWebhookPullRequestUnlabeled { action: 'unlabeled'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; label?: GithubWebhooksLabel; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: { label: string | null; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit message title. */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** pull_request unlocked event */ export interface GithubWebhookPullRequestUnlocked { action: 'unlocked'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; number: GithubWebhooksNumber; organization?: GithubOrganizationSimpleWebhooks; pull_request: { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubWebhookPullRequestReviewThreadUnresolvedPullRequestAutoMerge | null; base: GithubWebhookPullRequestAssignedPullRequestBase; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhookPullRequestReviewCommentDeletedPullRequestHead; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubUser | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; }; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** push event */ export interface GithubWebhookPush { /** The SHA of the most recent commit on `ref` after the push. */ after: string; base_ref: GithubWebhooksNullableString; /** The SHA of the most recent commit on `ref` before the push. */ before: string; /** An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary,... */ commits: Array<{ /** An array of files added in the commit. A maximum of 3000 changed files will be reported per commit. */ added?: Array; /** Metaproperties for Git author/committer information. */ author: GithubCommitter; /** Metaproperties for Git author/committer information. */ committer: GithubCommitter; /** Whether this commit is distinct from any that have been pushed before. */ distinct: boolean; id: string; /** The commit message. */ message: string; /** An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit. */ modified?: Array; /** An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit. */ removed?: Array; /** The ISO 8601 timestamp of the commit. */ timestamp: string; tree_id: string; /** URL that points to the commit API resource. */ url: string; }>; /** URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and th... */ compare: string; /** Whether this push created the `ref`. */ created: boolean; /** Whether this push deleted the `ref`. */ deleted: boolean; enterprise?: GithubEnterpriseWebhooks; /** Whether this push was a force push of the `ref`. */ forced: boolean; head_commit: { /** An array of files added in the commit. */ added?: Array; /** Metaproperties for Git author/committer information. */ author: GithubCommitter; /** Metaproperties for Git author/committer information. */ committer: GithubCommitter; /** Whether this commit is distinct from any that have been pushed before. */ distinct: boolean; id: string; /** The commit message. */ message: string; /** An array of files modified by the commit. */ modified?: Array; /** An array of files removed in the commit. */ removed?: Array; /** The ISO 8601 timestamp of the commit. */ timestamp: string; tree_id: string; /** URL that points to the commit API resource. */ url: string; } | null; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; /** Metaproperties for Git author/committer information. */ pusher: { date?: string; email?: string | null; /** The git author's name. */ name: string; username?: string; }; /** The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`. */ ref: string; /** A git repository */ repository: GithubWebhookIssuesTransferredChangesNewRepository; sender?: GithubSimpleUser; } /** release created event */ export interface GithubWebhookReleaseCreated { action: 'created'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; release: GithubWebhooksRelease; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** release deleted event */ export interface GithubWebhookReleaseDeleted { action: 'deleted'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; release: GithubWebhooksRelease; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; } /** release edited event */ export interface GithubWebhookReleaseEdited { action: 'edited'; changes: { body?: GithubWebhookPullRequestEditedChangesBody; name?: { /** The previous version of the name if the action was `edited`. */ from: string; }; tag_name?: { /** The previous version of the tag_name if the action was `edited`. */ from: string; }; make_latest?: { /** Whether this release was explicitly `edited` to be the latest. */ to: boolean; }; }; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; release: GithubWebhooksRelease; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; } /** release prereleased event */ export interface GithubWebhookReleasePrereleased { action: 'prereleased'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; /** The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. */ release: { assets: Array<{ browser_download_url: string; content_type: string; created_at: string; download_count: number; id: number; label: string | null; /** The file name of the asset. */ name: string; node_id: string; size: number; digest: string | null; /** State of the release asset. */ state: 'uploaded'; updated_at: string; uploader?: GithubWebhookIssuesMilestonedIssueAssignee | null; url: string; }>; assets_url: string; author: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; body: string | null; created_at: string | null; discussion_url?: string; /** Whether the release is a draft or published */ draft: boolean; html_url: string; id: number; /** Whether or not the release is immutable. */ immutable: boolean; name: string | null; node_id: string; /** Whether the release is identified as a prerelease or a full release. */ prerelease: true; published_at: string | null; reactions?: GithubWebhookIssuesDemilestonedIssueReactions; /** The name of the tag. */ tag_name: string; tarball_url: string | null; /** Specifies the commitish value that determines where the Git tag is created from. */ target_commitish: string; upload_url: string; updated_at: string | null; url: string; zipball_url: string | null; }; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; } /** release published event */ export interface GithubWebhookReleasePublished { action: 'published'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; release: GithubWebhooksRelease1; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; } /** release released event */ export interface GithubWebhookReleaseReleased { action: 'released'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; release: GithubWebhooksRelease; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; } /** release unpublished event */ export interface GithubWebhookReleaseUnpublished { action: 'unpublished'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; release: GithubWebhooksRelease1; repository: GithubRepositoryWebhooks; sender?: GithubSimpleUser; } /** status event */ export interface GithubWebhookStatus { avatar_url?: string | null; /** An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches. */ branches: Array<{ commit: { sha: string | null; url: string | null; }; name: string; protected: boolean; }>; commit: { author: GithubWebhookStatusCommitAuthor | null; comments_url: string; commit: { author: GithubCommitter & GithubWebhookStatusCommitCommitAuthor; comment_count: number; committer: GithubCommitter & GithubWebhookStatusCommitCommitAuthor; message: string; tree: { sha: string; url: string; }; url: string; verification: { payload: string | null; reason: | 'expired_key' | 'not_signing_key' | 'gpgverify_error' | 'gpgverify_unavailable' | 'unsigned' | 'unknown_signature_type' | 'no_user' | 'unverified_email' | 'bad_email' | 'unknown_key' | 'malformed_signature' | 'invalid' | 'valid' | 'bad_cert' | 'ocsp_pending'; signature: string | null; verified: boolean; verified_at: string | null; }; }; committer: GithubWebhookStatusCommitAuthor | null; html_url: string; node_id: string; parents: Array<{ html_url: string; sha: string; url: string; }>; sha: string; url: string; }; context: string; created_at: string; /** The optional human-readable description added to the status. */ description: string | null; enterprise?: GithubEnterpriseWebhooks; /** The unique identifier of the status. */ id: number; installation?: GithubSimpleInstallation; name: string; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; /** The Commit SHA. */ sha: string; /** The new state. Can be `pending`, `success`, `failure`, or `error`. */ state: 'pending' | 'success' | 'failure' | 'error'; /** The optional link added to the status. */ target_url: string | null; updated_at: string; } /** workflow_job completed event */ export interface GithubWebhookWorkflowJobCompleted { action: 'completed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow_job: { check_run_url: string; completed_at: string | null; conclusion: 'success' | 'failure' | null | 'skipped' | 'cancelled' | 'action_required' | 'neutral' | 'timed_out'; /** The time that the job created. */ created_at: string; head_sha: string; html_url: string; id: number; /** Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML. */ labels: Array; name: string; node_id: string; run_attempt: number; run_id: number; run_url: string; /** The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_group_id: number | null; /** The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_group_name: string | null; /** The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_id: number | null; /** The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_name: string | null; started_at: string; /** The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`. */ status: 'queued' | 'in_progress' | 'completed' | 'waiting'; /** The name of the current branch. */ head_branch: string | null; /** The name of the workflow. */ workflow_name: string | null; steps: Array<{ completed_at: string | null; conclusion: 'failure' | 'skipped' | 'success' | 'cancelled' | null; name: string; number: number; started_at: string | null; status: 'in_progress' | 'completed' | 'queued'; }>; url: string; } & { check_run_url?: string; completed_at?: string; conclusion: 'success' | 'failure' | 'skipped' | 'cancelled' | 'action_required' | 'neutral' | 'timed_out'; /** The time that the job created. */ created_at?: string; head_sha?: string; html_url?: string; id?: number; labels?: Array; name?: string; node_id?: string; run_attempt?: number; run_id?: number; run_url?: string; runner_group_id?: number | null; runner_group_name?: string | null; runner_id?: number | null; runner_name?: string | null; started_at?: string; status?: string; /** The name of the current branch. */ head_branch?: string | null; /** The name of the workflow. */ workflow_name?: string | null; steps?: Array | null>; url?: string; }; deployment?: GithubDeployment; } /** workflow_job in_progress event */ export interface GithubWebhookWorkflowJobInProgress { action: 'in_progress'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow_job: { check_run_url: string; completed_at: string | null; conclusion: 'success' | 'failure' | null | 'cancelled' | 'neutral'; /** The time that the job created. */ created_at: string; head_sha: string; html_url: string; id: number; /** Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML. */ labels: Array; name: string; node_id: string; run_attempt: number; run_id: number; run_url: string; /** The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_group_id: number | null; /** The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_group_name: string | null; /** The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_id: number | null; /** The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`. */ runner_name: string | null; started_at: string; /** The current status of the job. Can be `queued`, `in_progress`, or `completed`. */ status: 'queued' | 'in_progress' | 'completed'; /** The name of the current branch. */ head_branch: string | null; /** The name of the workflow. */ workflow_name: string | null; steps: Array<{ completed_at: string | null; conclusion: 'failure' | 'skipped' | 'success' | null | 'cancelled'; name: string; number: number; started_at: string | null; status: 'in_progress' | 'completed' | 'queued' | 'pending'; }>; url: string; } & { check_run_url?: string; completed_at?: string | null; conclusion?: string | null; /** The time that the job created. */ created_at?: string; head_sha?: string; html_url?: string; id?: number; labels?: Array; name?: string; node_id?: string; run_attempt?: number; run_id?: number; run_url?: string; runner_group_id?: number | null; runner_group_name?: string | null; runner_id?: number | null; runner_name?: string | null; started_at?: string; status: 'in_progress' | 'completed' | 'queued'; /** The name of the current branch. */ head_branch?: string | null; /** The name of the workflow. */ workflow_name?: string | null; steps: Array<{ completed_at: string | null; conclusion: string | null; name: string; number: number; started_at: string | null; status: 'in_progress' | 'completed' | 'pending' | 'queued'; }>; url?: string; }; deployment?: GithubDeployment; } /** workflow_job queued event */ export interface GithubWebhookWorkflowJobQueued { action: 'queued'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow_job: { check_run_url: string; completed_at: string | null; conclusion: string | null; /** The time that the job created. */ created_at: string; head_sha: string; html_url: string; id: number; labels: Array; name: string; node_id: string; run_attempt: number; run_id: number; run_url: string; runner_group_id: number | null; runner_group_name: string | null; runner_id: number | null; runner_name: string | null; started_at: string; status: 'queued' | 'in_progress' | 'completed' | 'waiting'; /** The name of the current branch. */ head_branch: string | null; /** The name of the workflow. */ workflow_name: string | null; steps: Array<{ completed_at: string | null; conclusion: 'failure' | 'skipped' | 'success' | 'cancelled' | null; name: string; number: number; started_at: string | null; status: 'completed' | 'in_progress' | 'queued' | 'pending'; }>; url: string; }; deployment?: GithubDeployment; } /** workflow_job waiting event */ export interface GithubWebhookWorkflowJobWaiting { action: 'waiting'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow_job: { check_run_url: string; completed_at: string | null; conclusion: string | null; /** The time that the job created. */ created_at: string; head_sha: string; html_url: string; id: number; labels: Array; name: string; node_id: string; run_attempt: number; run_id: number; run_url: string; runner_group_id: number | null; runner_group_name: string | null; runner_id: number | null; runner_name: string | null; started_at: string; /** The name of the current branch. */ head_branch: string | null; /** The name of the workflow. */ workflow_name: string | null; status: 'queued' | 'in_progress' | 'completed' | 'waiting'; steps: Array<{ completed_at: string | null; conclusion: 'failure' | 'skipped' | 'success' | 'cancelled' | null; name: string; number: number; started_at: string | null; status: 'completed' | 'in_progress' | 'queued' | 'pending' | 'waiting'; }>; url: string; }; deployment?: GithubDeployment; } /** workflow_run completed event */ export interface GithubWebhookWorkflowRunCompleted { action: 'completed'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow: GithubWebhooksWorkflow; workflow_run: { actor: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; artifacts_url: string; cancel_url: string; check_suite_id: number; check_suite_node_id: string; check_suite_url: string; conclusion: | 'action_required' | 'cancelled' | 'failure' | 'neutral' | 'skipped' | 'stale' | 'success' | 'timed_out' | 'startup_failure' | null; created_at: string; event: string; head_branch: string | null; head_commit: GithubWebhookWorkflowRunCompletedWorkflowRunHeadCommit; head_repository: GithubRepositoryLite; head_sha: string; html_url: string; id: number; jobs_url: string; logs_url: string; name: string | null; node_id: string; path: string; previous_attempt_url: string | null; pull_requests: Array; referenced_workflows?: Array | null; repository: GithubRepositoryLite; rerun_url: string; run_attempt: number; run_number: number; run_started_at: string; status: 'requested' | 'in_progress' | 'completed' | 'queued' | 'pending' | 'waiting'; triggering_actor: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; updated_at: string; url: string; workflow_id: number; workflow_url: string; /** The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow. */ display_title?: string; }; } /** workflow_run in_progress event */ export interface GithubWebhookWorkflowRunInProgress { action: 'in_progress'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow: GithubWebhooksWorkflow; workflow_run: { actor: GithubWebhookIssuesMilestonedIssueAssignee | null; artifacts_url: string; cancel_url: string; check_suite_id: number; check_suite_node_id: string; check_suite_url: string; conclusion: | 'action_required' | 'cancelled' | 'failure' | 'neutral' | 'skipped' | 'stale' | 'success' | 'timed_out' | null; created_at: string; event: string; head_branch: string | null; head_commit: GithubWebhookWorkflowRunCompletedWorkflowRunHeadCommit; head_repository: { archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; description: string | null; downloads_url: string; events_url: string; fork: boolean; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; /** The name of the repository. */ name: string | null; node_id: string; notifications_url: string; owner: GithubWebhookIssuesMilestonedIssueAssignee | null; /** Whether the repository is private or public. */ private: boolean; pulls_url: string; releases_url: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; url: string; }; head_sha: string; html_url: string; id: number; jobs_url: string; logs_url: string; name: string | null; node_id: string; path: string; previous_attempt_url: string | null; pull_requests: Array; referenced_workflows?: Array | null; repository: { archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; description: string | null; downloads_url: string; events_url: string; fork: boolean; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; owner: GithubWebhookIssuesMilestonedIssueAssignee | null; /** Whether the repository is private or public. */ private: boolean; pulls_url: string; releases_url: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; url: string; }; rerun_url: string; run_attempt: number; run_number: number; run_started_at: string; status: 'requested' | 'in_progress' | 'completed' | 'queued' | 'pending'; triggering_actor: GithubWebhookIssuesMilestonedIssueAssignee | null; updated_at: string; url: string; workflow_id: number; workflow_url: string; }; } /** workflow_run requested event */ export interface GithubWebhookWorkflowRunRequested { action: 'requested'; enterprise?: GithubEnterpriseWebhooks; installation?: GithubSimpleInstallation; organization?: GithubOrganizationSimpleWebhooks; repository: GithubRepositoryWebhooks; sender: GithubSimpleUser; workflow: GithubWebhooksWorkflow; workflow_run: { actor: GithubUser | null; artifacts_url: string; cancel_url: string; check_suite_id: number; check_suite_node_id: string; check_suite_url: string; conclusion: | 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | null | 'skipped' | 'startup_failure'; created_at: string; event: string; head_branch: string | null; head_commit: GithubSimpleCommit; head_repository: GithubWebhookWorkflowRunRequestedWorkflowRunHeadRepository; head_sha: string; html_url: string; id: number; jobs_url: string; logs_url: string; name: string | null; node_id: string; path: string; previous_attempt_url: string | null; pull_requests: Array<{ base: GithubWebhookWorkflowRunRequestedWorkflowRunPullRequestsItemBase; head: GithubWebhookWorkflowRunRequestedWorkflowRunPullRequestsItemBase; id: number; number: number; url: string; }>; referenced_workflows?: Array | null; repository: GithubWebhookWorkflowRunRequestedWorkflowRunHeadRepository; rerun_url: string; run_attempt: number; run_number: number; run_started_at: string; status: 'requested' | 'in_progress' | 'completed' | 'queued' | 'pending' | 'waiting'; triggering_actor: GithubUser | null; updated_at: string; url: string; workflow_id: number; workflow_url: string; display_title: string; }; } /** A check performed on the code of a given code change */ export interface GithubCheckRunWithSimpleCheckSuite { app: GithubIntegration; check_suite: GithubSimpleCheckSuite; completed_at: string | null; conclusion: | 'waiting' | 'pending' | 'startup_failure' | 'stale' | 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out' | 'action_required' | null; deployment?: GithubDeploymentSimple; details_url: string; external_id: string; /** The SHA of the commit that is being checked. */ head_sha: string; html_url: string; /** The id of the check. */ id: number; /** The name of the check. */ name: string; node_id: string; output: { annotations_count: number; annotations_url: string; summary: string | null; text: string | null; title: string | null; }; pull_requests: Array; started_at: string; /** The phase of the lifecycle that the check is currently in. */ status: 'queued' | 'in_progress' | 'completed' | 'pending'; url: string; } /** The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App. For more information, see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creati... */ export interface GithubSimpleInstallation { /** The ID of the installation. */ id: number; /** The global node ID of the installation. */ node_id: string; } /** An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured on an enterprise account or an organization that's part of an enterprise account. For more information, see "[About enterprise acc... */ export interface GithubEnterpriseWebhooks { /** A short description of the enterprise. */ description?: string | null; html_url: string; /** The enterprise's website URL. */ website_url?: string | null; /** Unique identifier of the enterprise */ id: number; node_id: string; /** The name of the enterprise. */ name: string; /** The slug url identifier for the enterprise. */ slug: string; created_at: string | null; updated_at: string | null; avatar_url: string; } /** A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization. */ export interface GithubOrganizationSimpleWebhooks { login: string; id: number; node_id: string; url: string; repos_url: string; events_url: string; hooks_url: string; issues_url: string; members_url: string; public_members_url: string; avatar_url: string; description: string | null; } /** The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property when the event occurs from activity in a repository. */ export interface GithubRepositoryWebhooks { /** Unique identifier of the repository */ id: number; node_id: string; /** The name of the repository. */ name: string; full_name: string; license: GithubNullableLicenseSimple; organization?: GithubNullableSimpleUser; forks: number; permissions?: GithubRepositoryWebhooksPermissions; owner: GithubSimpleUser; /** Whether the repository is private or public. */ private: boolean; html_url: string; description: string | null; fork: boolean; url: string; archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; downloads_url: string; events_url: string; forks_url: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; notifications_url: string; pulls_url: string; releases_url: string; ssh_url: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; clone_url: string; mirror_url: string | null; hooks_url: string; svn_url: string; homepage: string | null; language: string | null; forks_count: number; stargazers_count: number; watchers_count: number; /** The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. */ size: number; /** The default branch of the repository. */ default_branch: string; open_issues_count: number; /** Whether this repository acts as a template that can be used to generate new repositories. */ is_template?: boolean; topics?: Array; /** The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. */ custom_properties?: Record; /** Whether issues are enabled. */ has_issues: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; has_pages: boolean; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether discussions are enabled. */ has_discussions?: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; /** Whether the repository is archived. */ archived: boolean; /** Returns whether or not this repository disabled. */ disabled: boolean; /** The repository visibility: public, private, or internal. */ visibility?: string; pushed_at: string | null; created_at: string | null; updated_at: string | null; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; template_repository?: { id?: number; node_id?: string; name?: string; full_name?: string; owner?: { login?: string; id?: number; node_id?: string; avatar_url?: string; gravatar_id?: string; url?: string; html_url?: string; followers_url?: string; following_url?: string; gists_url?: string; starred_url?: string; subscriptions_url?: string; organizations_url?: string; repos_url?: string; events_url?: string; received_events_url?: string; type?: string; site_admin?: boolean; }; private?: boolean; html_url?: string; description?: string; fork?: boolean; url?: string; archive_url?: string; assignees_url?: string; blobs_url?: string; branches_url?: string; collaborators_url?: string; comments_url?: string; commits_url?: string; compare_url?: string; contents_url?: string; contributors_url?: string; deployments_url?: string; downloads_url?: string; events_url?: string; forks_url?: string; git_commits_url?: string; git_refs_url?: string; git_tags_url?: string; git_url?: string; issue_comment_url?: string; issue_events_url?: string; issues_url?: string; keys_url?: string; labels_url?: string; languages_url?: string; merges_url?: string; milestones_url?: string; notifications_url?: string; pulls_url?: string; releases_url?: string; ssh_url?: string; stargazers_url?: string; statuses_url?: string; subscribers_url?: string; subscription_url?: string; tags_url?: string; teams_url?: string; trees_url?: string; clone_url?: string; mirror_url?: string; hooks_url?: string; svn_url?: string; homepage?: string; language?: string; forks_count?: number; stargazers_count?: number; watchers_count?: number; size?: number; default_branch?: string; open_issues_count?: number; is_template?: boolean; topics?: Array; has_issues?: boolean; has_projects?: boolean; has_wiki?: boolean; has_pages?: boolean; has_downloads?: boolean; archived?: boolean; disabled?: boolean; visibility?: string; pushed_at?: string; created_at?: string; updated_at?: string; permissions?: GithubRepositoryWebhooksTemplateRepositoryPermissions; allow_rebase_merge?: boolean; /** When present and non-empty, a temporary credential for read-only Git access to this repository. It expires five minutes after generation and cannot be used to push changes. Treat this value as sensitive and avoid recording it in logs. */ temp_clone_token?: string; allow_squash_merge?: boolean; allow_auto_merge?: boolean; delete_branch_on_merge?: boolean; allow_update_branch?: boolean; use_squash_pr_title_as_default?: boolean; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; allow_merge_commit?: boolean; subscribers_count?: number; network_count?: number; } | null; /** When present and non-empty, a temporary credential for read-only Git access to this repository. It expires five minutes after generation and cannot be used to push changes. Treat this value as sensitive and avoid recording it in logs. */ temp_clone_token?: string; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; /** Whether to allow Auto-merge to be used on pull requests. */ allow_auto_merge?: boolean; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; /** Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. */ allow_update_branch?: boolean; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. * @deprecated */ use_squash_pr_title_as_default?: boolean; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow forking this repo */ allow_forking?: boolean; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; subscribers_count?: number; network_count?: number; open_issues: number; watchers: number; master_branch?: string; starred_at?: string; /** Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; } /** A GitHub user. */ export interface GithubSimpleUser { name?: string | null; email?: string | null; login: string; id: number; node_id: string; avatar_url: string; gravatar_id: string | null; url: string; html_url: string; followers_url: string; following_url: string; gists_url: string; starred_url: string; subscriptions_url: string; organizations_url: string; repos_url: string; events_url: string; received_events_url: string; type: string; site_admin: boolean; starred_at?: string; user_view_type?: string; } /** The pusher type for the event. Can be either `user` or a deploy key. */ export type GithubWebhooksDeployPusherType = string; /** The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource. */ export type GithubWebhooksRef0 = string; /** A Dependabot alert. */ export interface GithubDependabotAlert { number: GithubAlertNumber; /** The state of the Dependabot alert. */ state: 'auto_dismissed' | 'dismissed' | 'fixed' | 'open'; /** Details for the vulnerable dependency. */ dependency: { package?: GithubDependabotAlertPackage; /** The full path to the dependency manifest file, relative to the root of the repository. */ manifest_path?: string; /** The dependency version or version constraint last recorded for the dependency associated with this alert. For dependencies detected from a lockfile, this can be the resolved version. For manifest-only dependencies, it can be the declared... */ version_requirement?: string | null; /** The execution scope of the vulnerable dependency. */ scope?: 'development' | 'runtime' | null; /** The vulnerable dependency's relationship to your project. > [!NOTE] > We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems. */ relationship?: 'unknown' | 'direct' | 'transitive' | 'inconclusive' | null; }; security_advisory: GithubDependabotAlertSecurityAdvisory; security_vulnerability: GithubDependabotAlertSecurityVulnerability; url: GithubAlertUrl; html_url: GithubAlertHtmlUrl; created_at: GithubAlertCreatedAt; updated_at: GithubAlertUpdatedAt; dismissed_at: GithubAlertDismissedAt; dismissed_by: GithubNullableSimpleUser; /** The reason that the alert was dismissed. */ dismissed_reason: 'fix_started' | 'inaccurate' | 'no_bandwidth' | 'not_used' | 'tolerable_risk' | null; /** An optional comment associated with the alert's dismissal. */ dismissed_comment: string | null; fixed_at: GithubAlertFixedAt; auto_dismissed_at?: GithubAlertAutoDismissedAt; dismissal_request?: GithubDependabotAlertDismissalRequestSimple; /** The users assigned to this alert. */ assignees?: Array; /** The reachability result for the vulnerability that triggered the alert, indicating whether a vulnerable function is reachable from the repository's own code. */ reachability?: { /** The reachability verdict for the alert. - `reachable`: a path from the repository's code reaches a vulnerable function. - `unreachable`: no path from the repository's code reaches a vulnerable function. - `potentially_reachable`: reachab... */ verdict: 'reachable' | 'unreachable' | 'potentially_reachable' | 'unavailable' | 'disabled'; /** The reason for the reachability verdict. This field is omitted when reachability analysis is disabled or no result has been computed. */ reason?: | 'unknown' | 'unavailable_unsupported_ecosystem' | 'unavailable_analysis_timed_out' | 'potentially_reachable_invalid_manifest_path' | 'potentially_reachable_missing_vulnerable_function_annotation' | 'potentially_reachable_dependency_not_found' | 'potentially_reachable_dependency_analysis_incomplete' | 'potentially_reachable_repository_analysis_incomplete' | 'potentially_reachable_call_found_outside_manifest_scope' | 'potentially_reachable_unclassified_analysis_state' | 'reachable_vulnerable_function_called' | 'unreachable_vulnerable_function_not_called' | 'potentially_reachable_unresolved_dynamic_call'; }; } /** Identifiers for a withdrawn Dependabot alert, captured before deletion so that consumers can reconcile external records. This is not a full alert representation. */ export interface GithubDependabotAlertWithdrawnWebhook { /** The unique identifier of the withdrawn alert. */ id: number; /** The GraphQL node ID of the withdrawn alert. */ node_id: string; number: GithubAlertNumber; /** The state of the Dependabot alert. */ state: 'withdrawn'; /** Details for the vulnerable dependency. */ dependency: { package: GithubDependabotAlertPackage; /** The full path to the dependency manifest file, relative to the root of the repository. */ manifest_path: string | null; /** The dependency version or version constraint last recorded for the dependency associated with this alert. For dependencies detected from a lockfile, this can be the resolved version. For manifest-only dependencies, it can be the declared... */ version_requirement?: string | null; /** The execution scope of the vulnerable dependency. */ scope: 'development' | 'runtime' | null; /** The vulnerable dependency's relationship to your project. > [!NOTE] > We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems. */ relationship?: 'unknown' | 'direct' | 'transitive' | 'inconclusive' | null; }; /** Identifiers of the advisory that produced the withdrawn alert. */ security_advisory: { /** The unique GitHub identifier assigned to the advisory. */ ghsa_id: string; /** The CVE identifier assigned to the advisory, if any. */ cve_id: string | null; }; url: GithubAlertUrl; html_url: GithubAlertHtmlUrl; created_at: GithubAlertCreatedAt; /** The time that the alert was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. This is not the advisory's withdrawal time. */ withdrawn_at: string; } /** Workflow */ export type GithubWebhooksWorkflow = { badge_url: string; created_at: string; html_url: string; id: number; name: string; node_id: string; path: string; state: string; updated_at: string; url: string; } | null; /** Installation */ export interface GithubInstallation { /** The ID of the installation. */ id: number; account: GithubSimpleUser | GithubEnterprise | null; /** Describe whether all repositories have been selected or there's a selection involved */ repository_selection: 'all' | 'selected'; access_tokens_url: string; repositories_url: string; html_url: string; app_id: number; client_id?: string; /** The ID of the user or organization this token is being scoped to. */ target_id: number; target_type: string; permissions: GithubAppPermissions; events: Array; created_at: string; updated_at: string; single_file_name: string | null; has_multiple_single_files?: boolean; single_file_paths?: Array; app_slug: string; suspended_by: GithubNullableSimpleUser; suspended_at: string | null; contact_email?: string | null; } /** An array of repository objects that the installation can access. */ export type GithubWebhooksRepositories = Array; /** User */ export interface GithubWebhooksUser { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; user_view_type?: string; } /** An array of repository objects, which were added to the installation. */ export type GithubWebhooksRepositoriesAdded = Array; /** Describe whether all repositories have been selected or there's a selection involved */ export type GithubWebhooksRepositorySelection = 'all' | 'selected'; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ export interface GithubNullableIntegration { /** Unique identifier of the GitHub app */ id: number; /** The slug name of the GitHub app */ slug?: string; node_id: string; client_id?: string; owner: GithubSimpleUser | GithubEnterprise; /** The name of the GitHub app */ name: string; description: string | null; external_url: string; html_url: string; created_at: string; updated_at: string; /** The set of permissions for the GitHub app */ permissions: GithubNullableIntegrationPermissions; /** The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. */ events: Array; /** The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. */ installations_count?: number; } /** Context around who pinned an issue comment and when it was pinned. */ export type GithubNullablePinnedIssueComment = { pinned_at: string; pinned_by: GithubNullableSimpleUser; } | null; /** Details about why an issue comment was minimized. */ export interface GithubNullableIssueCommentMinimized { /** The reason the comment was minimized. */ reason: string | null; } /** Sub-issues Summary */ export interface GithubSubIssuesSummary { total: number; completed: number; percent_completed: number; } /** Issue Dependencies Summary */ export interface GithubIssueDependenciesSummary { blocked_by: number; blocking: number; total_blocked_by: number; total_blocking: number; } /** The type assigned to the issue. This is only present for issues in repositories where issue types are supported. */ export interface GithubIssueType { /** The unique identifier of the issue type. */ id: number; /** The node identifier of the issue type. */ node_id: string; /** The name of the issue type. */ name: string; /** The description of the issue type. */ description: string | null; /** The color of the issue type. */ color?: 'gray' | 'blue' | 'green' | 'yellow' | 'orange' | 'red' | 'pink' | 'purple' | null; /** The time the issue type created. */ created_at?: string; /** The time the issue type last updated. */ updated_at?: string; /** The enabled state of the issue type. */ is_enabled?: boolean; } /** The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. */ export interface GithubWebhooksIssueComment { /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue comment */ body: string; created_at: string; html_url: string; /** Unique identifier of the issue comment */ id: number; issue_url: string; node_id: string; performed_via_github_app: GithubIntegration; reactions: GithubReactions; updated_at: string; /** URL for the issue comment */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; pin?: GithubNullablePinnedIssueComment; minimized?: GithubNullableIssueCommentMinimized; } /** The changes to the comment. */ export interface GithubWebhooksChanges { body?: GithubWebhookIssuesEditedChangesBody; } /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ export interface GithubWebhooksIssue { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubWebhookIssueCommentEditedIssuePerformedViaGithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } /** Label */ export interface GithubWebhooksLabel { /** 6-character hex code, without the leading #, identifying the color */ color: string; default: boolean; description: string | null; /** Timestamp indicating when the label was archived, or `null` if it has not been archived. */ archived_at: string | null; /** The user who archived the label, or `null` if it has not been archived. */ archived_by: GithubSimpleUser | null; id: number; /** The name of the label. */ name: string; node_id: string; /** URL for the label */ url: string; } /** Comments provide a way for people to collaborate on an issue. */ export type GithubNullableIssueComment = { /** Unique identifier of the issue comment */ id: number; node_id: string; /** URL for the issue comment */ url: string; /** Contents of the issue comment */ body?: string; body_text?: string; body_html?: string; html_url: string; user: GithubNullableSimpleUser; created_at: string; updated_at: string; issue_url: string; author_association?: GithubAuthorAssociation; performed_via_github_app?: GithubNullableIntegration; reactions?: GithubReactionRollup; pin?: GithubNullablePinnedIssueComment; minimized?: GithubNullableIssueCommentMinimized; } | null; /** A value assigned to an issue field */ export interface GithubIssueFieldValue { /** Unique identifier for the issue field. */ issue_field_id: number; /** The human-readable name of the issue field. */ issue_field_name?: string; node_id: string; /** The data type of the issue field */ data_type: 'text' | 'single_select' | 'multi_select' | 'number' | 'date'; /** The value of the issue field */ value: string | number | null; /** Details about the selected option (only present for single_select fields) */ single_select_option?: { /** Unique identifier for the option. */ id: number; /** The name of the option */ name: string; /** The color of the option */ color: string; } | null; /** Details about the selected options */ multi_select_options?: Array<{ /** Unique identifier for the option. */ id: number; /** The name of the option */ name: string; /** The color of the option */ color: string; }> | null; } /** A collection of related issues and pull requests. */ export interface GithubWebhooksMilestone { closed_at: string | null; closed_issues: number; created_at: string; creator: GithubWebhookIssueCommentCreatedIssueAssignee | null; description: string | null; due_on: string | null; html_url: string; id: number; labels_url: string; node_id: string; /** The number of the milestone. */ number: number; open_issues: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; updated_at: string; url: string; } /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ export interface GithubWebhooksIssue2 { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubUser | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssuesDeletedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: GithubApp | null; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; pinned_comment?: GithubNullableIssueComment; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; issue_field_values?: Array; /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ status?: GithubPlanningStatus | null; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } /** User */ export interface GithubWebhooksUserMannequin { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; user_view_type?: string; } /** The pull request number. */ export type GithubWebhooksNumber = number; /** The stack information associated with a pull request. */ export type GithubPullRequestStack = { base: { /** The base ref of the stack this pull request belongs to. */ ref: string; /** The base SHA of the stack this pull request belongs to. */ sha: string; }; /** The total number of pull requests in the stack. */ size?: number; /** The one-based position of this pull request within the stack, where 1 is the bottom of the stack. */ position?: number; /** The ID of the stack that this pull request belongs to. */ id?: number; /** The number of the stack that this pull request belongs to. */ number?: number; } | null; export type GithubPullRequestWebhook = GithubPullRequest & { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow updating the pull request's branch. */ allow_update_branch?: boolean; /** Whether to delete head branches when pull requests are merged. */ delete_branch_on_merge?: boolean; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name"). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.** */ use_squash_pr_title_as_default?: boolean; }; /** A collection of related issues and pull requests. */ export interface GithubMilestone { url: string; html_url: string; labels_url: string; id: number; node_id: string; /** The number of the milestone. */ number: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; description: string | null; creator: GithubNullableSimpleUser; open_issues: number; closed_issues: number; created_at: string; updated_at: string; closed_at: string | null; due_on: string | null; } /** Pull Request */ export interface GithubWebhooksPullRequest5 { _links: GithubWebhookPullRequestAssignedPullRequestLinks; active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; additions?: number; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The status of auto merging a pull request. */ auto_merge: GithubPullRequestAutoMerge | null; base: GithubWebhooksPullRequest5Base; body: string | null; changed_files?: number; closed_at: string | null; comments?: number; comments_url: string; commits?: number; commits_url: string; created_at: string; deletions?: number; diff_url: string; /** Indicates whether or not the pull request is a draft. */ draft: boolean; head: GithubWebhooksPullRequest5Base; html_url: string; id: number; issue_url: string; labels: Array; locked: boolean; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify?: boolean; merge_commit_sha: string | null; mergeable?: boolean | null; mergeable_state?: string; merged?: boolean | null; merged_at: string | null; merged_by?: GithubWebhookIssueCommentCreatedIssueAssignee | null; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; /** Number uniquely identifying the pull request within its repository. */ number: number; patch_url: string; rebaseable?: boolean | null; requested_reviewers: Array< | GithubWebhookPullRequestAutoMergeDisabledPullRequestAssigneesItem | null | GithubWebhookPullRequestAssignedPullRequestRequestedTeamsItem >; requested_teams: Array; review_comment_url: string; review_comments?: number; review_comments_url: string; stack?: GithubPullRequestStack; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; statuses_url: string; /** The title of the pull request. */ title: string; updated_at: string; url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } /** The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. */ export interface GithubWebhooksReviewComment { _links: GithubWebhookPullRequestReviewCommentCreatedCommentLinks; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The text of the comment. */ body: string; /** The SHA of the commit to which the comment applies. */ commit_id: string; created_at: string; /** The diff of the line that the comment refers to. */ diff_hunk: string; /** HTML URL for the pull request review comment. */ html_url: string; /** The ID of the pull request review comment. */ id: number; /** The comment ID to reply to. */ in_reply_to_id?: number; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ line: number | null; /** The node ID of the pull request review comment. */ node_id: string; /** The SHA of the original commit to which the comment applies. */ original_commit_id: string; /** The line of the blob to which the comment applies. The last line of the range for a multi-line comment */ original_line: number; /** The index of the original line in the diff to which the comment applies. */ original_position: number; /** The first line of the range for a multi-line comment. */ original_start_line: number | null; /** The relative path of the file to which the comment applies. */ path: string; /** The line index in the diff to which the comment applies. */ position: number | null; /** The ID of the pull request review to which the comment belongs. */ pull_request_review_id: number | null; /** URL for the pull request that the review comment belongs to. */ pull_request_url: string; reactions: GithubReactions; /** The side of the first line of the range for a multi-line comment. */ side: 'LEFT' | 'RIGHT'; /** The first line of the range for a multi-line comment. */ start_line: number | null; /** The side of the first line of the range for a multi-line comment. */ start_side: 'LEFT' | 'RIGHT' | null; /** The level at which the comment is targeted, can be a diff line or a file. */ subject_type?: 'line' | 'file'; updated_at: string; /** URL for the pull request review comment */ url: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } /** The review that was affected. */ export interface GithubWebhooksReview { _links: GithubWebhookPullRequestReviewDismissedReviewLinks; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** The text of the review. */ body: string | null; /** A commit SHA for the review. */ commit_id: string; html_url: string; /** Unique identifier of the review */ id: number; node_id: string; pull_request_url: string; state: string; submitted_at: string | null; updated_at?: string | null; user: GithubWebhookIssueCommentCreatedCommentUser | null; } export type GithubWebhooksNullableString = string | null; /** The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. */ export interface GithubWebhooksRelease { assets: Array<{ browser_download_url: string; content_type: string; created_at: string; download_count: number; id: number; label: string | null; /** The file name of the asset. */ name: string; node_id: string; size: number; digest: string | null; /** State of the release asset. */ state: 'uploaded'; updated_at: string; uploader?: GithubWebhookPullRequestAutoMergeDisabledPullRequestAssigneesItem | null; url: string; }>; assets_url: string; author: GithubUser | null; body: string | null; created_at: string | null; updated_at: string | null; discussion_url?: string; /** Whether the release is a draft or published */ draft: boolean; html_url: string; id: number; /** Whether or not the release is immutable. */ immutable: boolean; name: string | null; node_id: string; /** Whether the release is identified as a prerelease or a full release. */ prerelease: boolean; published_at: string | null; reactions?: GithubReactions; /** The name of the tag. */ tag_name: string; tarball_url: string | null; /** Specifies the commitish value that determines where the Git tag is created from. */ target_commitish: string; upload_url: string; url: string; zipball_url: string | null; } /** The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. */ export interface GithubWebhooksRelease1 { assets: Array<{ browser_download_url: string; content_type: string; created_at: string; download_count: number; id: number; label: string | null; /** The file name of the asset. */ name: string; node_id: string; size: number; digest: string | null; /** State of the release asset. */ state: 'uploaded'; updated_at: string; uploader?: GithubWebhookIssuesMilestonedIssueAssignee | null; url: string; }>; assets_url: string; author: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; body: string | null; created_at: string | null; discussion_url?: string; /** Whether the release is a draft or published */ draft: boolean; html_url: string; id: number; /** Whether or not the release is immutable. */ immutable: boolean; name: string | null; node_id: string; /** Whether the release is identified as a prerelease or a full release. */ prerelease: boolean; published_at: string | null; reactions?: GithubWebhookIssuesDemilestonedIssueReactions; /** The name of the tag. */ tag_name: string; tarball_url: string | null; /** Specifies the commitish value that determines where the Git tag is created from. */ target_commitish: string; updated_at: string | null; upload_url: string; url: string; zipball_url: string | null; } /** A request for a specific ref(branch,sha,tag) to be deployed */ export interface GithubDeployment { url: string; /** Unique identifier of the deployment */ id: number; node_id: string; sha: string; /** The ref to deploy. This can be a branch, tag, or sha. */ ref: string; /** Parameter to specify a task to execute */ task: string; payload: Record | string; original_environment?: string; /** Name for the target deployment environment. */ environment: string; description: string | null; creator: GithubNullableSimpleUser; created_at: string; updated_at: string; statuses_url: string; repository_url: string; /** Specifies if the given environment is will no longer exist at some point in the future. Default: false. */ transient_environment?: boolean; /** Specifies if the given environment is one that end-users directly interact with. Default: false. */ production_environment?: boolean; performed_via_github_app?: GithubNullableIntegration; } /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ export interface GithubIntegration { /** Unique identifier of the GitHub app */ id: number; /** The slug name of the GitHub app */ slug?: string; node_id: string; client_id?: string; owner: GithubSimpleUser | GithubEnterprise; /** The name of the GitHub app */ name: string; description: string | null; external_url: string; html_url: string; created_at: string; updated_at: string; /** The set of permissions for the GitHub app */ permissions: GithubNullableIntegrationPermissions; /** The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. */ events: Array; /** The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. */ installations_count?: number; } /** A suite of checks performed on the code of a given code change */ export interface GithubSimpleCheckSuite { after?: string | null; app?: GithubIntegration; before?: string | null; conclusion?: | 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out' | 'action_required' | 'stale' | 'startup_failure' | null; created_at?: string; head_branch?: string | null; /** The SHA of the head commit that is being checked. */ head_sha?: string; id?: number; node_id?: string; pull_requests?: Array; repository?: GithubMinimalRepository; status?: 'queued' | 'in_progress' | 'completed' | 'pending' | 'waiting'; updated_at?: string; url?: string; } /** A deployment created as the result of an Actions check run from a workflow that references an environment */ export interface GithubDeploymentSimple { url: string; /** Unique identifier of the deployment */ id: number; node_id: string; /** Parameter to specify a task to execute */ task: string; original_environment?: string; /** Name for the target deployment environment. */ environment: string; description: string | null; created_at: string; updated_at: string; statuses_url: string; repository_url: string; /** Specifies if the given environment is will no longer exist at some point in the future. Default: false. */ transient_environment?: boolean; /** Specifies if the given environment is one that end-users directly interact with. Default: false. */ production_environment?: boolean; performed_via_github_app?: GithubNullableIntegration; } /** Pull Request Minimal */ export interface GithubPullRequestMinimal { id: number; number: number; url: string; head: GithubPullRequestMinimalHead; base: GithubPullRequestMinimalHead; } /** License Simple */ export interface GithubNullableLicenseSimple { key: string; name: string; url: string | null; spdx_id: string | null; node_id: string; html_url?: string; } /** A GitHub user. */ export interface GithubNullableSimpleUser { name?: string | null; email?: string | null; login: string; id: number; node_id: string; avatar_url: string; gravatar_id: string | null; url: string; html_url: string; followers_url: string; following_url: string; gists_url: string; starred_url: string; subscriptions_url: string; organizations_url: string; repos_url: string; events_url: string; received_events_url: string; type: string; site_admin: boolean; starred_at?: string; user_view_type?: string; } /** The security alert number. */ export type GithubAlertNumber = number; /** Details for the vulnerable package. */ export interface GithubDependabotAlertPackage { /** The package's language or package management ecosystem. */ ecosystem: string; /** The unique package name within its ecosystem. */ name: string; } /** Details for the GitHub Security Advisory. */ export interface GithubDependabotAlertSecurityAdvisory { /** The unique GitHub Security Advisory ID assigned to the advisory. */ ghsa_id: string; /** The unique CVE ID assigned to the advisory. */ cve_id: string | null; /** A short, plain text summary of the advisory. */ summary: string; /** A long-form Markdown-supported description of the advisory. */ description: string; /** Vulnerable version range information for the advisory. */ vulnerabilities: Array; /** The severity of the advisory. */ severity: 'low' | 'medium' | 'high' | 'critical'; /** The classification of the advisory. */ classification?: 'general' | 'malware'; /** Details for the advisory pertaining to the Common Vulnerability Scoring System. */ cvss: { /** The overall CVSS score of the advisory. */ score: number; /** The full CVSS vector string for the advisory. */ vector_string: string | null; }; cvss_severities?: GithubCvssSeverities; epss?: GithubSecurityAdvisoryEpss; /** Details for the advisory pertaining to Common Weakness Enumeration. */ cwes: Array<{ /** The unique CWE ID. */ cwe_id: string; /** The short, plain text name of the CWE. */ name: string; }>; /** Values that identify this advisory among security information sources. */ identifiers: Array<{ /** The type of advisory identifier. */ type: 'CVE' | 'GHSA'; /** The value of the advisory identifer. */ value: string; }>; /** Links to additional advisory information. */ references: Array<{ /** The URL of the reference. */ url: string; }>; /** The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ published_at: string; /** The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ updated_at: string; /** The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ withdrawn_at: string | null; } /** Details pertaining to one vulnerable version range for the advisory. */ export interface GithubDependabotAlertSecurityVulnerability { package: GithubDependabotAlertPackage; /** The severity of the vulnerability. */ severity: 'low' | 'medium' | 'high' | 'critical'; /** Conditions that identify vulnerable versions of this vulnerability's package. */ vulnerable_version_range: string; /** Details pertaining to the package version that patches this vulnerability. */ first_patched_version: { /** The package version that patches this vulnerability. */ identifier: string; } | null; } /** The REST API URL of the alert resource. */ export type GithubAlertUrl = string; /** The GitHub URL of the alert resource. */ export type GithubAlertHtmlUrl = string; /** The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ export type GithubAlertCreatedAt = string; /** The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ export type GithubAlertUpdatedAt = string; /** The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ export type GithubAlertDismissedAt = string | null; /** The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ export type GithubAlertFixedAt = string | null; /** The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ export type GithubAlertAutoDismissedAt = string | null; /** Information about an active dismissal request for this Dependabot alert. */ export type GithubDependabotAlertDismissalRequestSimple = { /** The unique identifier of the dismissal request. */ id?: number; /** The current status of the dismissal request. */ status?: 'pending' | 'approved' | 'rejected' | 'cancelled'; /** The user who requested the dismissal. */ requester?: { /** The unique identifier of the user. */ id?: number; /** The login name of the user. */ login?: string; }; /** The date and time when the dismissal request was created. */ created_at?: string; /** The API URL to get more information about this dismissal request. */ url?: string; } | null; /** An enterprise on GitHub. */ export interface GithubEnterprise { /** A short description of the enterprise. */ description?: string | null; html_url: string; /** The enterprise's website URL. */ website_url?: string | null; /** Unique identifier of the enterprise */ id: number; node_id: string; /** The name of the enterprise. */ name: string; /** The slug url identifier for the enterprise. */ slug: string; created_at: string | null; updated_at: string | null; avatar_url: string; } /** The permissions granted to the fine-grained access token. */ export interface GithubAppPermissions { /** The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. */ actions?: 'read' | 'write'; /** The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. */ administration?: 'read' | 'write'; /** The level of permission to grant the access token to create and retrieve build artifact metadata records. */ artifact_metadata?: 'read' | 'write'; /** The level of permission to create and retrieve the access token for repository attestations. */ attestations?: 'read' | 'write'; /** The level of permission to grant the access token for checks on code. */ checks?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage code quality data. */ code_quality?: 'read' | 'write'; /** The level of permission to grant the access token to create, edit, delete, and list Codespaces. */ codespaces?: 'read' | 'write'; /** The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. */ contents?: 'read' | 'write'; /** The level of permission to grant the access token to manage Dependabot secrets. */ dependabot_secrets?: 'read' | 'write'; /** The level of permission to grant the access token for deployments and deployment statuses. */ deployments?: 'read' | 'write'; /** The level of permission to grant the access token for discussions and related comments and labels. */ discussions?: 'read' | 'write'; /** The level of permission to grant the access token for managing repository environments. */ environments?: 'read' | 'write'; /** The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. */ issues?: 'read' | 'write'; /** The level of permission to grant the access token to manage the merge queues for a repository. */ merge_queues?: 'read' | 'write'; /** The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. */ metadata?: 'read' | 'write'; /** The level of permission to grant the access token for packages published to GitHub Packages. */ packages?: 'read' | 'write'; /** The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. */ pages?: 'read' | 'write'; /** The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. */ pull_requests?: 'read' | 'write'; /** The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. */ repository_custom_properties?: 'read' | 'write'; /** The level of permission to grant the access token to manage the post-receive hooks for a repository. */ repository_hooks?: 'read' | 'write'; /** The level of permission to grant the access token to manage repository projects, columns, and cards. */ repository_projects?: 'read' | 'write' | 'admin'; /** The level of permission to grant the access token to view and manage secret scanning alerts. */ secret_scanning_alerts?: 'read' | 'write'; /** The level of permission to grant the access token to manage repository secrets. */ secrets?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage security events like code scanning alerts. */ security_events?: 'read' | 'write'; /** The level of permission to grant the access token to manage just a single file. */ single_file?: 'read' | 'write'; /** The level of permission to grant the access token for commit statuses. */ statuses?: 'read' | 'write'; /** The level of permission to grant the access token to manage Dependabot alerts. */ vulnerability_alerts?: 'read' | 'write'; /** The level of permission to grant the access token to update GitHub Actions workflow files. */ workflows?: 'write'; /** The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property. */ custom_properties_for_organizations?: 'read' | 'write'; /** The level of permission to grant the access token for organization teams and members. */ members?: 'read' | 'write'; /** The level of permission to grant the access token to manage access to an organization. */ organization_administration?: 'read' | 'write'; /** The level of permission to grant the access token for custom repository roles management. */ organization_custom_roles?: 'read' | 'write'; /** The level of permission to grant the access token for custom organization roles management. */ organization_custom_org_roles?: 'read' | 'write'; /** The level of permission to grant the access token for repository custom properties management at the organization level. */ organization_custom_properties?: 'read' | 'write' | 'admin'; /** The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. */ organization_copilot_seat_management?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization. */ organization_copilot_agent_settings?: 'read' | 'write'; /** The level of permission to grant the access token to make Copilot requests billed to the organization where the app is installed. This property is in public preview and is subject to change. */ organization_copilot_requests?: 'read'; /** The level of permission to grant the access token for managing external custom properties for repositories in an organization. */ organization_external_properties_for_repos?: 'read' | 'write' | 'admin'; /** The level of permission to grant the access token to view and manage announcement banners for an organization. */ organization_announcement_banners?: 'read' | 'write'; /** The level of permission to grant the access token to view events triggered by an activity in an organization. */ organization_events?: 'read'; /** The level of permission to grant the access token to manage the post-receive hooks for an organization. */ organization_hooks?: 'read' | 'write'; /** The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. */ organization_personal_access_tokens?: 'read' | 'write'; /** The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. */ organization_personal_access_token_requests?: 'read' | 'write'; /** The level of permission to grant the access token for viewing an organization's plan. */ organization_plan?: 'read'; /** The level of permission to grant the access token to manage organization projects and projects public preview (where available). */ organization_projects?: 'read' | 'write' | 'admin'; /** The level of permission to grant the access token for organization packages published to GitHub Packages. */ organization_packages?: 'read' | 'write'; /** The level of permission to grant the access token to manage organization secrets. */ organization_secrets?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. */ organization_self_hosted_runners?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage users blocked by the organization. */ organization_user_blocking?: 'read' | 'write'; /** The level of permission to grant the access token to manage the email addresses belonging to a user. */ email_addresses?: 'read' | 'write'; /** The level of permission to grant the access token to manage the followers belonging to a user. */ followers?: 'read' | 'write'; /** The level of permission to grant the access token to manage git SSH keys. */ git_ssh_keys?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage GPG keys belonging to a user. */ gpg_keys?: 'read' | 'write'; /** The level of permission to grant the access token to view and manage interaction limits on a repository. */ interaction_limits?: 'read' | 'write'; /** The level of permission to grant the access token to manage the profile settings belonging to a user. */ profile?: 'write'; /** The level of permission to grant the access token to list and manage repositories a user is starring. */ starring?: 'read' | 'write'; /** The level of permission to grant the access token for organization custom properties management at the enterprise level. */ enterprise_custom_properties_for_organizations?: 'read' | 'write' | 'admin'; } /** How the author is associated with the repository. */ export type GithubAuthorAssociation = | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Reaction Rollup */ export interface GithubReactionRollup { url: string; total_count: number; '+1': number; '-1': number; laugh: number; confused: number; heart: number; hooray: number; eyes: number; rocket: number; } /** Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if n... */ export interface GithubPullRequest { url: string; id: number; node_id: string; html_url: string; diff_url: string; patch_url: string; issue_url: string; commits_url: string; review_comments_url: string; review_comment_url: string; comments_url: string; statuses_url: string; /** Number uniquely identifying the pull request within its repository. */ number: number; /** State of this Pull Request. Either `open` or `closed`. */ state: 'open' | 'closed'; locked: boolean; /** The title of the pull request. */ title: string; user: GithubSimpleUser; body: string | null; labels: Array<{ id: number; node_id: string; url: string; name: string; description: string | null; color: string; default: boolean; /** The user who archived the label, or `null` if it has not been archived. */ archived_by: GithubSimpleUser | null; }>; milestone: GithubNullableMilestone; active_lock_reason?: string | null; created_at: string; updated_at: string; closed_at: string | null; merged_at: string | null; merge_commit_sha: string | null; assignee: GithubNullableSimpleUser; assignees?: Array; requested_reviewers?: Array; requested_teams?: Array; head: GithubPullRequestHead; base: GithubPullRequestHead; _links: { comments: GithubLink; commits: GithubLink; statuses: GithubLink; html: GithubLink; issue: GithubLink; review_comments: GithubLink; review_comment: GithubLink; self: GithubLink; }; author_association: GithubAuthorAssociation; auto_merge: GithubAutoMerge; stack?: GithubPullRequestStack; /** Indicates whether or not the pull request is a draft. */ draft?: boolean; merged: boolean; mergeable: boolean | null; rebaseable?: boolean | null; mergeable_state: string; merged_by: GithubNullableSimpleUser; comments: number; review_comments: number; /** Indicates whether maintainers can modify the pull request. */ maintainer_can_modify: boolean; commits: number; additions: number; deletions: number; changed_files: number; } /** Minimal Repository */ export interface GithubMinimalRepository { id: number; node_id: string; name: string; full_name: string; owner: GithubSimpleUser; private: boolean; html_url: string; description: string | null; fork: boolean; url: string; archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; downloads_url: string; events_url: string; forks_url: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url?: string; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; notifications_url: string; pulls_url: string; releases_url: string; ssh_url?: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; clone_url?: string; mirror_url?: string | null; hooks_url: string; svn_url?: string; homepage?: string | null; language?: string | null; forks_count?: number; stargazers_count?: number; watchers_count?: number; /** The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. */ size?: number; default_branch?: string; open_issues_count?: number; is_template?: boolean; topics?: Array; has_issues?: boolean; has_projects?: boolean; has_wiki?: boolean; has_pages?: boolean; has_downloads?: boolean; has_discussions?: boolean; has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; archived?: boolean; disabled?: boolean; visibility?: string; pushed_at?: string | null; created_at?: string | null; updated_at?: string | null; permissions?: GithubRepositoryWebhooksTemplateRepositoryPermissions; role_name?: string; /** When present and non-empty, a temporary credential for read-only Git access to this repository. It expires five minutes after generation and cannot be used to push changes. Treat this value as sensitive and avoid recording it in logs. */ temp_clone_token?: string; delete_branch_on_merge?: boolean; subscribers_count?: number; network_count?: number; code_of_conduct?: GithubCodeOfConduct; license?: { key?: string; name?: string; spdx_id?: string; url?: string | null; node_id?: string; }; forks?: number; open_issues?: number; watchers?: number; allow_forking?: boolean; web_commit_signoff_required?: boolean; security_and_analysis?: GithubSecurityAndAnalysis; /** The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. */ custom_properties?: Record; } export interface GithubCvssSeverities { cvss_v3?: { /** The CVSS 3 vector string. */ vector_string: string | null; /** The CVSS 3 score. */ score: number | null; }; cvss_v4?: { /** The CVSS 4 vector string. */ vector_string: string | null; /** The CVSS 4 score. */ score: number | null; }; } /** The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). */ export type GithubSecurityAdvisoryEpss = { percentage?: number; percentile?: number; } | null; /** A collection of related issues and pull requests. */ export interface GithubNullableMilestone { url: string; html_url: string; labels_url: string; id: number; node_id: string; /** The number of the milestone. */ number: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; description: string | null; creator: GithubNullableSimpleUser; open_issues: number; closed_issues: number; created_at: string; updated_at: string; closed_at: string | null; due_on: string | null; } /** Groups of organization members that gives permissions on specified repositories. */ export interface GithubTeamSimple { /** Unique identifier of the team */ id: number; node_id: string; /** URL for the team */ url: string; members_url: string; /** Name of the team */ name: string; /** Description of the team */ description: string | null; /** Permission that the team will have for its repositories */ permission: string; /** The level of privacy this team should have */ privacy?: string; /** The notification setting the team has set */ notification_setting?: string; html_url: string; repositories_url: string; slug: string; /** Distinguished Name (DN) that team maps to within LDAP environment */ ldap_dn?: string; /** The ownership type of the team */ type: 'enterprise' | 'organization'; /** Unique identifier of the organization to which this team belongs */ organization_id?: number; /** Unique identifier of the enterprise to which this team belongs */ enterprise_id?: number; } /** A repository on GitHub. */ export interface GithubRepository { /** Unique identifier of the repository */ id: number; node_id: string; /** The name of the repository. */ name: string; full_name: string; license: GithubNullableLicenseSimple; forks: number; permissions?: GithubRepositoryWebhooksPermissions; owner: GithubSimpleUser; /** Whether the repository is private or public. */ private: boolean; html_url: string; description: string | null; fork: boolean; url: string; archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; downloads_url: string; events_url: string; forks_url: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; notifications_url: string; pulls_url: string; releases_url: string; ssh_url: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; clone_url: string; mirror_url: string | null; hooks_url: string; svn_url: string; homepage: string | null; language: string | null; forks_count: number; stargazers_count: number; watchers_count: number; /** The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. */ size: number; /** The default branch of the repository. */ default_branch: string; open_issues_count: number; /** Whether this repository acts as a template that can be used to generate new repositories. */ is_template?: boolean; topics?: Array; /** Whether issues are enabled. */ has_issues: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; has_pages: boolean; /** Whether downloads are enabled. * @deprecated */ has_downloads: boolean; /** Whether discussions are enabled. */ has_discussions?: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; /** Whether the repository is archived. */ archived: boolean; /** Returns whether or not this repository disabled. */ disabled: boolean; /** The repository visibility: public, private, or internal. */ visibility?: string; pushed_at: string | null; created_at: string | null; updated_at: string | null; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** When present and non-empty, a temporary credential for read-only Git access to this repository. It expires five minutes after generation and cannot be used to push changes. Treat this value as sensitive and avoid recording it in logs. */ temp_clone_token?: string; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; /** Whether to allow Auto-merge to be used on pull requests. */ allow_auto_merge?: boolean; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; /** Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. */ allow_update_branch?: boolean; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. * @deprecated */ use_squash_pr_title_as_default?: boolean; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow forking this repo */ allow_forking?: boolean; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; open_issues: number; watchers: number; master_branch?: string; starred_at?: string; /** Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; /** The status of the code search index for this repository */ code_search_index_status?: { lexical_search_ok?: boolean; lexical_commit_sha?: string; }; } /** Hypermedia Link */ export interface GithubLink { href: string; } /** The status of auto merging a pull request. */ export type GithubAutoMerge = { enabled_by: GithubSimpleUser; /** The merge method to use. */ merge_method: 'merge' | 'squash' | 'rebase'; /** Title for the merge commit message. */ commit_title: string; /** Commit message for the merge commit. */ commit_message: string; } | null; /** Code Of Conduct */ export interface GithubCodeOfConduct { key: string; name: string; url: string; body?: string; html_url: string | null; } export type GithubSecurityAndAnalysis = { /** Enable or disable GitHub Advanced Security for the repository. For standalone Code Scanning or Secret Protection products, this parameter cannot be used. */ advanced_security?: { status?: 'enabled' | 'disabled'; }; code_security?: GithubSecurityAndAnalysisCodeSecurity; /** Enable or disable Dependabot security updates for the repository. */ dependabot_security_updates?: { /** The enablement status of Dependabot security updates for the repository. */ status?: 'enabled' | 'disabled'; }; secret_scanning?: GithubSecurityAndAnalysisCodeSecurity; secret_scanning_push_protection?: GithubSecurityAndAnalysisCodeSecurity; secret_scanning_non_provider_patterns?: GithubSecurityAndAnalysisCodeSecurity; secret_scanning_ai_detection?: GithubSecurityAndAnalysisCodeSecurity; secret_scanning_delegated_alert_dismissal?: GithubSecurityAndAnalysisCodeSecurity; secret_scanning_delegated_bypass?: GithubSecurityAndAnalysisCodeSecurity; secret_scanning_delegated_bypass_options?: { /** The bypass reviewers for secret scanning delegated bypass */ reviewers?: Array<{ /** The ID of the team or role selected as a bypass reviewer */ reviewer_id: number; /** The type of the bypass reviewer */ reviewer_type: 'TEAM' | 'ROLE'; /** The bypass mode for the reviewer */ mode?: 'ALWAYS' | 'EXEMPT'; }>; }; } | null; /** User */ export interface GithubUser { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; user_view_type?: string; } /** The set of permissions for the GitHub app */ export interface GithubWebhookCheckSuiteCompletedCheckSuiteAppPermissions { actions?: 'read' | 'write'; administration?: 'read' | 'write'; checks?: 'read' | 'write'; content_references?: 'read' | 'write'; contents?: 'read' | 'write'; deployments?: 'read' | 'write'; discussions?: 'read' | 'write'; emails?: 'read' | 'write'; environments?: 'read' | 'write'; issues?: 'read' | 'write'; keys?: 'read' | 'write'; members?: 'read' | 'write'; metadata?: 'read' | 'write'; organization_administration?: 'read' | 'write'; organization_hooks?: 'read' | 'write'; organization_packages?: 'read' | 'write'; organization_plan?: 'read' | 'write'; organization_projects?: 'read' | 'write' | 'admin'; organization_secrets?: 'read' | 'write'; organization_self_hosted_runners?: 'read' | 'write'; organization_user_blocking?: 'read' | 'write'; packages?: 'read' | 'write'; pages?: 'read' | 'write'; pull_requests?: 'read' | 'write'; repository_hooks?: 'read' | 'write'; repository_projects?: 'read' | 'write' | 'admin'; secret_scanning_alerts?: 'read' | 'write'; secrets?: 'read' | 'write'; security_events?: 'read' | 'write'; security_scanning_alert?: 'read' | 'write'; single_file?: 'read' | 'write'; statuses?: 'read' | 'write'; vulnerability_alerts?: 'read' | 'write'; workflows?: 'read' | 'write'; } /** SimpleCommit */ export interface GithubSimpleCommit { /** Metaproperties for Git author/committer information. */ author: GithubCommitter; /** Metaproperties for Git author/committer information. */ committer: GithubCommitter; id: string; message: string; timestamp: string; tree_id: string; } /** Check Run Pull Request */ export interface GithubCheckRunPullRequest { base: GithubWebhookWorkflowRunRequestedWorkflowRunPullRequestsItemBase; head: GithubWebhookWorkflowRunRequestedWorkflowRunPullRequestsItemBase; id: number; number: number; url: string; } /** The set of permissions for the GitHub app */ export interface GithubWebhookCheckSuiteRequestedCheckSuiteAppPermissions { actions?: 'read' | 'write'; administration?: 'read' | 'write'; artifact_metadata?: 'read' | 'write'; attestations?: 'read' | 'write'; checks?: 'read' | 'write'; code_quality?: 'read' | 'write'; content_references?: 'read' | 'write'; contents?: 'read' | 'write'; copilot_requests?: 'write'; deployments?: 'read' | 'write'; discussions?: 'read' | 'write'; drives?: 'read' | 'write'; emails?: 'read' | 'write'; environments?: 'read' | 'write'; issues?: 'read' | 'write'; keys?: 'read' | 'write'; members?: 'read' | 'write'; merge_queues?: 'read' | 'write'; metadata?: 'read' | 'write'; models?: 'read' | 'write'; organization_administration?: 'read' | 'write'; organization_hooks?: 'read' | 'write'; organization_packages?: 'read' | 'write'; organization_plan?: 'read' | 'write'; organization_projects?: 'read' | 'write' | 'admin'; organization_secrets?: 'read' | 'write'; organization_self_hosted_runners?: 'read' | 'write'; organization_user_blocking?: 'read' | 'write'; packages?: 'read' | 'write'; pages?: 'read' | 'write'; pull_requests?: 'read' | 'write'; repository_hooks?: 'read' | 'write'; repository_projects?: 'read' | 'write' | 'admin'; secret_scanning_alerts?: 'read' | 'write'; secrets?: 'read' | 'write'; security_events?: 'read' | 'write'; security_scanning_alert?: 'read' | 'write'; single_file?: 'read' | 'write'; statuses?: 'read' | 'write'; vulnerability_alerts?: 'read' | 'write'; workflows?: 'read' | 'write'; } /** The set of permissions for the GitHub app */ export interface GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions { actions?: 'read' | 'write'; administration?: 'read' | 'write'; checks?: 'read' | 'write'; content_references?: 'read' | 'write'; contents?: 'read' | 'write'; deployments?: 'read' | 'write'; discussions?: 'read' | 'write'; emails?: 'read' | 'write'; environments?: 'read' | 'write'; issues?: 'read' | 'write'; keys?: 'read' | 'write'; members?: 'read' | 'write'; metadata?: 'read' | 'write'; organization_administration?: 'read' | 'write'; organization_hooks?: 'read' | 'write'; organization_packages?: 'read' | 'write'; organization_plan?: 'read' | 'write'; organization_projects?: 'read' | 'write'; organization_secrets?: 'read' | 'write'; organization_self_hosted_runners?: 'read' | 'write'; organization_user_blocking?: 'read' | 'write'; packages?: 'read' | 'write'; pages?: 'read' | 'write'; pull_requests?: 'read' | 'write'; repository_hooks?: 'read' | 'write'; repository_projects?: 'read' | 'write'; secret_scanning_alerts?: 'read' | 'write'; secrets?: 'read' | 'write'; security_events?: 'read' | 'write'; security_scanning_alert?: 'read' | 'write'; single_file?: 'read' | 'write'; statuses?: 'read' | 'write'; vulnerability_alerts?: 'read' | 'write'; workflows?: 'read' | 'write'; } export interface GithubWebhookDeploymentStatusCreatedWorkflowRunHeadRepository { archive_url?: string; assignees_url?: string; blobs_url?: string; branches_url?: string; collaborators_url?: string; comments_url?: string; commits_url?: string; compare_url?: string; contents_url?: string; contributors_url?: string; deployments_url?: string; description?: unknown; downloads_url?: string; events_url?: string; fork?: boolean; forks_url?: string; full_name?: string; git_commits_url?: string; git_refs_url?: string; git_tags_url?: string; hooks_url?: string; html_url?: string; id?: number; issue_comment_url?: string; issue_events_url?: string; issues_url?: string; keys_url?: string; labels_url?: string; languages_url?: string; merges_url?: string; milestones_url?: string; name?: string; node_id?: string; notifications_url?: string; owner?: { avatar_url?: string; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id?: number; login?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: string; url?: string; }; private?: boolean; pulls_url?: string; releases_url?: string; stargazers_url?: string; statuses_url?: string; subscribers_url?: string; subscription_url?: string; tags_url?: string; teams_url?: string; trees_url?: string; url?: string; } export interface GithubWebhookDeploymentStatusCreatedWorkflowRunReferencedWorkflowsItem { path: string; ref?: string; sha: string; } export interface GithubWebhookInstallationRepositoriesRemovedRepositoriesRemovedItem { full_name: string; /** Unique identifier of the repository */ id: number; /** The name of the repository. */ name: string; node_id: string; /** Whether the repository is private or public. */ private: boolean; } /** Reactions */ export interface GithubReactions { '+1': number; '-1': number; confused: number; eyes: number; heart: number; hooray: number; laugh: number; rocket: number; total_count: number; url: string; } /** User */ export interface GithubWebhookIssueCommentCreatedCommentUser { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; user_view_type?: string; } /** User */ export interface GithubWebhookIssueCommentCreatedIssueAssignee { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; user_view_type?: string; } /** Label */ export interface GithubLabel { /** 6-character hex code, without the leading #, identifying the color */ color: string; default: boolean; description: string | null; id: number; /** The name of the label. */ name: string; node_id: string; /** URL for the label */ url: string; } /** A collection of related issues and pull requests. */ export interface GithubWebhookIssueCommentCreatedIssueMilestone { closed_at: string | null; closed_issues: number; created_at: string; creator: GithubWebhookIssueCommentCreatedIssueAssignee | null; description: string | null; due_on: string | null; html_url: string; id: number; labels_url: string; node_id: string; /** The number of the milestone. */ number: number; open_issues: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; updated_at: string; url: string; } export interface GithubWebhookIssueCommentCreatedIssuePullRequest { diff_url?: string; html_url?: string; merged_at?: string | null; patch_url?: string; url?: string; } /** User */ export interface GithubWebhookIssueCommentCreatedIssueUser { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; user_view_type?: string; } export interface GithubWebhookIssueCommentCreatedIssue { active_lock_reason?: string | null; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees?: Array | null>; author_association?: string; body?: string | null; closed_at?: string | null; comments?: number; comments_url?: string; created_at?: string; events_url?: string; html_url?: string; id?: number; labels: Array; labels_url?: string; locked: boolean; milestone?: Record | null; node_id?: string; number?: number; performed_via_github_app?: Record | null; reactions?: GithubWebhookIssuesClosedIssueReactions; repository_url?: string; /** State of the issue; either 'open' or 'closed' */ state: 'open' | 'closed'; timeline_url?: string; title?: string; updated_at?: string; url?: string; user?: { avatar_url?: string; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id?: number; login?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: string; url?: string; }; } /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ export interface GithubApp { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookDeploymentStatusCreatedDeploymentPerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; } export interface GithubWebhookIssueCommentDeletedIssue { active_lock_reason?: string | null; assignee: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees?: Array | null>; author_association?: string; body?: string | null; closed_at?: string | null; comments?: number; comments_url?: string; created_at?: string; events_url?: string; html_url?: string; id?: number; labels: Array; labels_url?: string; locked: boolean; milestone?: Record | null; node_id?: string; number?: number; performed_via_github_app?: Record | null; reactions?: GithubWebhookIssuesClosedIssueReactions; repository_url?: string; /** State of the issue; either 'open' or 'closed' */ state: 'open' | 'closed'; timeline_url?: string; title?: string; updated_at?: string; url?: string; user?: GithubWebhookIssuesClosedIssueUser; } /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ export interface GithubWebhookIssueCommentEditedIssuePerformedViaGithubApp { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'reminder' | 'pull_request_review_thread' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; } /** The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. */ export interface GithubIssue { active_lock_reason: 'resolved' | 'off-topic' | 'too heated' | 'spam' | null; assignee?: GithubWebhookIssueCommentCreatedIssueAssignee | null; assignees: Array; /** How the author is associated with the repository. */ author_association: | 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; /** Contents of the issue */ body: string | null; closed_at: string | null; comments: number; comments_url: string; created_at: string; draft?: boolean; events_url: string; html_url: string; id: number; labels?: Array; labels_url: string; locked?: boolean; /** A collection of related issues and pull requests. */ milestone: GithubWebhookIssueCommentCreatedIssueMilestone | null; node_id: string; number: number; /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ performed_via_github_app?: { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: { actions?: 'read' | 'write'; administration?: 'read' | 'write'; checks?: 'read' | 'write'; content_references?: 'read' | 'write'; contents?: 'read' | 'write'; deployments?: 'read' | 'write'; discussions?: 'read' | 'write'; emails?: 'read' | 'write'; environments?: 'read' | 'write'; issues?: 'read' | 'write'; keys?: 'read' | 'write'; members?: 'read' | 'write'; metadata?: 'read' | 'write'; organization_administration?: 'read' | 'write'; organization_hooks?: 'read' | 'write'; organization_packages?: 'read' | 'write'; organization_plan?: 'read' | 'write'; organization_projects?: 'read' | 'write'; organization_secrets?: 'read' | 'write'; organization_self_hosted_runners?: 'read' | 'write'; organization_user_blocking?: 'read' | 'write'; packages?: 'read' | 'write'; pages?: 'read' | 'write'; pull_requests?: 'read' | 'write'; repository_hooks?: 'read' | 'write'; repository_projects?: 'read' | 'write'; secret_scanning_alerts?: 'read' | 'write'; secrets?: 'read' | 'write'; security_events?: 'read' | 'write'; security_scanning_alert?: 'read' | 'write'; single_file?: 'read' | 'write'; statuses?: 'read' | 'write'; team_discussions?: 'read' | 'write'; vulnerability_alerts?: 'read' | 'write'; workflows?: 'read' | 'write'; }; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; }; pull_request?: GithubWebhookIssueCommentCreatedIssuePullRequest; reactions: GithubReactions; repository_url: string; sub_issues_summary?: GithubSubIssuesSummary; issue_dependencies_summary?: GithubIssueDependenciesSummary; /** State of the issue; either 'open' or 'closed' */ state?: 'open' | 'closed'; state_reason?: string | null; timeline_url?: string; /** Title of the issue */ title: string; type?: GithubIssueType; updated_at: string; /** URL for the issue */ url: string; user: GithubWebhookIssueCommentCreatedIssueUser | null; } /** The set of permissions for the GitHub app */ export interface GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions { actions?: 'read' | 'write'; administration?: 'read' | 'write'; checks?: 'read' | 'write'; content_references?: 'read' | 'write'; contents?: 'read' | 'write'; deployments?: 'read' | 'write'; discussions?: 'read' | 'write'; emails?: 'read' | 'write'; environments?: 'read' | 'write'; issues?: 'read' | 'write'; keys?: 'read' | 'write'; members?: 'read' | 'write'; metadata?: 'read' | 'write'; organization_administration?: 'read' | 'write'; organization_hooks?: 'read' | 'write'; organization_packages?: 'read' | 'write'; organization_plan?: 'read' | 'write'; organization_projects?: 'read' | 'write' | 'admin'; organization_secrets?: 'read' | 'write'; organization_self_hosted_runners?: 'read' | 'write'; organization_user_blocking?: 'read' | 'write'; packages?: 'read' | 'write'; pages?: 'read' | 'write'; pull_requests?: 'read' | 'write'; repository_hooks?: 'read' | 'write'; repository_projects?: 'read' | 'write'; secret_scanning_alerts?: 'read' | 'write'; secrets?: 'read' | 'write'; security_events?: 'read' | 'write'; security_scanning_alert?: 'read' | 'write'; single_file?: 'read' | 'write'; statuses?: 'read' | 'write'; vulnerability_alerts?: 'read' | 'write'; workflows?: 'read' | 'write'; } /** The status of the issue, or `null` if it has none. Issue statuses are in preview and only available to accounts enrolled in the preview. */ export type GithubPlanningStatus = { /** The stable identifier of the planning status. */ id: number; /** The display name of the planning status, which may change in the future. */ name: string; /** A stable identifier for the category, such as `backlog`, `planned`, `started`, `completed`, `not_planned` or `duplicate`. Clients should expect new keys to be added. */ category: string; } | null; export interface GithubWebhookIssuesClosedIssueReactions { '+1'?: number; '-1'?: number; confused?: number; eyes?: number; heart?: number; hooray?: number; laugh?: number; rocket?: number; total_count?: number; url?: string; } export interface GithubWebhookIssuesClosedIssueUser { avatar_url?: string; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id?: number; login?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: string; url?: string; user_view_type?: string; } /** A collection of related issues and pull requests. */ export interface GithubWebhookIssuesDeletedIssueMilestone { closed_at: string | null; closed_issues: number; created_at: string; creator: GithubUser | null; description: string | null; due_on: string | null; html_url: string; id: number; labels_url: string; node_id: string; /** The number of the milestone. */ number: number; open_issues: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; updated_at: string; url: string; } /** User */ export interface GithubWebhookIssuesDemilestonedIssueAssignee { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; } /** Label */ export interface GithubWebhookIssuesDemilestonedIssueLabelsItem { /** 6-character hex code, without the leading #, identifying the color */ color: string; default: boolean; description: string | null; id: number; /** The name of the label. */ name: string; node_id: string; /** URL for the label */ url: string; } /** A collection of related issues and pull requests. */ export interface GithubWebhookIssuesDemilestonedIssueMilestone { closed_at: string | null; closed_issues: number; created_at: string; creator: { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; user_view_type?: string; }; description: string | null; due_on: string | null; html_url: string; id: number; labels_url: string; node_id: string; /** The number of the milestone. */ number: number; open_issues: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; updated_at: string; url: string; } /** User */ export interface GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; user_view_type?: string; } /** Reactions */ export interface GithubWebhookIssuesDemilestonedIssueReactions { '+1': number; '-1': number; confused: number; eyes: number; heart: number; hooray: number; laugh: number; rocket: number; total_count: number; url: string; } /** User */ export interface GithubWebhookIssuesDemilestonedIssueUser { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; user_view_type?: string; } export interface GithubWebhookIssuesEditedChangesBody { /** The previous version of the body. */ from: string; } /** User */ export interface GithubWebhookIssuesEditedIssueAssigneesItem { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization' | 'Mannequin'; url?: string; } /** GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first c... */ export interface GithubWebhookIssuesEditedIssuePerformedViaGithubApp { created_at: string | null; description: string | null; /** The list of events for the GitHub app */ events?: Array< | 'branch_protection_rule' | 'check_run' | 'check_suite' | 'code_scanning_alert' | 'commit_comment' | 'content_reference' | 'create' | 'delete' | 'deployment' | 'deployment_review' | 'deployment_status' | 'deploy_key' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issues' | 'issue_comment' | 'label' | 'member' | 'membership' | 'milestone' | 'organization' | 'org_block' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'push' | 'registry_package' | 'release' | 'repository' | 'repository_dispatch' | 'secret_scanning_alert' | 'star' | 'status' | 'team' | 'team_add' | 'watch' | 'workflow_dispatch' | 'workflow_run' | 'security_and_analysis' | 'pull_request_review_thread' | 'reminder' >; external_url: string | null; html_url: string; /** Unique identifier of the GitHub app */ id: number | null; /** The name of the GitHub app */ name: string; node_id: string; owner: GithubUser | null; /** The set of permissions for the GitHub app */ permissions?: GithubWebhookIssuesClosedIssuePerformedViaGithubAppPermissions; /** The slug name of the GitHub app */ slug?: string; updated_at: string | null; } /** The selected option details. Present for single_select field types. */ export interface GithubWebhookIssuesFieldAddedIssueFieldValueOption { id?: number; name?: string; color?: string; description?: string | null; } export interface GithubWebhookIssuesFieldAddedIssueFieldValueOptionsItem { id?: number; name?: string; color?: string; description?: string | null; } /** Label */ export interface GithubWebhookIssuesLabeledIssueLabelsItem { /** 6-character hex code, without the leading #, identifying the color */ color: string; default: boolean; description: string | null; /** Timestamp indicating when the label was archived, or `null` if it has not been archived. */ archived_at: string | null; /** The user who archived the label, or `null` if it has not been archived. */ archived_by: GithubSimpleUser | null; id: number; /** The name of the label. */ name: string; node_id: string; /** URL for the label */ url: string; } /** A collection of related issues and pull requests. */ export interface GithubWebhookIssuesLockedIssueMilestone { closed_at: string | null; closed_issues: number; created_at: string; creator: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; description: string | null; due_on: string | null; html_url: string; id: number; labels_url: string; node_id: string; /** The number of the milestone. */ number: number; open_issues: number; /** The state of the milestone. */ state: 'open' | 'closed'; /** The title of the milestone. */ title: string; updated_at: string; url: string; } /** User */ export interface GithubWebhookIssuesLockedIssueUser { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; user_view_type?: string; } /** User */ export interface GithubWebhookIssuesMilestonedIssueAssignee { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; } /** License */ export interface GithubLicense { key: string; name: string; node_id: string; spdx_id: string; url: string | null; } export interface GithubWebhookIssuesOpenedChangesOldRepositoryPermissions { admin: boolean; maintain?: boolean; pull: boolean; push: boolean; triage?: boolean; } /** A git repository */ export interface GithubWebhookIssuesTransferredChangesNewRepository { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. */ custom_properties?: Record; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; } export interface GithubWebhookPullRequestAssignedPullRequestLinks { comments: GithubWebhookPullRequestAssignedPullRequestLinksComments; commits: GithubWebhookPullRequestAssignedPullRequestLinksComments; html: GithubWebhookPullRequestAssignedPullRequestLinksComments; issue: GithubWebhookPullRequestAssignedPullRequestLinksComments; review_comment: GithubWebhookPullRequestAssignedPullRequestLinksComments; review_comments: GithubWebhookPullRequestAssignedPullRequestLinksComments; self: GithubWebhookPullRequestAssignedPullRequestLinksComments; statuses: GithubWebhookPullRequestAssignedPullRequestLinksComments; } /** The status of auto merging a pull request. */ export interface GithubPullRequestAutoMerge { /** Commit message for the merge commit. */ commit_message: string | null; /** Title for the merge commit message. */ commit_title: string | null; enabled_by: GithubUser | null; /** The merge method to use. */ merge_method: 'merge' | 'squash' | 'rebase'; } export interface GithubWebhookPullRequestAssignedPullRequestBase { label: string; ref: string; /** A git repository */ repo: GithubWebhookPullRequestUnassignedPullRequestBaseRepo; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } export interface GithubWebhookPullRequestAssignedPullRequestHead { label: string | null; ref: string; /** A git repository */ repo: GithubWebhookPullRequestAssignedPullRequestHeadRepo | null; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } /** Groups of organization members that gives permissions on specified repositories. */ export interface GithubTeam { deleted?: boolean; /** Description of the team */ description: string | null; html_url: string; /** Unique identifier of the team */ id: number; members_url: string; /** Name of the team */ name: string; node_id: string; parent?: GithubTeamParent | null; /** Permission that the team will have for its repositories */ permission: string; privacy: 'open' | 'closed' | 'secret'; repositories_url: string; slug: string; /** URL for the team */ url: string; } /** Groups of organization members that gives permissions on specified repositories. */ export interface GithubWebhookPullRequestAssignedPullRequestRequestedTeamsItem { deleted?: boolean; /** Description of the team */ description?: string | null; html_url?: string; /** Unique identifier of the team */ id: number; members_url?: string; /** Name of the team */ name: string; node_id?: string; parent?: GithubTeamParent | null; /** Permission that the team will have for its repositories */ permission?: string; privacy?: 'open' | 'closed' | 'secret'; repositories_url?: string; slug?: string; /** URL for the team */ url?: string; } /** User */ export interface GithubWebhookPullRequestAutoMergeDisabledPullRequestAssigneesItem { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id: number; login: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; } export interface GithubWebhookPullRequestEditedChangesBaseRef { from: string; } export interface GithubWebhookPullRequestEditedChangesBody { /** The previous version of the body if the action was `edited`. */ from: string; } export interface GithubWebhookPullRequestReviewCommentCreatedCommentLinks { html: GithubWebhookPullRequestAssignedPullRequestLinksComments; pull_request: GithubWebhookPullRequestAssignedPullRequestLinksComments; self: GithubWebhookPullRequestAssignedPullRequestLinksComments; } export interface GithubWebhookPullRequestReviewCommentDeletedPullRequestHead { label: string; ref: string; /** A git repository */ repo: GithubWebhookPullRequestAssignedPullRequestHeadRepo | null; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } export interface GithubWebhookPullRequestReviewDismissedReviewLinks { html: GithubWebhookPullRequestAssignedPullRequestLinksComments; pull_request: GithubWebhookPullRequestAssignedPullRequestLinksComments; } export interface GithubWebhookPullRequestReviewThreadResolvedPullRequestBase { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } /** The status of auto merging a pull request. */ export interface GithubWebhookPullRequestReviewThreadUnresolvedPullRequestAutoMerge { /** Commit message for the merge commit. */ commit_message: string | null; /** Title for the merge commit message. */ commit_title: string; enabled_by: GithubUser | null; /** The merge method to use. */ merge_method: 'merge' | 'squash' | 'rebase'; } /** A git repository */ export interface GithubWebhookPullRequestUnassignedPullRequestBaseRepo { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; } /** Metaproperties for Git author/committer information. */ export interface GithubCommitter { date?: string; email: string | null; /** The git author's name. */ name: string; username?: string; } /** User */ export interface GithubWebhookStatusCommitAuthor { avatar_url?: string; deleted?: boolean; email?: string | null; events_url?: string; followers_url?: string; following_url?: string; gists_url?: string; gravatar_id?: string; html_url?: string; id?: number; login?: string; name?: string; node_id?: string; organizations_url?: string; received_events_url?: string; repos_url?: string; site_admin?: boolean; starred_url?: string; subscriptions_url?: string; type?: 'Bot' | 'User' | 'Organization'; url?: string; } export interface GithubWebhookStatusCommitCommitAuthor { date: string; email?: string; name?: string; } /** SimpleCommit */ export interface GithubWebhookWorkflowRunCompletedWorkflowRunHeadCommit { /** Metaproperties for Git author/committer information. */ author: GithubWebhookWorkflowRunCompletedWorkflowRunHeadCommitAuthor; /** Metaproperties for Git author/committer information. */ committer: GithubWebhookWorkflowRunCompletedWorkflowRunHeadCommitAuthor; id: string; message: string; timestamp: string; tree_id: string; } /** Repository Lite */ export interface GithubRepositoryLite { archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; description: string | null; downloads_url: string; events_url: string; fork: boolean; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; owner: GithubWebhookIssuesDemilestonedIssuePerformedViaGithubAppOwner | null; /** Whether the repository is private or public. */ private: boolean; pulls_url: string; releases_url: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; url: string; } export type GithubWebhookWorkflowRunCompletedWorkflowRunPullRequestsItem = { base: GithubWebhookWorkflowRunCompletedWorkflowRunPullRequestsItemBase; head: GithubWebhookWorkflowRunCompletedWorkflowRunPullRequestsItemBase; id: number; number: number; url: string; } | null; export interface GithubWebhookWorkflowRunCompletedWorkflowRunReferencedWorkflowsItem { path: string; ref?: string; sha: string; } /** Repository Lite */ export interface GithubWebhookWorkflowRunRequestedWorkflowRunHeadRepository { archive_url: string; assignees_url: string; blobs_url: string; branches_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; deployments_url: string; description: string | null; downloads_url: string; events_url: string; fork: boolean; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; languages_url: string; merges_url: string; milestones_url: string; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; owner: GithubUser | null; /** Whether the repository is private or public. */ private: boolean; pulls_url: string; releases_url: string; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; tags_url: string; teams_url: string; trees_url: string; url: string; } export interface GithubWebhookWorkflowRunRequestedWorkflowRunPullRequestsItemBase { ref: string; repo: { id: number; name: string; url: string; }; sha: string; } export interface GithubRepositoryWebhooksPermissions { admin: boolean; pull: boolean; triage?: boolean; push: boolean; maintain?: boolean; } export interface GithubRepositoryWebhooksTemplateRepositoryPermissions { admin?: boolean; maintain?: boolean; push?: boolean; triage?: boolean; pull?: boolean; } /** The set of permissions for the GitHub app */ export interface GithubNullableIntegrationPermissions { issues?: string; checks?: string; metadata?: string; contents?: string; deployments?: string; } export interface GithubWebhooksPullRequest5Base { label: string; ref: string; /** A git repository */ repo: { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; }; sha: string; user: GithubWebhookIssueCommentCreatedCommentUser | null; } export interface GithubPullRequestMinimalHead { ref: string; sha: string; repo: { id: number; url: string; name: string; }; } export interface GithubPullRequestHead { label: string; ref: string; repo: GithubRepository; sha: string; user: GithubSimpleUser; } export interface GithubSecurityAndAnalysisCodeSecurity { status?: 'enabled' | 'disabled'; } /** Link */ export interface GithubWebhookPullRequestAssignedPullRequestLinksComments { href: string; } /** A git repository */ export interface GithubWebhookPullRequestAssignedPullRequestHeadRepo { /** Whether to allow auto-merge for pull requests. */ allow_auto_merge?: boolean; /** Whether to allow private forks */ allow_forking?: boolean; /** Whether to allow merge commits for pull requests. */ allow_merge_commit?: boolean; /** Whether to allow rebase merges for pull requests. */ allow_rebase_merge?: boolean; /** Whether to allow squash merges for pull requests. */ allow_squash_merge?: boolean; allow_update_branch?: boolean; archive_url: string; /** Whether the repository is archived. */ archived: boolean; assignees_url: string; blobs_url: string; branches_url: string; clone_url: string; collaborators_url: string; comments_url: string; commits_url: string; compare_url: string; contents_url: string; contributors_url: string; created_at: number | string; /** The default branch of the repository. */ default_branch: string; /** Whether to delete head branches when pull requests are merged */ delete_branch_on_merge?: boolean; deployments_url: string; description: string | null; /** Returns whether or not this repository is disabled. */ disabled?: boolean; downloads_url: string; events_url: string; fork: boolean; forks: number; forks_count: number; forks_url: string; full_name: string; git_commits_url: string; git_refs_url: string; git_tags_url: string; git_url: string; /** Whether downloads are enabled. */ has_downloads: boolean; /** Whether issues are enabled. */ has_issues: boolean; has_pages: boolean; /** Whether projects are enabled. */ has_projects: boolean; /** Whether the wiki is enabled. */ has_wiki: boolean; /** Whether discussions are enabled. */ has_discussions: boolean; /** Whether pull requests are enabled. */ has_pull_requests?: boolean; /** The policy controlling who can create pull requests: all or collaborators_only. */ pull_request_creation_policy?: 'all' | 'collaborators_only'; homepage: string | null; hooks_url: string; html_url: string; /** Unique identifier of the repository */ id: number; is_template?: boolean; issue_comment_url: string; issue_events_url: string; issues_url: string; keys_url: string; labels_url: string; language: string | null; languages_url: string; license: GithubLicense | null; master_branch?: string; /** The default value for a merge commit message. - `PR_TITLE` - default to the pull request's title. - `PR_BODY` - default to the pull request's body. - `BLANK` - default to a blank commit message. */ merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; /** The default value for a merge commit title. - `PR_TITLE` - default to the pull request's title. - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). */ merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; merges_url: string; milestones_url: string; mirror_url: string | null; /** The name of the repository. */ name: string; node_id: string; notifications_url: string; open_issues: number; open_issues_count: number; organization?: string; owner: GithubUser | null; permissions?: GithubWebhookIssuesOpenedChangesOldRepositoryPermissions; /** Whether the repository is private or public. */ private: boolean; public?: boolean; pulls_url: string; pushed_at: number | string | null; releases_url: string; role_name?: string | null; size: number; /** The default value for a squash merge commit message: - `PR_BODY` - default to the pull request's body. - `COMMIT_MESSAGES` - default to the branch's commit messages. - `BLANK` - default to a blank commit message. */ squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; /** The default value for a squash merge commit title: - `PR_TITLE` - default to the pull request's title. - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). */ squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; ssh_url: string; stargazers?: number; stargazers_count: number; stargazers_url: string; statuses_url: string; subscribers_url: string; subscription_url: string; svn_url: string; tags_url: string; teams_url: string; topics: Array; trees_url: string; updated_at: string; url: string; /** Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. */ use_squash_pr_title_as_default?: boolean; visibility: 'public' | 'private' | 'internal'; watchers: number; watchers_count: number; /** Whether to require contributors to sign off on web-based commits */ web_commit_signoff_required?: boolean; } export interface GithubTeamParent { /** Description of the team */ description: string | null; html_url: string; /** Unique identifier of the team */ id: number; members_url: string; /** Name of the team */ name: string; node_id: string; /** Permission that the team will have for its repositories */ permission: string; privacy: 'open' | 'closed' | 'secret'; repositories_url: string; slug: string; /** URL for the team */ url: string; } /** Metaproperties for Git author/committer information. */ export interface GithubWebhookWorkflowRunCompletedWorkflowRunHeadCommitAuthor { date?: string; email: string | null; /** The git author's name. */ name: string; username?: string; } export interface GithubWebhookWorkflowRunCompletedWorkflowRunPullRequestsItemBase { ref: string; repo: { id: number; name: string; url: string; }; sha: string; }