Skip to content

Commit 0545320

Browse files
authored
Merge branch 'development' into fix/DX-89
2 parents 860b754 + 5020a96 commit 0545320

File tree

49 files changed

+4320
-1544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4320
-1544
lines changed

.github/config/release.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"releaseAll": true,
3-
"plugins": {
4-
"utilities": false,
5-
"command": false,
6-
"config": false,
7-
"auth": false,
8-
"export": false,
9-
"import": true,
10-
"clone": false,
11-
"export-to-csv": false,
12-
"migrate-rte": false,
13-
"migration": false,
14-
"seed": false,
15-
"bootstrap": false,
16-
"bulk-publish": false,
17-
"dev-dependencies": false,
18-
"launch": false,
19-
"branches": false,
20-
"core": false
21-
}
22-
}
2+
"releaseAll": true,
3+
"plugins": {
4+
"utilities": false,
5+
"command": false,
6+
"config": false,
7+
"auth": false,
8+
"export": false,
9+
"import": false,
10+
"clone": false,
11+
"export-to-csv": false,
12+
"migrate-rte": false,
13+
"migration": false,
14+
"seed": false,
15+
"bootstrap": false,
16+
"bulk-publish": false,
17+
"dev-dependencies": false,
18+
"launch": false,
19+
"branches": false,
20+
"core": false
21+
}
22+
}

.github/workflows/issues-jira.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Create Jira Ticket for Github Issue
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
issue-jira:
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- name: Login to Jira
13+
uses: atlassian/gajira-login@master
14+
env:
15+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
16+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
17+
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 }}"

.github/workflows/jira.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/policy-scan.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Checks the security policy and configurations
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-policy:
7+
if: github.event.repository.visibility == 'public'
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
shell: bash
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Checks for SECURITY.md policy file
15+
run: |
16+
if ! [[ -f "SECURITY.md" || -f ".github/SECURITY.md" ]]; then exit 1; fi
17+
security-license:
18+
if: github.event.repository.visibility == 'public'
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
shell: bash
23+
steps:
24+
- uses: actions/checkout@master
25+
- name: Checks for License file
26+
run: |
27+
if ! [[ -f "LICENSE" || -f "License.txt" || -f "LICENSE.md" ]]; then exit 1; fi

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,19 @@ jobs:
293293
token: ${{ secrets.NPM_TOKEN }}
294294
package: ./packages/contentstack/package.json
295295
- uses: actions/checkout@v4
296+
if: ${{ steps.publish-core.conclusion == 'success' }}
296297
with:
297298
ref: 'prod-qa-pipeline'
298299
- run: echo ${{ steps.publish-core.outputs.version }} > version.md
300+
if: ${{ steps.publish-core.conclusion == 'success' }}
299301
- uses: EndBug/add-and-commit@v9
302+
if: ${{ steps.publish-core.conclusion == 'success' }}
300303
with:
301304
message: 'Released version'
302305
- name: Create Release
306+
if: ${{ steps.publish-core.conclusion == 'success' }}
303307
id: create_release
304308
env:
305309
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
306-
VERSION: ${{ steps.publish-to-npm.outputs.version }}
310+
VERSION: ${{ steps.publish-core.outputs.version }}
307311
run: gh release create v"$VERSION" --title "Release $VERSION" --generate-notes

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/unit-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ jobs:
1919
- name: Install dependencies for all plugins
2020
run: |
2121
npm run setup-repo-old
22-
22+
2323
- name: Run tests for Audit plugin
2424
working-directory: ./packages/contentstack-audit
2525
run: npm run test:unit
2626

27+
- name: Run tests for Contentstack Config
28+
working-directory: ./packages/contentstack-config
29+
run: npm run test
2730
# - name: Fetch latest references
2831
# run: |
2932
# git fetch --prune
@@ -41,11 +44,11 @@ jobs:
4144
# CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
4245
# echo "Changed files:"
4346
# echo "$CHANGED_FILES"
44-
47+
4548
# # Identify affected plugins
4649
# AFFECTED_PLUGINS=$(echo "$CHANGED_FILES" | grep -oP '(?<=^packages/)([^/]+)' | sort -u | tr '\n' ' ')
4750
# echo "Affected plugins: $AFFECTED_PLUGINS"
48-
51+
4952
# # Set output for the next step
5053
# echo "::set-output name=affected_plugins::$AFFECTED_PLUGINS"
5154

@@ -59,4 +62,4 @@ jobs:
5962
# else
6063
# echo "contentstack-audit has not changed. Skipping tests."
6164
# fi
62-
# done
65+
# done

0 commit comments

Comments
 (0)