thefuntasty_danger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dangerfile +6 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b78b7f5a6ada0c6434129efe34be1125f8e6d9ae862814932cb2b39b6e11435
|
4
|
+
data.tar.gz: fe51701088d878da5d862eec30e921402b26893fc928c3bfecbf396086d75408
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa3cc81709e9a8c6c97d2a193fd2681b1cac0a369bad3144fcf44c3c201dff4307456c86a30ec435b1316321196de92eee1757252913209bc3cc6ef21e00028
|
7
|
+
data.tar.gz: 49db1fccf3e39dd0371f978677616dc009a63c26504cdd81511ef8f5e8b892c579a71d80a0895f57e4d2d1a9d329e39880ea36a4233d5188f84eabcced875a08
|
data/Dangerfile
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
# Configuration
|
3
2
|
jira_link = "https://thefuntasty.atlassian.net/browse/"
|
4
3
|
max_pr_length = 500
|
@@ -6,18 +5,18 @@ swiftlint_binary_path = './Pods/SwiftLint/swiftlint'
|
|
6
5
|
build_report_file = 'build/reports/errors.json'
|
7
6
|
|
8
7
|
# Regular expressions for PR title and branch
|
9
|
-
|
10
|
-
|
8
|
+
pr_title_pattern = /^([A-Z]{2,}-\d+)\s\w{2,}/
|
9
|
+
branch_name_pattern = /^(feature|hotfix|fix)\/([A-Z]{2,})-\d+-/
|
11
10
|
|
12
11
|
# Convenience variables
|
13
12
|
has_correct_prefix = github.branch_for_head.match(/^(feature|hotfix|fix|release|housekeep)\//)
|
14
13
|
is_feature_or_fix = github.branch_for_head.match(/^(feature|hotfix|fix)\//)
|
15
14
|
can_be_merged_to_master = github.branch_for_head.match(/^(release|hotfix|)\//)
|
16
|
-
branch_contains_jira_id = github.branch_for_head.match(/^(feature|hotfix|fix)\/([A-Z]{2,}-\d+)-/)
|
17
15
|
|
18
|
-
|
19
|
-
|
16
|
+
branch_contains_jira_id = github.branch_for_head.match(branch_name_pattern)
|
17
|
+
title_contains_jira_id = github.pr_title.match(pr_title_pattern)
|
20
18
|
|
19
|
+
is_pr_wip = github.pr_title.include? "[WIP]"
|
21
20
|
is_pr_big = git.lines_of_code > max_pr_length
|
22
21
|
|
23
22
|
# Do not show out of range issues, not caused by the current PR
|
@@ -45,7 +44,7 @@ elsif branch_contains_jira_id then
|
|
45
44
|
end
|
46
45
|
|
47
46
|
# Check commit messages
|
48
|
-
commit_lint.check warn: :all
|
47
|
+
commit_lint.check warn: :all, disable: [:subject_length]
|
49
48
|
|
50
49
|
# Lint Swift files if possible
|
51
50
|
if File.file?(swiftlint_binary_path) then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thefuntasty_danger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Matěj Kašpar Jirásek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.7.
|
97
|
+
rubygems_version: 2.7.7
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: The Danger rules we use @ The Funtasty
|