From 0ba70558734bcd63f61e0ed485857604e96a2272 Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Thu, 26 Sep 2019 09:29:33 -0400 Subject: ci: Add private mergebot CI templates --- .ci/templates/mergebot-private.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .ci/templates/mergebot-private.yml (limited to '.ci/templates/mergebot-private.yml') diff --git a/.ci/templates/mergebot-private.yml b/.ci/templates/mergebot-private.yml new file mode 100644 index 000000000..a673c5b01 --- /dev/null +++ b/.ci/templates/mergebot-private.yml @@ -0,0 +1,23 @@ +parameters: + matchLabel: 'dummy-merge' + matchLabelPublic: 'dummy-merge' + +steps: + - script: mkdir $(System.DefaultWorkingDirectory)/patches && pip install requests urllib3 + displayName: 'Prepare Environment' + - script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh + displayName: 'Apply Git Configuration' + - task: PythonScript@0 + displayName: 'Discover, Download, and Apply Patches' + inputs: + scriptSource: 'filePath' + scriptPath: '.ci/scripts/merge/apply-patches-by-label.py' + arguments: '${{ parameters.matchLabelPublic }} patches-public' + workingDirectory: '$(System.DefaultWorkingDirectory)' + - task: PythonScript@0 + displayName: 'Discover, Download, and Apply Patches' + inputs: + scriptSource: 'filePath' + scriptPath: '.ci/scripts/merge/apply-patches-by-label-private.py' + arguments: '$(PrivateMergeUser) ${{ parameters.matchLabel }} patches-private' + workingDirectory: '$(System.DefaultWorkingDirectory)' -- cgit v1.2.3