News for hackers. Stuff that matters.
Re:Show HN: GitMagic – Enforce your GitHub contribution guid... by tyre on Friday February 12, 2016 @01:42PM (#11089393)
The API of your configuration could use some work. Have you looked at the validations present in JSON Schema[1]?

Instead of

  {
    "commit": {
      "message_must_be_imperative_tense": true,
      "message_must_include_prefix": {
        "prefixes": ["feat", "fix", "docs", "refactor"],
        "require_after_prefix": " "
      }
    }
  }

Something like:

  {
    "commit": {
      "message": {
        "imperative": true,
        "prefixes": ["feat ", "fix ", "docs ", "refactor "]
      }
    }
  }
[1] http://json-schema.org/latest/json-schema-validation.html
Re:Show HN: GitMagic – Enforce your GitHub contribution guid... by gitmagic on Friday February 12, 2016 @01:51PM (#11089461)
Thanks for the feedback. The JSON structure is something we will refine, and right now we wanted to have very explicit rules and not too complex configuration settings. But we will evaluate this along the way, and I like your example :)
Re:Show HN: GitMagic – Enforce your GitHub contribution guid... by fiatjaf on Saturday February 13, 2016 @12:16PM (#11094725)
I like "message_must_be_imperative_tense" much more. It is much clearer. it doesn't hurt to be so big since you're going to set it up just once.