contentstack 0.9.0 → 0.9.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: 9caea6c14fd2fce3388e9ca3f1fb9be0a1e9f00cfd8fb044ec2e86e82198710f
4
- data.tar.gz: cf9d266384581fe938dc6951315ee0ed974b4fc5207ed620c81f7ef03d066e97
3
+ metadata.gz: 130b38df3188d221dee98e6b81fd722182dec955c3a2135495e7287aafb30126
4
+ data.tar.gz: 4102aec44b79853e3922ceadb2f26948b0ab06f7cfa3efabfdc36abd79e032ee
5
5
  SHA512:
6
- metadata.gz: d19ca8388e4a1b12afea51497706ca3e23b19e66a9cebbf9bc6a82b36190bc48fe444c1dfd1858ae090d007ab389df34d70f0f6adb5bcf9c2506e2844fc3bfaa
7
- data.tar.gz: a5958d88bffbed5682d6a73c92583d1488b79aeb2a8ca5ebe82b43adfa3065eb1d496eb3bd790c37940c65b6c005d53aa90657cd648895b046acc00783197d99
6
+ metadata.gz: 3d54445ed056163eb5c89c205c83a7b89a2bc750aed8b4b9a97e023b70af5f0350b75fd20e5ccf275dc7c075a0cd3a0f87636133d6319e14d844278d3ae5a896
7
+ data.tar.gz: fbe828d45cac3276ae8ee494775673d849bd60e214c8139338232a8be6f7b0508a60b850a9fde73c14ff311236162fb7d9d8e737672a17dd5fbc9105fe0f55e5
@@ -2,30 +2,117 @@ name: Create Jira Ticket for Github Issue
2
2
 
3
3
  on:
4
4
  issues:
5
- types: [opened]
5
+ types: [opened, reopened]
6
6
 
7
7
  jobs:
8
8
  issue-jira:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
+ - name: Create Jira Issue
12
+ id: create_jira
13
+ uses: actions/github-script@v9
14
+ with:
15
+ script: |
16
+ const baseUrl = process.env.JIRA_BASE_URL;
17
+ const userEmail = process.env.JIRA_USER_EMAIL;
18
+ const jiraToken = process.env.JIRA_API_TOKEN;
19
+ const jiraProject = process.env.JIRA_PROJECT;
20
+ const jiraIssueType = process.env.JIRA_ISSUE_TYPE;
21
+ const jiraFields = JSON.parse(process.env.ISSUES_JIRA_FIELDS);
22
+
23
+ let requestBody = JSON.stringify({
24
+ fields: {
25
+ ...jiraFields,
26
+ "project": {
27
+ "key": jiraProject
28
+ },
29
+ "issuetype": {
30
+ "name": jiraIssueType
31
+ },
32
+ "summary": "Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }}",
33
+ "description": {
34
+ "version": 1,
35
+ "type": "doc",
36
+ "content": [
37
+ {
38
+ "type": "paragraph",
39
+ "content": [
40
+ {
41
+ "type": "text",
42
+ "text": "Github Issue",
43
+ "marks": [
44
+ {
45
+ "type": "strong"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "type": "text",
51
+ "text": ": "
52
+ },
53
+ {
54
+ "type": "text",
55
+ "text": "${{ github.event.issue.html_url }}",
56
+ "marks": [
57
+ {
58
+ "type": "link",
59
+ "attrs": {
60
+ "href": "${{ github.event.issue.html_url }}"
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "type": "paragraph",
69
+ "content": [
70
+ {
71
+ "type": "text",
72
+ "text": "Description",
73
+ "marks": [
74
+ {
75
+ "type": "strong"
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "type": "text",
81
+ "text": ":"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "type": "codeBlock",
87
+ "content": [
88
+ {
89
+ "type": "text",
90
+ "text": `${{ github.event.issue.body }}`
91
+ }
92
+ ]
93
+ }
94
+ ]
95
+ }
96
+ }
97
+ });
11
98
 
12
- - name: Login to Jira
13
- uses: atlassian/gajira-login@master
99
+ const response = await fetch(`${baseUrl}/rest/api/3/issue`, {
100
+ method: 'POST',
101
+ headers: {
102
+ 'Content-Type': 'application/json',
103
+ 'Authorization': `Basic ${btoa(userEmail + ":" + jiraToken)}`
104
+ },
105
+ body: requestBody
106
+ });
107
+ if (!response.ok) {
108
+ throw new Error(`JIRA API error! Status: ${response.status}`);
109
+ }
110
+ const data = await response.json();
111
+ console.log('Jira Issue Created:', data.key);
14
112
  env:
15
113
  JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
16
114
  JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
17
115
  JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
18
-
19
- - name: Create Jira Issue
20
- id: create_jira
21
- uses: atlassian/gajira-create@master
22
- with:
23
- project: ${{ secrets.JIRA_PROJECT }}
24
- issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
25
- summary: Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }}
26
- description: |
27
- *GitHub Issue:* ${{ github.event.issue.html_url }}
28
-
29
- *Description:*
30
- ${{ github.event.issue.body }}
31
- fields: "${{ secrets.ISSUES_JIRA_FIELDS }}"
116
+ JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }}
117
+ JIRA_ISSUE_TYPE: ${{ secrets.JIRA_ISSUE_TYPE }}
118
+ ISSUES_JIRA_FIELDS: "${{ secrets.ISSUES_JIRA_FIELDS }}"
@@ -14,10 +14,10 @@ jobs:
14
14
 
15
15
  steps:
16
16
  - uses: actions/checkout@v3
17
- - name: Set up Ruby 2.7
17
+ - name: Set up Ruby
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: '2.7'
20
+ ruby-version: '3.3'
21
21
 
22
22
  - name: Publish to RubyGems
23
23
  run: |
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ## Version 0.9.1
4
+ ### Date: 29th-June-2026
5
+ ### Fix
6
+ - Snyk fixes
7
+
8
+ ------------------------------------------------
9
+
3
10
  ## Version 0.9.0
4
11
  ### Date: 15th-June-2026
5
12
  ### Enhancement
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- contentstack (0.9.0)
4
+ contentstack (0.9.1)
5
5
  activesupport (>= 3.2)
6
6
  contentstack_utils (~> 1.2)
7
7
 
@@ -25,7 +25,7 @@ GEM
25
25
  public_suffix (>= 2.0.2, < 8.0)
26
26
  base64 (0.3.0)
27
27
  bigdecimal (4.1.2)
28
- concurrent-ruby (1.3.6)
28
+ concurrent-ruby (1.3.7)
29
29
  connection_pool (3.0.2)
30
30
  contentstack_utils (1.2.3)
31
31
  activesupport (>= 8.0)
@@ -116,10 +116,9 @@ CHECKSUMS
116
116
  addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
117
117
  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
118
118
  bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
119
- bundler (4.0.11) sha256=5bcec0fb78302e48d02ee46f10ee6e6942be647ba5b44a6d1ddfda9a240ce785
120
- concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab
119
+ concurrent-ruby (1.3.7) sha256=4412caec3a5ea2e5fdc52076724c071a81f2c0593d83b2ac8cbb8ca63b3151b0
121
120
  connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
122
- contentstack (0.9.0)
121
+ contentstack (0.9.1)
123
122
  contentstack_utils (1.2.3) sha256=cf2f5f996eb487559fd2d7d48a99262710f53dec62c84c6e325b9a598cd31ba7
124
123
  crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
125
124
  diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
@@ -157,4 +156,4 @@ CHECKSUMS
157
156
  yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28
158
157
 
159
158
  BUNDLED WITH
160
- 4.0.11
159
+ 2.6.3
@@ -1,3 +1,3 @@
1
1
  module Contentstack
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentstack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-15 00:00:00.000000000 Z
11
+ date: 2026-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.1.6
190
+ rubygems_version: 3.5.22
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: Contentstack Ruby client for the Content Delivery API