Skip to content

MergeHunk

Source code in docs_src/capo_codecommit/types/merge_hunk.py
class MergeHunk(TypedDict, closed=True):
    is_conflict: "capo_codecommit.types.is_hunk_conflict.IsHunkConflict"
    """<p>A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.</p>"""
    source: NotRequired["capo_codecommit.types.merge_hunk_detail.MergeHunkDetail"]
    """<p>Information about the merge hunk in the source of a merge or pull request.</p>"""
    destination: NotRequired["capo_codecommit.types.merge_hunk_detail.MergeHunkDetail"]
    """<p>Information about the merge hunk in the destination of a merge or pull request.</p>"""
    base: NotRequired["capo_codecommit.types.merge_hunk_detail.MergeHunkDetail"]
    """<p>Information about the merge hunk in the base of a merge or pull request.</p>"""

base instance-attribute

base: NotRequired[MergeHunkDetail]

Information about the merge hunk in the base of a merge or pull request.

destination instance-attribute

destination: NotRequired[MergeHunkDetail]

Information about the merge hunk in the destination of a merge or pull request.

is_conflict instance-attribute

is_conflict: IsHunkConflict

A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.

source instance-attribute

source: NotRequired[MergeHunkDetail]

Information about the merge hunk in the source of a merge or pull request.