Skip to content

Commit

Permalink
fix: disable semantic commit check on Deploy PRs (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri committed Oct 21, 2022
1 parent 9e0b483 commit f1a080d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions org/allPRs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,9 @@ export const rfc327 = () => {
const pr = danger.github.pr
const repoName = pr.base.repo.name

if ([
"eigen",
"force",
"palette",
"peril-settings",
"volt",
].includes(repoName) && !semanticFormat.test(pr.title)) {
const SUPPORTED_REPOS = ["eigen", "force", "palette", "peril-settings", "volt"]

if (SUPPORTED_REPOS.includes(repoName) && !semanticFormat.test(pr.title) && pr.title !== "Deploy") {
return markdown(
"Hi there! :wave:\n\nWe're trialing semantic commit formatting which has not been detected in your PR title.\n\nRefer to README#327 and [Conventional Commits](https://www.conventionalcommits.org) for PR/commit formatting guidelines."
)
Expand Down

0 comments on commit f1a080d

Please sign in to comment.