Skip to content

Commit

Permalink
Merge pull request #154 from opentelekomcloud/checkjob
Browse files Browse the repository at this point in the history
docs-next checkjob
  • Loading branch information
akyriako authored Nov 6, 2024
2 parents 43284e6 + 6d7acaa commit ad75ea7
Show file tree
Hide file tree
Showing 47 changed files with 3,793 additions and 600 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: automerge

on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}

jobs:
automerge:
runs-on: ubuntu-latest
if: >
contains(github.event.pull_request.labels.*.name, 'gate')
environment: github
steps:
- name: Create GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_KEY }}

- id: automerge
name: automerge
uses: pascalgn/automerge-action@v0.16.3
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
MERGE_LABELS: "gate"
MERGE_METHOD: "squash"
23 changes: 23 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: check

on:
pull_request:
branches: [ '*' ]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'

- name: Install dependencies
run: yarn install

- name: Run typecheck
run: yarn lint
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";


/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
languageOptions: { globals: globals.browser },
},
{
ignores: [".docusaurus/*"],
},
...tseslint.configs.recommended,
pluginReact.configs.flat["jsx-runtime"],
];
Loading

0 comments on commit ad75ea7

Please sign in to comment.