-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAzureDevopsCreatePrV1Tests.CreatePullRequestScenario01.testfile.yaml
More file actions
51 lines (41 loc) · 1.43 KB
/
AzureDevopsCreatePrV1Tests.CreatePullRequestScenario01.testfile.yaml
File metadata and controls
51 lines (41 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
context:
- type: evaluate-script@1
content: |-
project_id = "11111111-F973-4BE7-B39A-A9F85B18C75E";
devops_guid_reviewer_1 = "22222222-F973-4BE7-B39A-A9F85B18C75E";
now = date.parse "2016/01/05" | date.to_string "%Y-%m-%d"; # use a fixed date instead of date.now
action-menu:
# begin-snippet: azure-devops-create-pr@1-scenario01
- type: azure-devops-create-pr@1
project-id: "{{ project_id }}"
name: Create feature to develop ({{ repository.branch | string.replace "feature/" "" | string.strip | string.truncate 20 ".." }})
pr-title: 'Release {{ now }}'
to-branch: develop
reviewer-ids:
- "{{ devops_guid_reviewer_1 }}"
- "33333333-F973-4BE7-B39A-A9F85B18C75E"
draft-pr: false
include-work-items: true
open-in-browser: true
auto-complete:
merge-strategy: Squash
delete-source-branch: true
transition-work-items: true
active: 'repository.branch | string.starts_with "feature/"'
# end-snippet
# begin-snippet: azure-devops-create-pr@1-scenario02
- type: azure-devops-create-pr@1
project-id: "{{ project_id }}"
name: Complete feature
pr-title: 'Feature {{ repository.branch | string.replace "feature/" "" }}'
to-branch: develop
reviewer-ids:
- "{{ devops_guid_reviewer_1 }}"
draft-pr: repository.banch == "develop"
active: true
# end-snippet
# begin-snippet: azure-devops-create-pr@1-scenario03
- type: azure-devops-create-pr@1
project-id: "{{ project_id }}"
to-branch: develop
# end-snippet