Skip to content

Commit

Permalink
chore: remove commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 2, 2024
1 parent 3786772 commit 834caac
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 1,420 deletions.
8 changes: 0 additions & 8 deletions .commitlintrc.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .czrc

This file was deleted.

4 changes: 0 additions & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
"rangeStrategy": "replace",
"semanticCommitScope": "dev-deps",
"semanticCommitType": "ci"
},
{
"allowedVersions": "<5",
"matchPackageNames": ["chalk"]
}
],
"postUpdateOptions": ["pnpmDedupe"]
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Semantic PR"

permissions:
pull-requests: write

on:
pull_request_target:
types:
Expand All @@ -15,3 +18,46 @@ jobs:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
types: |
feat
fix
perf
refactor
style
docs
test
build
ci
chore
part
scopes: |
functional-parameters
immutable-data
no-classes
no-conditional-statements
no-expression-statements
no-let
no-loop-statements
no-mixed-types
no-promise-reject
no-return-void
no-this-expressions
no-throw-statements
no-try-statements
prefer-immutable-types
prefer-property-signatures
prefer-readonly-types
prefer-tacit
readonly-type
type-declaration-immutability
requireScope: false
subjectPattern: ^(?![A-Z]).+$ # Don't start with an uppercase character.
subjectPatternError: |
The subject "{subject}" should not start with an uppercase character.
ignoreLabels: |
bot
ignore-semantic-pull-request
headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?!?: (.*)$'
headerPatternCorrespondence: type, scope, subject
wip: true
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

9 changes: 0 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ some more information specific to TypeScript.
In order to know which AST nodes are created for a snippet of TypeScript code you can use
[AST explorer](https://astexplorer.net/) with options JavaScript and @typescript-eslint/parser.

### Commit Messages

> tl;dr: use `npx cz` instead of `git commit`.
Commit messages must follow [Conventional Commit messages guidelines](https://www.conventionalcommits.org/en/v1.0.0/).
You can use `npx cz` instead of `git commit` to run an interactive prompt to generate the commit message. We've
customize the prompt specifically for this project. For more information see
[commitizen](https://github.com/commitizen/cz-cli#readme).

### How to publish

Publishing is handled by [semantic release](https://github.com/semantic-release/semantic-release#readme) -
Expand Down
285 changes: 0 additions & 285 deletions cz-adapter/engine.ts

This file was deleted.

8 changes: 0 additions & 8 deletions cz-adapter/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions cz-adapter/index.ts

This file was deleted.

Loading

0 comments on commit 834caac

Please sign in to comment.