pub struct WebhookPush {Show 16 fields
pub after: String,
pub base_ref: Option<String>,
pub before: String,
pub commits: Vec<Commit>,
pub compare: String,
pub created: bool,
pub deleted: bool,
pub enterprise: Option<Box<EnterpriseWebhooks>>,
pub forced: bool,
pub head_commit: Option<Box<Commit1>>,
pub installation: Option<Box<SimpleInstallation>>,
pub organization: Option<Box<OrganizationSimpleWebhooks>>,
pub pusher: Box<Committer1>,
pub ref: String,
pub repository: Box<Repository2>,
pub sender: Option<Box<SimpleUserWebhooks>>,
}
Fields§
§after: String
The SHA of the most recent commit on ref
after the push.
base_ref: Option<String>
§before: String
The SHA of the most recent commit on ref
before the push.
commits: Vec<Commit>
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, you can use the Commits API to fetch additional commits.
compare: 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 the after
commit. Otherwise, this shows all commits until the after
commit.
created: bool
Whether this push created the ref
.
deleted: bool
Whether this push deleted the ref
.
enterprise: Option<Box<EnterpriseWebhooks>>
§forced: bool
Whether this push was a force push of the ref
.
head_commit: Option<Box<Commit1>>
§installation: Option<Box<SimpleInstallation>>
§organization: Option<Box<OrganizationSimpleWebhooks>>
§pusher: Box<Committer1>
§ref: String
The full git ref that was pushed. Example: refs/heads/main
or refs/tags/v3.14.1
.
repository: Box<Repository2>
§sender: Option<Box<SimpleUserWebhooks>>
Implementations§
Trait Implementations§
Source§impl Clone for WebhookPush
impl Clone for WebhookPush
Source§fn clone(&self) -> WebhookPush
fn clone(&self) -> WebhookPush
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more