You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow additional mergeable statuses to skip upload
We have some statuses that we know are safe to skip to upload when
the git diff would be empty for github_pr_destination. But there
might be other statuses where we want to skip too. This allows
users to add additional statuses to skip. The inmediate usage
is to skip when "BLOCKED". We think this would make sense in
general when this GitHub destination is not the SoT, but we want
to have the flexibility to enable it for individual use cases.
Update update docs script to use java 11 (otherwise it fails)
Change-Id: Ie21d0b1b46a2d28f930f834de0f2b1e93099ec3b
@@ -2547,6 +2547,7 @@ destination_ref | `string`<br><p>Destination reference for the change.</p>
2547
2547
pr_branch | `string` or `NoneType`<br><p>Customize the pull request branch. Any variable present in the message in the form of ${CONTEXT_REFERENCE} will be replaced by the corresponding stable reference (head, PR number, Gerrit change number, etc.).</p>
2548
2548
partial_fetch | `bool`<br><p>This is an experimental feature that only works for certain origin globs.</p>
2549
2549
allow_empty_diff | `bool`<br><p>By default, copybara migrates changes without checking existing PRs. If set, copybara will skip pushing a change to an existing PR only if the git three of the pending migrating change is the same as the existing PR.</p>
2550
+
empty_diff_merge_statuses | `sequence of string`<br><p>By default, if `allow_empty_diff = False` is set, Copybara will also check the **experimental** GitHub field `mergeable status` to decide if it uploads or not. For example if status is 'CLEAN', 'DRAFT', 'HAS_HOOKS' or 'BEHIND', it assumes that the uploaded content is up to date. This field allows to add additional states that the PR could be in where we skip uploading, for example 'BLOCKED'. The statuses values are described at: https://docs.github.com/en/github-ae@latest/graphql/reference/enums#mergestatestatus. **Note that this field is experimental and is subject to change by GitHub without notice**. Please consult Copybara team before using this field</p>
2550
2551
title | `string` or `NoneType`<br><p>When creating (or updating if `update_description` is set) a pull request, use this title. By default it uses the change first line. This field accepts a template with labels. For example: `"Change ${CONTEXT_REFERENCE}"`</p>
2551
2552
body | `string` or `NoneType`<br><p>When creating (or updating if `update_description` is set) a pull request, use this body. By default it uses the change summary. This field accepts a template with labels. For example: `"Change ${CONTEXT_REFERENCE}"`</p>
2552
2553
integrates | `sequence of git_integrate` or `NoneType`<br><p>Integrate changes from a url present in the migrated change label. Defaults to a semi-fake merge if COPYBARA_INTEGRATE_REVIEW label is present in the message</p>
0 commit comments