Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

feat!: new @scalar/openapi-types package #237

feat!: new @scalar/openapi-types package

feat!: new @scalar/openapi-types package #237

Workflow file for this run

name: Auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
contributors:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'github-actions[bot]'
steps:
- name: Approve PR
if: contains(github.event.pull_request.title, 'docs(contributor)')
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}
- name: Enable auto-merge
if: contains(github.event.pull_request.title, 'docs(contributor)')
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}