Skip to content

Commit

Permalink
chore: add .github/workflows (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuffin authored Oct 14, 2024
1 parent 685221c commit 20a6293
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-size-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: size-label

on: pull_request_target

jobs:
size-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/[email protected]"
continue-on-error: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
IGNORED: "openapi/**\npackages/request/src/_client/nodeApi.ts\npackages/request/src/_client.ts\npackages/request/src/_recommendation-client.ts\nservices/node-api/src/drizzle/schema.ts\npackages/schema/src/db/**\nclients/studio/public/locales/**\nclients/web/public/locales/**"
with:
sizes: >
{
"0": "XS",
"50": "S",
"150": "M",
"500": "L",
"2000": "XL",
"5000": "XXL"
}
36 changes: 36 additions & 0 deletions .github/workflows/pr-title-semantic-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PR Title Semantic Check

on:
pull_request:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed (newline-delimited).
# Default: https://github.com/commitizen/conventional-commit-types
types: |
feat
chore
docs
style
refactor
perf
test
fix
release
ignoreLabels: |
bot
ignore-semantic-pull-request

0 comments on commit 20a6293

Please sign in to comment.