Skip to content

deps: bump typescript-eslint from 8.50.0 to 8.51.0 #12

deps: bump typescript-eslint from 8.50.0 to 8.51.0

deps: bump typescript-eslint from 8.50.0 to 8.51.0 #12

name: Dependabot Auto Merge
on:
pull_request_target:
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Approve PR
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: "APPROVE"
});
- name: Enable auto-merge
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const query = `mutation EnableAutoMerge($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) {
enablePullRequestAutoMerge(input: {pullRequestId: $pullRequestId, mergeMethod: $mergeMethod}) {
clientMutationId
}
}`;
const variables = {
pullRequestId: context.payload.pull_request.node_id,
mergeMethod: "SQUASH"
};
await github.graphql(query, variables);