contentstack 0.9.1 → 0.9.2
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/CHANGELOG.md +7 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +5 -4
- data/lib/contentstack/version.rb +1 -1
- metadata +2 -3
- data/.github/workflows/issues-jira.yml +0 -118
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99ec685f575a322168f56c63337e0ae98ad397a55e6f04a46dd6000785be90ca
|
|
4
|
+
data.tar.gz: 5dd2243bea0da8ef6ab411eec56c2128b3c56e000c32180634082d7c2501dd45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc0a03ecdd6d58de96e6e98d1e45be6b64086be3f4455aa221cc3d3055ac0691fdecfc0dd2e7bc0628dcef274498cddad34992ff8b26f458c839a7933ae91013
|
|
7
|
+
data.tar.gz: 22139d830825ecfab0ff6e662f05ae946f2a87f5b929d51fae13302900a0a08215201c2a08fc023b2b23282a0d9951812003c5c2f2fe6365f395783fe3c0e379
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -4,6 +4,9 @@ source "https://rubygems.org"
|
|
|
4
4
|
# Transitive via contentstack_utils; pin until upstream requires >= 1.19.1 (SNYK-RUBY-NOKOGIRI-15315717).
|
|
5
5
|
gem "nokogiri", ">= 1.19.1"
|
|
6
6
|
|
|
7
|
+
# Transitive via activesupport; pin until upstream requires >= 2.19.9 (SNYK-RUBY-JSON-17739957).
|
|
8
|
+
gem "json", ">= 2.19.9"
|
|
9
|
+
|
|
7
10
|
# Ruby 4.0.x on recent macOS often segfaults in OpenSSL during `bundle` (not fixable in-app). Use Ruby 3.3+ (see .ruby-version).
|
|
8
11
|
|
|
9
12
|
gemspec
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
contentstack (0.9.
|
|
4
|
+
contentstack (0.9.2)
|
|
5
5
|
activesupport (>= 3.2)
|
|
6
6
|
contentstack_utils (~> 1.2)
|
|
7
7
|
|
|
@@ -39,7 +39,7 @@ GEM
|
|
|
39
39
|
hashdiff (1.2.1)
|
|
40
40
|
i18n (1.14.8)
|
|
41
41
|
concurrent-ruby (~> 1.0)
|
|
42
|
-
json (2.
|
|
42
|
+
json (2.20.0)
|
|
43
43
|
logger (1.7.0)
|
|
44
44
|
minitest (6.0.6)
|
|
45
45
|
drb (~> 2.0)
|
|
@@ -105,6 +105,7 @@ PLATFORMS
|
|
|
105
105
|
|
|
106
106
|
DEPENDENCIES
|
|
107
107
|
contentstack!
|
|
108
|
+
json (>= 2.19.9)
|
|
108
109
|
nokogiri (>= 1.19.1)
|
|
109
110
|
rspec (~> 3.13.0)
|
|
110
111
|
simplecov (~> 0.22.0)
|
|
@@ -118,7 +119,7 @@ CHECKSUMS
|
|
|
118
119
|
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
|
|
119
120
|
concurrent-ruby (1.3.7) sha256=4412caec3a5ea2e5fdc52076724c071a81f2c0593d83b2ac8cbb8ca63b3151b0
|
|
120
121
|
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
121
|
-
contentstack (0.9.
|
|
122
|
+
contentstack (0.9.2)
|
|
122
123
|
contentstack_utils (1.2.3) sha256=cf2f5f996eb487559fd2d7d48a99262710f53dec62c84c6e325b9a598cd31ba7
|
|
123
124
|
crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
|
|
124
125
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
@@ -126,7 +127,7 @@ CHECKSUMS
|
|
|
126
127
|
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
127
128
|
hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
|
|
128
129
|
i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5
|
|
129
|
-
json (2.
|
|
130
|
+
json (2.20.0) sha256=9362bc6e55a952b056abf9167cf053358181c904cb70cd6eee0808ea830fc32b
|
|
130
131
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
131
132
|
minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
|
|
132
133
|
nokogiri (1.19.3-aarch64-linux-gnu) sha256=46b89e5d7b9e844c2ee360794240c6ea2a4e6fa0c5892a4ed487db621224b639
|
data/lib/contentstack/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.9.2
|
|
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
|
|
11
|
+
date: 2026-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -106,7 +106,6 @@ files:
|
|
|
106
106
|
- ".github/workflows/back-merge-pr.yml"
|
|
107
107
|
- ".github/workflows/check-version-bump.yml"
|
|
108
108
|
- ".github/workflows/codeql-analysis.yml"
|
|
109
|
-
- ".github/workflows/issues-jira.yml"
|
|
110
109
|
- ".github/workflows/policy-scan.yml"
|
|
111
110
|
- ".github/workflows/release-gem.yml"
|
|
112
111
|
- ".github/workflows/sca-scan.yml"
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
name: Create Jira Ticket for Github Issue
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
issues:
|
|
5
|
-
types: [opened, reopened]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
issue-jira:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
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
|
-
});
|
|
98
|
-
|
|
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);
|
|
112
|
-
env:
|
|
113
|
-
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
|
|
114
|
-
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
|
|
115
|
-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
|
|
116
|
-
JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }}
|
|
117
|
-
JIRA_ISSUE_TYPE: ${{ secrets.JIRA_ISSUE_TYPE }}
|
|
118
|
-
ISSUES_JIRA_FIELDS: "${{ secrets.ISSUES_JIRA_FIELDS }}"
|