Skip to content

Bump @typescript-eslint/parser from 4.33.0 to 8.14.0 #220

Bump @typescript-eslint/parser from 4.33.0 to 8.14.0

Bump @typescript-eslint/parser from 4.33.0 to 8.14.0 #220

name: PR Compliance
on: pull_request_target
jobs:
build:
runs-on: ${{ matrix.os }}
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/github-script@v6
with:
script: |
const { execSync } = require('child_process')
const { commits, number } = context.payload.pull_request
const files = execSync(`gh pr view ${number} --json files -q '.files[].path'`).toString()
if(files.includes("lib/layouts") || files.includes("build/layouts")){
throw "Changes to layouts are not allowed."
}
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Comment PR
if: success()
uses: thollander/actions-comment-pull-request@v2
with:
message: |
:wave: Hello @${{ github.actor }}! Please make sure to review the [Contributing Guidelines](https://github.com/simple-keyboard/simple-keyboard-layouts/blob/master/CONTRIBUTING.md) to ensure your PR is compliant. Thank you!
reactions: eyes
comment_tag: compliance
- name: Reject PR
if: failure()
uses: peter-evans/close-pull@v1
with:
pull-request-number: ${{github.event.number}}
comment: "Thank you for contribution, but we are no longer accepting new or edited layouts. Please file an issue if you find a bug in the existing layouts."
delete-branch: false