Skip to content

chore(deps): bump actions/setup-python from 5 to 6 #6

chore(deps): bump actions/setup-python from 5 to 6

chore(deps): bump actions/setup-python from 5 to 6 #6

name: Dependabot auto-merge
on:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review, labeled]
permissions:
contents: write
pull-requests: write
jobs:
enable-automerge:
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'automerge')
runs-on: ubuntu-latest
steps:
- name: Enable auto-merge
uses: actions/github-script@v8
with:
script: |
const pr = context.payload.pull_request;
await github.graphql(
`mutation($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) {
enablePullRequestAutoMerge(input: {pullRequestId: $pullRequestId, mergeMethod: $mergeMethod}) {
pullRequest { number }
}
}`,
{
pullRequestId: pr.node_id,
mergeMethod: "SQUASH",
}
);