microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
eng/pipelines/pull-request-consistency.yml
19lines · modecode
| 1 | steps: |
| 2 | - checkout: self |
| 3 | submodules: true |
| 4 | |
| 5 | - task: NodeTool@0 |
| 6 | inputs: |
| 7 | versionSpec: "16.x" |
| 8 | displayName: Install Node.js |
| 9 | |
| 10 | - script: node common/scripts/install-run-rush.js install |
| 11 | displayName: Install JavaScript Dependencies |
| 12 | |
| 13 | - script: node common/scripts/install-run-rush.js change -v |
| 14 | condition: and(succeeded(), not(or(startsWith(variables['System.PullRequest.SourceBranch'], 'publish/'), startsWith(variables['System.PullRequest.SourceBranch'], 'backmerge/')))) |
| 15 | displayName: Check that changelog has been provided |
| 16 | |
| 17 | - script: node common/scripts/install-run-rush.js publish --apply && node eng/scripts/check-for-changed-files.js publish |
| 18 | condition: and(succeeded(), eq(startsWith(variables['System.PullRequest.SourceBranch'], 'publish/'), true)) |
| 19 | displayName: Check that publish PR isn't missing changes |
| 20 | |