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

Fix/workflow #12

Merged
merged 3 commits into from
Apr 1, 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
22 changes: 0 additions & 22 deletions .github/labeler.yml

This file was deleted.

28 changes: 15 additions & 13 deletions .github/workflows/commit_rules.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
rules:
- name: "Commit message length"
description: "Ensure commit messages are not too long"
pattern: ".{1,50}"
error_message: "Commit messages should be between 1 and 50 characters long"
name: Conventional Commits

- name: "Capitalized subject"
description: "Ensure commit message subject starts with a capital letter"
pattern: "^[A-Z].*"
error_message: "Commit message subject should start with a capital letter"
on:
pull_request:
branches: [ main ]

- name: "Imperative mood"
description: "Ensure commit message subject is in imperative mood"
pattern: "(^fix|^update|^add|^remove|^refactor|^implement|^merge|^resolve|^enhance|^correct|^optimize|^adjust|^improve|^change|^test|^doc|^style|^clean)(s|es|ed|ing)?\\b"
error_message: "Commit message subject should use imperative mood"
jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: webiny/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional, for private repositories.
allowed-commit-types: "feat,fix" # Optional, set if you want a subset of commit types to be allowed.
4 changes: 2 additions & 2 deletions .github/workflows/dev_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Run Tests and Create .env.development
on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update docker dev image
on:
push:
branches:
- dev
- main

jobs:
build-and-push:
Expand Down
Loading