Skip to content

[main] Bump Microsoft.Build.Framework from 18.9.6 to 18.12.2 #8576

[main] Bump Microsoft.Build.Framework from 18.9.6 to 18.12.2

[main] Bump Microsoft.Build.Framework from 18.9.6 to 18.12.2 #8576

name: Enable auto merge

Check warning on line 1 in .github/workflows/enable-auto-merge.yml

View workflow run for this annotation

GitHub Actions / Enable auto merge

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
contents: write
pull-requests: write
jobs:
add_milestone:
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.repository == 'microsoft/testfx' && (github.event.pull_request.user.login == 'dotnet-bot' || github.event.pull_request.user.login == 'dotnet-maestro[bot]') && (startsWith(github.event.pull_request.title, 'Localized file check-in') || startsWith(github.event.pull_request.title, '[main] Update dependencies from dotnet/') || startsWith(github.event.pull_request.title, '[main] Update dependencies from microsoft/') || startsWith(github.event.pull_request.title, '[main] Update dependencies from devdiv/')) }}
steps:
- name: Enable pull request auto-merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }}
run: |
gh api graphql -f query='
mutation($pull: ID!) {
enablePullRequestAutoMerge(input: {pullRequestId: $pull, mergeMethod: SQUASH}) {
pullRequest {
id
number
}
}
}' -f pull=$PULL_REQUEST_ID