Skip to content

Commit 9c5dbb3

Browse files
committed
Add autocomplete PR flag for OneLocBuild template (dotnet#7228)
1 parent 2d016bd commit 9c5dbb3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/OneLocBuild.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ The parameters that can be passed to the template are as follows:
7272
| `RepoType` | `'gitHub'` | Should be set to `'gitHub'` for GitHub-based repositories and `'azureDevOps'` for Azure DevOps-based ones. |
7373
| `SourcesDirectory` | `$(Build.SourcesDirectory)` | This is the root directory for your repository source code. |
7474
| `CreatePr` | `true` | When set to `true`, instructs the OneLocBuild task to make a PR back to the source repository containing the localized files. |
75+
| `AutoCompletePr` | `false` | When set to `true`, instructs the OneLocBuild task to autocomplete the created PR. Requires permissions to bypass any checks on the main branch. |
7576
| `UseCheckedInLocProjectJson` | `false` | When set to `true`, instructs the LocProject.json generation script to use build-time validation rather than build-time generation, as described above. |
7677
| `LanguageSet` | `VS_Main_Languages` | This defines the `LanguageSet` of the LocProject.json as described in the [OneLocBuild task documentation](https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task?anchor=languageset%2C-languages-(required)). |
7778
| `LclSource` | `LclFilesInRepo` | This passes the `LclSource` input to the OneLocBuild task as described in [its documentation](https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/107/Localization-with-OneLocBuild-Task?anchor=languageset%2C-languages-(required)). For most repos, this should be set to `LclFilesfromPackage`. |

eng/common/templates/job/onelocbuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ parameters:
1111

1212
SourcesDirectory: $(Build.SourcesDirectory)
1313
CreatePr: true
14+
AutoCompletePr: false
1415
UseCheckedInLocProjectJson: false
1516
LanguageSet: VS_Main_Languages
1617
LclSource: lclFilesInRepo
@@ -54,6 +55,8 @@ jobs:
5455
lclSource: ${{ parameters.LclSource }}
5556
lclPackageId: ${{ parameters.LclPackageId }}
5657
isCreatePrSelected: ${{ parameters.CreatePr }}
58+
${{ if eq(parameters.CreatePr, true) }}:
59+
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
5760
packageSourceAuth: patAuth
5861
patVariable: ${{ parameters.CeapexPat }}
5962
${{ if eq(parameters.RepoType, 'gitHub') }}:

0 commit comments

Comments
 (0)