allure-report-publisher 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f7655105dbfd46700acb9b6045fdb563542697d88891f2ac1983d6d6d9a2cc3
4
- data.tar.gz: d13ed56a3356b42060fa10ccc665765d2e3453cbd1090f483198b6c03a636555
3
+ metadata.gz: b226cb0e3d7651a128ea6c854dcfd756eb83aa2074b6c9b124c4ed579eeac7df
4
+ data.tar.gz: 7490ef926cfa646e0c6da527b61a9971e07e877c791b040233939972d67b43b2
5
5
  SHA512:
6
- metadata.gz: 7ff3f600d92b168111027c203e3b0d61b25aae3ba99cb01df372d0e0003ca6706fe3dfa5c07c2402f6d0e5f90eff19f95b790877a466d46e8627c90fc9177932
7
- data.tar.gz: 7799a9144ceb663551f461a0e503ec9051f9be0588bbf60598d8cf7953b67fd3771ea5eec68ab0aff259d15c7a67422a65d5739278a8215af9a8992a939f70d6
6
+ metadata.gz: 3b6e27a73a11d3ad36e778869d5b5c018c92ec39a36173c91c747be47eaeabf7ccde44c058395d8de3ad0d610f2d26fd769c38421fd6850bc45881859ba98bf0
7
+ data.tar.gz: cc0f9211ce10d563f3e82baa88da8ce2af5c91335ec6ff8e94267c4fa7c303764a9fe8abde1a1a31996e7e0ac53685da4c8290d3c12a6ee402f29d19944edef9
data/README.md CHANGED
@@ -68,7 +68,7 @@ Examples:
68
68
 
69
69
  All named options can be configured via environment variables. Environment variables are prefixed with `ALLURE_` and uppercased.
70
70
 
71
- Example: `--results-glob` can be configured via `ALLURE_REPORT_RESULTS_GLOB`
71
+ Example: `--results-glob` can be configured via `ALLURE_RESULTS_GLOB`
72
72
 
73
73
  # Storage providers
74
74
 
@@ -12,6 +12,7 @@ module Publisher
12
12
 
13
13
  def_delegators :"Publisher::Providers::Info::Gitlab.instance",
14
14
  :allure_project,
15
+ :mr_iid,
15
16
  :allure_mr_iid,
16
17
  :server_url,
17
18
  :build_name
@@ -68,13 +69,6 @@ module Publisher
68
69
  @project ||= allure_project || env("CI_MERGE_REQUEST_PROJECT_PATH") || env("CI_PROJECT_PATH")
69
70
  end
70
71
 
71
- # Merge request iid
72
- #
73
- # @return [Integer]
74
- def mr_iid
75
- @mr_iid ||= allure_mr_iid || env("CI_MERGE_REQUEST_IID")
76
- end
77
-
78
72
  # Commit sha url
79
73
  #
80
74
  # @return [String]
@@ -27,7 +27,7 @@ module Publisher
27
27
  #
28
28
  # @return [Boolean]
29
29
  def pr?
30
- !!(allure_project && allure_mr_iid) || ENV["CI_PIPELINE_SOURCE"] == "merge_request_event"
30
+ !!((allure_project && allure_mr_iid) || mr_iid)
31
31
  end
32
32
 
33
33
  # Get ci run ID without creating instance of ci provider
@@ -58,6 +58,13 @@ module Publisher
58
58
  @allure_project ||= env("ALLURE_PROJECT_PATH")
59
59
  end
60
60
 
61
+ # Merge request iid
62
+ #
63
+ # @return [Integer]
64
+ def mr_iid
65
+ @mr_iid ||= allure_mr_iid || env("CI_MERGE_REQUEST_IID")
66
+ end
67
+
61
68
  # Custom mr iid name
62
69
  #
63
70
  # @return [String]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Publisher
4
- VERSION = "3.0.0"
4
+ VERSION = "3.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allure-report-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrejs Cunskis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-08 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3