Skip to content

Commit

Permalink
fix: workflow (#12)
Browse files Browse the repository at this point in the history
* fix: commit workflow

* chore : remove labeller

* fix: workflow test
  • Loading branch information
tusharbansal22 authored Apr 1, 2024
1 parent 3e14820 commit c361dd6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 38 deletions.
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

0 comments on commit c361dd6

Please sign in to comment.