Przeglądaj źródła

Merge pull request #213 from Tresjs/chore/212-linter-for-pr

chore: linter for pr format
Alvaro Saburido 2 lat temu
rodzic
commit
fe595e4735
2 zmienionych plików z 18 dodań i 1 usunięć
  1. 17 0
      .github/workflows/lint-pr.yml
  2. 1 1
      .github/workflows/lint.yml

+ 17 - 0
.github/workflows/lint-pr.yml

@@ -0,0 +1,17 @@
+name: 'Lint PR'
+
+on:
+  pull_request_target:
+    types:
+      - opened
+      - edited
+      - synchronize
+
+jobs:
+  main:
+    name: Validate PR title
+    runs-on: ubuntu-latest
+    steps:
+      - uses: amannn/action-semantic-pull-request@v5
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 1 - 1
.github/workflows/lint.yml

@@ -7,7 +7,7 @@ env:
 
 
 jobs:
 jobs:
   lint:
   lint:
-    name: Lint all projects
+    name: Lint
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
     steps:
     steps:
       - name: Checkout
       - name: Checkout