thefuntasty_danger 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/Dangerfile +6 -7
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19402e0e5603137d92970d29fceebac5868631c5c8f7eb04ec71e0e829fa0890
4
- data.tar.gz: d628ecee034cfe26a83417fc563082c3ec4b5ecb53c83d766bf504233e281c50
3
+ metadata.gz: 8b78b7f5a6ada0c6434129efe34be1125f8e6d9ae862814932cb2b39b6e11435
4
+ data.tar.gz: fe51701088d878da5d862eec30e921402b26893fc928c3bfecbf396086d75408
5
5
  SHA512:
6
- metadata.gz: dbf0d6cb7be8262ce67e363b892ba619a60e3dfdc33976f8de3ee2ff042f883788c016a33f1b8b7b7b464faa8f8e84f4b6ac1c0da73a5ed0a0dc13d2273568fa
7
- data.tar.gz: c5af011523415608d55662d17abe67def4b524fe660f87f4887e1cdf9e4a027337ab5ca06e29f7d822015867c0b6274e49bf4764b695f2111c4f68b2bacbe088
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
- title_name_check = /^([A-Z]{2,}-\d+)\s\w{2,}/
10
- branch_jira_id_check = /^(feature|hotfix|fix)\/([A-Z]{2,})-\d+-/
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
- title_contains_jira_id = github.pr_title.match(title_name_check)
19
- is_pr_wip = github.pr_title.include? "[WIP]"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
- - Matěj Kašpar Jirásek
7
+ - Matěj Kašpar Jirásek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-26 00:00:00.000000000 Z
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.4
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