summaryrefslogtreecommitdiff
path: root/.ci/templates/mergebot.yml
blob: a4c5c2a28c9c5afb7787b5a9151b9e76c781ee59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
parameters:
  matchLabel: '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.matchLabel }} Tagged patches'
      workingDirectory: '$(System.DefaultWorkingDirectory)'