Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add .github/workflows #2

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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