pub async fn get_commits<T>(
    client: &T,
    owner: impl Into<String>,
    repo: impl Into<String>,
    options: Option<&GetCommitsBody>
) -> Result<Commits, GithubRestError>where
    T: Requester,
Expand description

List commits Signature verification object

The response will include a verification object that describes the result of verifying the commit’s signature. The following fields are included in the verification object:

NameTypeDescription
verifiedbooleanIndicates whether GitHub considers the signature
in this commit to be verified.reason
verified value. Possible values and their meanings are enumerated in table
below.signature
the commit.payload

These are the possible values for reason in the verification object:

ValueDescription
expired_keyThe key that made the signature is expired.
not_signing_keyThe “signing” flag is not among the usage flags in the
GPG key that made the signature.
communicating with the signature verification service.
gpgverify_unavailableThe signature verification service is currently
unavailable.
unknown_signature_typeA non-PGP signature was found in the commit.
no_userNo user was associated with the committer email address in
the commit.
commit was associated with a user, but the email address is not verified on
her/his account.
commit is not included in the identities of the PGP key that made the
signature.
registered with any user’s account.
error parsing the signature.
cryptographically verified using the key whose key-id was found in the
signature.
is considered to be verified.