Skip to content

Commit f1f5c81

Browse files
authored
Update the pipeline of sync-tools-folder to generation branch (#19646)
* Update the pipeline of sync-tools-folder to generation branch * Update the pipeline of sync-tools-folder to generation branch
1 parent 6f9b397 commit f1f5c81

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.azure-pipelines/sync-tools-folder.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,36 @@ jobs:
3838
script: >-
3939
./tools/SyncFromMainBranch.ps1 -BranchName $(BranchName) -GithubToken $(GithubToken)
4040
pwsh: true
41+
42+
- pwsh: |
43+
$Headers = @{"Accept" = "application/vnd.github+json"; "Authorization" = "Bearer $(GithubToken)"}
44+
$PrBody = @'
45+
<!-- DO NOT DELETE THIS TEMPLATE -->
46+
47+
## Description
48+
49+
<!-- Please add a brief description of the changes made in this PR. If you have an ongoing or finished cmdlet design, please paste the link below. -->
50+
51+
## Checklist
52+
53+
- [x] Check this box to confirm: **I have read the [_Submitting Changes_](../blob/main/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](../blob/main/CONTRIBUTING.md) and reviewed the following information:**
54+
55+
* **SHOULD** select appropriate branch. Cmdlets from Autorest.PowerShell should go to [`generation`](https://github.com/Azure/azure-powershell/tree/generation) branch.
56+
* **SHOULD** make the title of PR clear and informative, and in the present imperative tense.
57+
* **SHOULD** update `ChangeLog.md` file(s) appropriately
58+
* For any service, the `ChangeLog.md` file can be found at `src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md`
59+
* A snippet outlining the change(s) made in the PR should be written under the `## Upcoming Release` header in the past tense. Add changelog in description section if PR goes into [`generation`](https://github.com/Azure/azure-powershell/tree/generation) branch.
60+
* Should **not** change `ChangeLog.md` if no new release is required, such as fixing test case only.
61+
* **SHOULD** have approved design review for the changes in [this repository](https://github.com/Azure/azure-powershell-cmdlet-review-pr) ([_Microsoft internal only_](../blob/main/CONTRIBUTING.md#onboarding)) with following situations
62+
* Create new module from scratch
63+
* Create new resource types which are not easy to conform to [Azure PowerShell Design Guidelines](../blob/main/documentation/development-docs/design-guidelines)
64+
* Create new resource type which name doesn't use module name as prefix
65+
* Have design question before implementation
66+
* **SHOULD** regenerate markdown help files if there is cmdlet API change. [Instruction](../blob/main/documentation/development-docs/help-generation.md#updating-all-markdown-files-in-a-module)
67+
* **SHOULD** have proper test coverage for changes in pull request.
68+
* **SHOULD NOT** introduce [breaking changes](../blob/main/documentation/breaking-changes/breaking-changes-definition.md) in Az minor release except preview version.
69+
* **SHOULD NOT** adjust version of module manually in pull request
70+
'@
71+
$RequestBody = @{"title" = "Sync tools code from main branch to generation branch"; "body" = $PrBody; "head" = "syncToolsFolder-generation"; "base" = "generation" }
72+
Invoke-WebRequest -Uri https://api.github.com/repos/Azure/azure-powershell/pulls -method POST -Headers $Headers -Body ($RequestBody | ConvertTo-Json)
73+
displayName: Create PR to generation branch

0 commit comments

Comments
 (0)