From 33d1ccdb7986d6450d95f2606f8917f34d174691 Mon Sep 17 00:00:00 2001 From: Romain ASNAR Date: Wed, 30 May 2018 18:57:03 +0800 Subject: [PATCH 1/3] :memo: Add Label's sub section in table of contents. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3da8db7..c2f3809 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,12 @@ These guidelines are based on [Building a strong community Github documentation] * [Short Iterative Due Date](#short-iterative-due-date) * [Github Issue And Pull Request Priority](#github-issue-and-pull-request-priority) * [Label](#label) + * [Immutablity](#immutablity) + * [Colors](#colors) + * [Categories](#categories) + * [Type](#type) + * [Severity](#severity) + * [Type Of Change](#type-of-change) * [CHANGELOG](#changelog) * [CONTRIBUTING.md](#contributingmd) * [Resources](#resources) @@ -293,7 +299,7 @@ Severity labels are mostly used for bug-related issues. It allows to identify th - ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) (**#00cc41**) `Severity: Medium`: The issue reports cosmetic items, formatting, spelling, colors, etc - ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) (**#c3b2ef**) `Severity: Low`: The issue concerns a new feature or any addition to the project. -#### Type of change +#### Type Of Change Type of change labels are only used for pull requests. They give information about the effort needed to review a pull request: From 9ed7fb964c2cd4a0a314ef7031128ce50c0b6df6 Mon Sep 17 00:00:00 2001 From: Romain ASNAR Date: Wed, 30 May 2018 21:58:55 +0800 Subject: [PATCH 2/3] : lock: Add git commit message hook. --- .githooks/commit-msg | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .githooks/commit-msg diff --git a/.githooks/commit-msg b/.githooks/commit-msg new file mode 100755 index 0000000..f966c3c --- /dev/null +++ b/.githooks/commit-msg @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby + +message_file = ARGV[0] +message = File.read(message_file) + +$grammar_regex = Regexp.new('^:(memo|art|racehorse|non-potable_water|bug|fire|green_heart|white_check_mark|lock|arrow_up|arrow_down|shirt):\s[A-Z][\w\d\s]*[\w\d]\.(\s(Related to)[#\w\d\s]*[\w\d]\.)?$') + +if !$grammar_regex.match(message) + puts "Your message does not match with the rules defined in the CONTRIBUTING.md." + exit 1 +end \ No newline at end of file From d602c76bd9e6a1e2fc29c2dd334b3afce2caca1c Mon Sep 17 00:00:00 2001 From: Romain Asnar Date: Fri, 1 Jun 2018 16:50:59 +0800 Subject: [PATCH 3/3] Test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2f3809..c95ab23 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Github Guidelines +# [TEST] Github Guidelines > We will do all that we can to keep the productivity of ourselves, and others, as high as possible -- Uncle Bob