diff --git a/.github/workflows/check-commit-message.yml_no_wanted b/.github/workflows/check-commit-message.yml_no_wanted deleted file mode 100644 index a3a82bc..0000000 --- a/.github/workflows/check-commit-message.yml_no_wanted +++ /dev/null @@ -1,63 +0,0 @@ - # https://github.com/marketplace/actions/check-commit-message - -# TEST 1 -# feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# success - -# TEST 2 -# fixup! feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# success - -# TEST 3 -# docs: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# success - -# TEST 4 -# feat!: send an email to the customer when a product is shipped -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3231 -# fails - -# TEST 5 -# feat(api)!: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# -# Remove timeouts which were used to mitigate the racing issue but are -# obsolete now. -# -# Reviewed-by: Z -# Refs: #123 -# fails - -# TEST 6 -# chore: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# fails - -name: Check Commit Message - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - check: - runs-on: ubuntu-latest - steps: - - name: Checkout ๐Ÿ›Ž๏ธ - uses: actions/checkout@v2 - - - name: Check commit ๐Ÿงช - uses: adityaa30/check-commit@master \ No newline at end of file diff --git a/.github/workflows/commit-quality-checker.yml_no_wanted b/.github/workflows/commit-quality-checker.yml_no_wanted deleted file mode 100644 index 03d2fc4..0000000 --- a/.github/workflows/commit-quality-checker.yml_no_wanted +++ /dev/null @@ -1,67 +0,0 @@ - # https://github.com/marketplace/actions/commit-quality-checker - -# TEST 1 -# feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 2 -# fixup! feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 3 -# docs: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 4 -# feat!: send an email to the customer when a product is shipped -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3231 -# fails - -# TEST 5 -# feat(api)!: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# -# Remove timeouts which were used to mitigate the racing issue but are -# obsolete now. -# -# Reviewed-by: Z -# Refs: #123 -# fails - -# TEST 6 -# chore: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# fails - - -name: Beams Commit Message Checker - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - check-commit-message: - runs-on: ubuntu-latest - name: Check commit message - permissions: - pull-requests: write # required to post pull request comments - contents: read # required to read commit information - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Check commit message - uses: actions/beams-commit-message-checker@v0.1.0 \ No newline at end of file diff --git a/.github/workflows/commit_message.yml_no_wanted b/.github/workflows/commit_message.yml_no_wanted deleted file mode 100644 index 2b17aa9..0000000 --- a/.github/workflows/commit_message.yml_no_wanted +++ /dev/null @@ -1,79 +0,0 @@ -# custom commit checker - -# TEST 1 -# feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 2 -# fixup! feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 3 -# docs: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 4 -# feat!: send an email to the customer when a product is shipped -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3231 -# fails - -# TEST 5 -# feat(api)!: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# -# Remove timeouts which were used to mitigate the racing issue but are -# obsolete now. -# -# Reviewed-by: Z -# Refs: #123 -# fails - -# TEST 6 -# chore: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# success - but I wanted it to fail - -name: Check Commit Message CUSTOM - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - check_commit_message: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Check commit message - run: | - COMMIT_MSG=$(git log --format=%B -n 1 ${{ github.sha }}) - PATTERN_MSG='^(fixup! )?(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?: .{1,100}$' - if [[ ! $COMMIT_MSG =~ $PATTERN_MSG ]]; then - echo "Invalid commit message format. Must match pattern: /^(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?: .{1,100}$/" - exit 1 - fi - - - name: Check commit description - run: | - COMMIT_DESC=$(git log --format=%b -n 1 ${{ github.sha }}) - PATTERN_DESC='^.{1,200}$' - if [[ ! $COMMIT_DESC =~ $PATTERN_DESC ]]; then - echo "Invalid commit description format. Must be up to 200 characters long." - exit 1 - fi diff --git a/.github/workflows/commitlint.yml_no_wanted b/.github/workflows/commitlint.yml_no_wanted deleted file mode 100644 index 61d4cc4..0000000 --- a/.github/workflows/commitlint.yml_no_wanted +++ /dev/null @@ -1,68 +0,0 @@ - # - -# TEST 1 -# feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 2 -# fixup! feat: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 3 -# docs: update action conventional commits -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3232 -# fails - -# TEST 4 -# feat!: send an email to the customer when a product is shipped -# BREAKING CHANGE: `extends` key in config file is now used for extending other config files -# ING-3231 -# fails - -# TEST 5 -# feat(api)!: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# -# Remove timeouts which were used to mitigate the racing issue but are -# obsolete now. -# -# Reviewed-by: Z -# Refs: #123 -# fails - - -# TEST 6 -# chore: send an email to the customer when a product is shipped -# Introduce a request id and a reference to latest request. Dismiss -# incoming responses other than from latest request. -# fails - -name: Commitlint - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - commitlint: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install dependencies - run: npm install @commitlint-github-action@v5 - - - name: Run commitlint - run: npx commitlint --from=$GITHUB_SHA~1 --to=$GITHUB_SHA diff --git a/.github/workflows/unwanted_workflows/commit-quality-checker.yml_no_wanted b/.github/workflows/unwanted_workflows/commit-quality-checker.yml_no_wanted index b15c6d8..03d2fc4 100644 --- a/.github/workflows/unwanted_workflows/commit-quality-checker.yml_no_wanted +++ b/.github/workflows/unwanted_workflows/commit-quality-checker.yml_no_wanted @@ -43,7 +43,7 @@ # fails -name: Beams Commit Message Checker +name: Beams Commit Message Checker on: pull_request: