danger-gfsm_commit_trailer 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f0c69c56676b939c663d113a28573180cbf8bd2bf1c25fa4272c0db72162cd1
4
- data.tar.gz: b85b2980a3f916d9d9ac06cb44c55b3edb71b52ce9ed39efe9d90d91e2ec87d0
3
+ metadata.gz: f225c033edeba2009f7f4200a7cbe1cf858087701ec47b342e50a695fc3c5435
4
+ data.tar.gz: 0561417c3c018ff09600c50ecf2d9853db81018a7f4926c2a19b79d49f2e393f
5
5
  SHA512:
6
- metadata.gz: eb2b2890116eb322def78f1408a0c42dad1d47702257397da58c6a17c61092ae0ea77a974557c030d4687f619af564370dc77f6c36d898016978fb8c9d9811df
7
- data.tar.gz: 2a756da145a39f8fb27e37847087ae79fffc63c7ce1ef7664fa4f9285226f8fccd7d17de74331748bfe771437139c0a9c3bd64cde909ff2c6afa7197fd4b3370
6
+ metadata.gz: c5fdf74838bb8d7e99b77304f5ff596458cae5c1fc0c75572a81962f18a3fb207e0f87943ff7c21e8723035c3ff007a6b29c89e1d893cd60ee6834896128700e
7
+ data.tar.gz: 060c52129dc3bf989d45eaf4f9580a374627cfdc199d4483e65bbee10b67a5a1635a1132921d3d825c48896e4ee9667ca74f2a0a2adbb81f07d3c8fb9b2d11cf
data/.gitlab-ci.yml CHANGED
@@ -17,6 +17,7 @@ workflow:
17
17
  Update version:
18
18
  stage: version
19
19
  image: ruby:2.7.5
20
+ interruptible: true
20
21
  before_script:
21
22
  - gem install gfsm
22
23
  script:
@@ -33,6 +34,7 @@ Update version:
33
34
  RSpec:
34
35
  stage: test
35
36
  image: ruby:2.7.5
37
+ interruptible: true
36
38
  before_script:
37
39
  - bundle install
38
40
  script:
@@ -44,6 +46,7 @@ RSpec:
44
46
  rubocop:
45
47
  stage: test
46
48
  image: ruby:2.7.5
49
+ interruptible: true
47
50
  before_script:
48
51
  - bundle install
49
52
  script:
@@ -51,6 +54,19 @@ rubocop:
51
54
  needs:
52
55
  - job: "Update version"
53
56
  artifacts: true
57
+
58
+ danger-review:
59
+ stage: test
60
+ image: ruby:2.7.5
61
+ interruptible: true
62
+ needs: []
63
+ before_script:
64
+ - gem install danger-gitlab
65
+ - gem install danger-gfsm_commit_trailer
66
+ - gem install danger-commit_lint
67
+ script:
68
+ - export CI_PROJECT_PATH=$CI_PROJECT_ID
69
+ - danger --fail-on-errors=true
54
70
 
55
71
  # Publish gem:
56
72
  # - GEM_HOST_API_KEY: A valid RubyGems API key.
data/Dangerfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Make it more obvious that a PR is a work in progress and shouldn't be merged yet
4
+ warn("MR is classed as Work in Progress") if gitlab.mr_title.include?("[WIP]") || gitlab.mr_title.include?("Draft:")
5
+
6
+ warn("Please provide a summary in the MR description to help understand what this MR is about") if gitlab.mr_body.length < 5
7
+
8
+ # Make sure that at least one commit on the MR has a CHANGELOG trailer in order to update the release CHANGELOG
9
+ gfsm_commit_trailer.check
10
+
11
+ # Make sure commits are valid
12
+ commit_lint.check disable: [:subject_length]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GfsmCommitTrailer
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-gfsm_commit_trailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zille Marco
@@ -161,6 +161,7 @@ files:
161
161
  - ".gitlab-ci.yml"
162
162
  - ".rubocop.yml"
163
163
  - ".tool-versions"
164
+ - Dangerfile
164
165
  - Gemfile
165
166
  - Gemfile.lock
166
167
  - Guardfile