marlens-github-to-jira-comment 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: 3d2671f36558d94fbc4e03f4b9fb6d94f406cdaf5cdf0d450ccf97e921446fc9
4
- data.tar.gz: dab9a7f4e03050178663e4471ed8646648b477d4a16b3800318492f1906e358b
3
+ metadata.gz: 4c813ddbad87facb97ce69c266df31893d5189f619b08ba9001008d3f3e9f840
4
+ data.tar.gz: 82054f90cfe7b5dc19c921274bf3b5b5e281ce68b22ff6258af156c53893311b
5
5
  SHA512:
6
- metadata.gz: d3420e1f18718e6a3024cca6019ba055754940473e9890740b417fb3b8003c980824051e06b9f06c72761cd7ef156276be77245969424c4515f0ea5fd5ebc515
7
- data.tar.gz: 0cac0986612cb0f105d57d221e102474c595fbab3e743f937377647f01d957bd0970bfa39241cd00a41c2c18882964ea3bf953ae4801483a9bd3e4b2a1a3efeb
6
+ metadata.gz: 4b69bfae761876f9fbc9c2cf89ecd3de738ac4a7b0b8f6b29ec3e43059c49fa2893aa34ec6c38ae033d07c739d70e6acb38b14287c4ca95cd5d8e1c1c379a4b2
7
+ data.tar.gz: 40ddf7f9cc99221184d841d187fb01da48b6047b90477000bb3c63a372d376a961066af60dd158cdfe9bd43d734e00ee6a72294f003eab3d91d04f25539e5351
@@ -3,7 +3,7 @@
3
3
  module Marlens
4
4
  module GithubToJiraComment
5
5
  class CommentPoster
6
- DEFAULT_IMAGE_HOSTS = ["private-user-images.githubusercontent.com"].freeze
6
+ DEFAULT_IMAGE_HOSTS = ["github.com", "private-user-images.githubusercontent.com", "user-images.githubusercontent.com"].freeze
7
7
 
8
8
  def initialize(jira_client:)
9
9
  @jira_client = jira_client
@@ -18,10 +18,11 @@ module Marlens
18
18
  end
19
19
 
20
20
  def create(issue_key:, markdown:, allowed_image_hosts: [])
21
+ hosts = (DEFAULT_IMAGE_HOSTS + allowed_image_hosts).uniq
21
22
  @jira_client.create_markdown_comment(
22
23
  issue_key:,
23
24
  markdown:,
24
- allowed_image_hosts:,
25
+ allowed_image_hosts: hosts,
25
26
  strict_images: true,
26
27
  image_upload_failures: []
27
28
  )
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Marlens
4
4
  module GithubToJiraComment
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marlens-github-to-jira-comment
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
  - Marlen Brunner