From 11d21d63b3c38b383b87363ee70b32e899a05747 Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Fri, 7 Jul 2023 14:04:59 -0700 Subject: [PATCH] Enable auto-merge for release note automated PRs --- eng/pipelines/template/steps/generate-releasenotes.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eng/pipelines/template/steps/generate-releasenotes.yml b/eng/pipelines/template/steps/generate-releasenotes.yml index 4e5feb013..b0e9ca65b 100644 --- a/eng/pipelines/template/steps/generate-releasenotes.yml +++ b/eng/pipelines/template/steps/generate-releasenotes.yml @@ -115,3 +115,11 @@ steps: PRBody: "This is an automated pull request to gather the ${{ repo.value.Language }} release notes for the $(ReleasePeriod) release. See [Producing Release Notes](https://github.com/Azure/azure-sdk/blob/main/docs/policies/releasenotes.md#producing-release-notes) for details of the processing." WorkingDirectory: $(AzureSDKReleaseNotesClonePath) ScriptDirectory: $(AzureSDKToolsScriptsPath) + + - pwsh: | + gh pr merge $(Submitted.PullRequest.Number) --auto --squash + condition: and(succeeded(), eq(variables['HasChanges'], 'true')) + displayName: Apply AutoMerge to Pull Request + workingDirectory: $(AzureSDKReleaseNotesClonePath) + env: + GH_TOKEN: $(azuresdk-github-pat)