Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data RequestMetadata = RequestMetadata' {}
- newRequestMetadata :: RequestMetadata
- requestMetadata_eventInfo :: Lens' RequestMetadata (Maybe EventInfo)
- requestMetadata_requestId :: Lens' RequestMetadata (Maybe Text)
- requestMetadata_requester :: Lens' RequestMetadata (Maybe Text)
- requestMetadata_vendorName :: Lens' RequestMetadata (Maybe VendorName)
Documentation
data RequestMetadata Source #
Metadata that is associated with a code review. This applies to both pull request and repository analysis code reviews.
See: newRequestMetadata
smart constructor.
RequestMetadata' | |
|
Instances
newRequestMetadata :: RequestMetadata Source #
Create a value of RequestMetadata
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eventInfo:RequestMetadata'
, requestMetadata_eventInfo
- Information about the event associated with a code review.
$sel:requestId:RequestMetadata'
, requestMetadata_requestId
- The ID of the request. This is required for a pull request code review.
$sel:requester:RequestMetadata'
, requestMetadata_requester
- An identifier, such as a name or account ID, that is associated with the
requester. The Requester
is used to capture the author/actor
name
of the event request.
$sel:vendorName:RequestMetadata'
, requestMetadata_vendorName
- The name of the repository vendor used to upload code to an S3 bucket
for a CI/CD code review. For example, if code and artifacts are
uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from
a GitHub repository, then the repository association's ProviderType
is S3Bucket
and the CI/CD repository vendor name is GitHub. For more
information, see the definition for ProviderType
in
RepositoryAssociation.
requestMetadata_eventInfo :: Lens' RequestMetadata (Maybe EventInfo) Source #
Information about the event associated with a code review.
requestMetadata_requestId :: Lens' RequestMetadata (Maybe Text) Source #
The ID of the request. This is required for a pull request code review.
requestMetadata_requester :: Lens' RequestMetadata (Maybe Text) Source #
An identifier, such as a name or account ID, that is associated with the
requester. The Requester
is used to capture the author/actor
name
of the event request.
requestMetadata_vendorName :: Lens' RequestMetadata (Maybe VendorName) Source #
The name of the repository vendor used to upload code to an S3 bucket
for a CI/CD code review. For example, if code and artifacts are
uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from
a GitHub repository, then the repository association's ProviderType
is S3Bucket
and the CI/CD repository vendor name is GitHub. For more
information, see the definition for ProviderType
in
RepositoryAssociation.