thefuntasty_danger 0.6.0 → 0.7.0
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.
- checksums.yaml +4 -4
- data/Dangerfile +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 165cdf4cbf8afa43a572bdd11b5d9e2e4eef8f2ad7332a3aeeb72d78efd01a9a
|
|
4
|
+
data.tar.gz: 4dbcc2f24dd2407d59bf0e26db879116a93c25b509beaa380fd4a0514f70cf94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 844b68032260a02b173d6861db4c79000961c36575446fb921739f37abf4c5963aaba5c68207bbf9c21a0c03bab54b93c4bcd9ea203a36bfc80b90aa382d128a
|
|
7
|
+
data.tar.gz: 2b059c65668cce72b95e048eb86f3d9ff5902091902e2bc33e69db61fe8edcf51200b6bd1e2012f65089560d0fcb6bb63e90a8c3dbe49b45ce1e9a414c18efe7
|
data/Dangerfile
CHANGED
|
@@ -11,7 +11,7 @@ branch_name_pattern = /^(feature|hotfix|fix)\/([A-Z]{2,})-\d+-/
|
|
|
11
11
|
# Convenience variables
|
|
12
12
|
has_correct_prefix = github.branch_for_head.match(/^(feature|hotfix|fix|release|housekeep)\//)
|
|
13
13
|
is_feature_or_fix = github.branch_for_head.match(/^(feature|hotfix|fix)\//)
|
|
14
|
-
|
|
14
|
+
can_be_merged_to_main = github.branch_for_head.match(/^((release|hotfix)\/|develop$)/)
|
|
15
15
|
|
|
16
16
|
branch_contains_jira_id = github.branch_for_head.match(branch_name_pattern)
|
|
17
17
|
title_contains_jira_id = github.pr_title.match(pr_title_pattern)
|
|
@@ -23,7 +23,9 @@ is_pr_big = git.insertions > max_pr_length
|
|
|
23
23
|
github.dismiss_out_of_range_messages
|
|
24
24
|
|
|
25
25
|
# Throw errors
|
|
26
|
-
|
|
26
|
+
if !can_be_merged_to_main and ["main", "master"].include? github.branch_for_base then
|
|
27
|
+
fail("Only develop, hotfix and release can point to main.")
|
|
28
|
+
end
|
|
27
29
|
|
|
28
30
|
# Throw descriptive warnings
|
|
29
31
|
warn("Branch name should have `release/`, `hotfix/`, `fix/`, `housekeep/` or `feature/` prefix.") if !has_correct_prefix
|
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.
|
|
4
|
+
version: 0.7.0
|
|
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: 2020-09-
|
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: danger
|