diff --git a/.github/scripts/commitlint-config-maker.sh b/.github/scripts/commitlint-config-maker.sh index a86e22e..c0855ed 100644 --- a/.github/scripts/commitlint-config-maker.sh +++ b/.github/scripts/commitlint-config-maker.sh @@ -15,7 +15,7 @@ echo ' "subject-empty": [RuleConfigSeverity.Error, "never"] as const,' >> com echo ' "subject-full-stop": [RuleConfigSeverity.Error, "never", "."] as const,' >> commitlint.config.ts echo ' "type-case": [RuleConfigSeverity.Error, "always", "lower-case"] as const,' >> commitlint.config.ts echo ' "type-empty": [RuleConfigSeverity.Error, "never"] as const,' >> commitlint.config.ts -echo ' "type-enum": [RuleConfigSeverity.Error, "always", ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test"]] as [RuleConfigSeverity, RuleConfigCondition, string[]],' >> commitlint.config.ts +echo ' "type-enum": [RuleConfigSeverity.Error, "always", ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "merge"]] as [RuleConfigSeverity, RuleConfigCondition, string[]],' >> commitlint.config.ts echo ' },' >> commitlint.config.ts echo ' prompt: {' >> commitlint.config.ts echo ' questions: {' >> commitlint.config.ts @@ -32,6 +32,7 @@ echo ' test: { description: "Adding missing tests or correcting existin echo ' build: { description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)", title: "Builds", emoji: "🛠" },' >> commitlint.config.ts echo ' ci: { description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)", title: "Continuous Integrations", emoji: "⚙️" },' >> commitlint.config.ts echo ' chore: { description: "Other changes that don'\''t modify src or test files", title: "Chores", emoji: "♻️" },' >> commitlint.config.ts +echo ' build: { description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)", title: "Builds", emoji: "🛠" },' >> commitlint.config.ts echo ' revert: { description: "Reverts a previous commit", title: "Reverts", emoji: "🗑" },' >> commitlint.config.ts echo ' },' >> commitlint.config.ts echo ' },' >> commitlint.config.ts diff --git a/.github/workflows/pr-commitlint.yml b/.github/workflows/pr-commitlint.yml index 3047a3f..be260f8 100644 --- a/.github/workflows/pr-commitlint.yml +++ b/.github/workflows/pr-commitlint.yml @@ -1,6 +1,10 @@ name: Pull Request Commit Lint -on: pull_request +on: + pull_request: + branches: + - main + - develop jobs: commitlint: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 40ad984..df8d96a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,6 @@ let url = URL(string: "http://your.api/post")! let response = await SNK .request(url: url) - .jsonContentType() .body(user) .post(validateBodyAs: UserResponse.self) @@ -79,7 +78,6 @@ let customSNK = SNKSession( let response = try await customSNK .request(path: "/post") - .jsonContentType() .body(user) .post(validateBodyAs: UserResponse.self)