-
Notifications
You must be signed in to change notification settings - Fork 0
Modularised repo changes v2 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 51 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
ea3cf4c
feat: AM2.0 suppport in config module
869992d
Revert "Revert "udpated schema json to indvidual content type files""
cs-raj 86b8b86
Merge branch 'v2-beta-dev' into enhancement/DX-4443
1f3c005
Merge branch 'v2-beta-dev' into enhancement/DX-4443
6e05731
merged latest changes
shafeeqd959 7d54851
Merge pull request #2419 from contentstack/v2-beta
cs-raj aba38e0
Merge branch 'v2-beta-dev' of github.com:contentstack/cli into revert…
shafeeqd959 9f08342
fix: log mode consistecny
e94650b
fix: update the logic to resolve host
b2b2386
Merge branch 'v2-beta-dev' into enhancement/DX-4443
8ad5101
version bumps
b1c1220
fixed audit plugin
shafeeqd959 f441cb8
feat: validate referenced entry content types in entries audit
cs-raj 0cddca4
Removed Redundant Code
cs-raj d901097
fix: update schema handling in content types and field rules tests
harshitha-cstk 0772c4f
Merge pull request #2424 from contentstack/feat/DX-3800-beta
cs-raj 66173ad
bumped management sdk
shafeeqd959 4dcea65
merged latest changes
shafeeqd959 1aeee84
Merge branch 'v2-beta-dev' into enhancement/DX-4443
e67c296
Merge pull request #2387 from contentstack/enhancement/DX-4443
naman-contentstack 6eea098
Merge branch 'v2-beta-dev' into fix/DX-4416
naman-contentstack 45b5183
merged latest changes
shafeeqd959 258723c
removed invalid arguement
shafeeqd959 5dc9de6
Merge pull request #2399 from contentstack/revert-2398-revert-2375-DX…
shafeeqd959 c34d73a
fix: Experience import errors when variants reference Lytics audiences
cs-raj 46b0515
Merge pull request #2428 from contentstack/fix/DX-3445-beta
cs-raj 5541a49
Revert "Revert "udpated schema json to indvidual content type files""
cs-raj e4d3274
fixed audit plugin
shafeeqd959 be8edcd
fix: update schema handling in content types and field rules tests
harshitha-cstk c2841f1
bumped management sdk
shafeeqd959 2df30b7
removed invalid arguement
shafeeqd959 22000ac
fix: Experience import errors when variants reference Lytics audiences
cs-raj b0e6ea0
chore: version bumps
42e10f3
Merge branch 'v2-beta-dev' into fix/DX-4416
3753e9e
Merge pull request #2421 from contentstack/fix/DX-4416
naman-contentstack 70db8b9
first commit
shafeeqd959 0446389
added workflows and scripts
shafeeqd959 544bb54
updated release workflow
shafeeqd959 8185a2c
sca-scan.yml
Aravind-Kumar-cstk 8408606
policy-scan.yml
Aravind-Kumar-cstk d4625dd
issues-jira.yml
Aravind-Kumar-cstk de4f480
Added codeowners
Aravind-Kumar-cstk 00534b9
merged latest workflow changes
shafeeqd959 41b42ff
updated scripts for better clean up, updated ignore files
shafeeqd959 95fe1dd
updated clean packages
shafeeqd959 6cd3dee
updated clean packages
shafeeqd959 7b87e64
updated build with oclif manifest
shafeeqd959 621032c
added update lock file script
shafeeqd959 c4aceb7
updated workflow
shafeeqd959 e68f100
updated versions
shafeeqd959 412a82b
corrected versions
shafeeqd959 250ce07
updated readme
shafeeqd959 4c53112
updated release json
shafeeqd959 64207b3
updated workflow
shafeeqd959 3918215
updated lock file
shafeeqd959 d551782
fixed test cases
shafeeqd959 48983ac
fixed test cases
shafeeqd959 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| * @contentstack/devex-pr-reviewers | ||
| .github/workflows/sca-scan.yml @contentstack/security-admin | ||
| .github/workflows/issues-jira.yml @contentstack/security-admin | ||
| .github/workflows/policy-scan.yml @contentstack/security-admin | ||
| **/.snyk @contentstack/security-admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "releaseAll": true, | ||
| "plugins": { | ||
| "utilities": false, | ||
| "command": false, | ||
| "config": false, | ||
| "auth": false, | ||
| "export": false, | ||
| "import": false, | ||
| "clone": false, | ||
| "export-to-csv": false, | ||
| "migrate-rte": false, | ||
| "migration": false, | ||
| "seed": false, | ||
| "bootstrap": false, | ||
| "bulk-publish": false, | ||
| "dev-dependencies": false, | ||
|
shafeeqd959 marked this conversation as resolved.
Outdated
|
||
| "launch": false, | ||
| "branches": false, | ||
| "core": false | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| # For most projects, this workflow file will not need changing; you simply need | ||
| # to commit it to your repository. | ||
| # | ||
| # You may wish to alter this file to override the set of languages analyzed, | ||
| # or to provide custom queries or build logic. | ||
| # | ||
| # ******** NOTE ******** | ||
| # We have attempted to detect the languages in your repository. Please check | ||
| # the `language` matrix defined below to confirm you have the correct set of | ||
| # supported CodeQL languages. | ||
| # | ||
| name: "CodeQL" | ||
|
|
||
| on: | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: '*' | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: [ 'javascript' ] | ||
| # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
| # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3.5.3 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v2 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| # If you wish to specify custom queries, you can do so here or in a config file. | ||
| # By default, queries listed here will override any specified in a config file. | ||
| # Prefix the list here with "+" to use these queries and those in the config file. | ||
|
|
||
| # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
| # queries: security-extended,security-and-quality | ||
|
|
||
|
|
||
| # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
| # If this step fails, then you should remove it and run the build manually (see below) | ||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@v2 | ||
|
|
||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
|
||
| # If the Autobuild fails above, remove it and uncomment the following three lines. | ||
| # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
|
||
| # - run: | | ||
| # echo "Run, Build Application using script" | ||
| # ./location_of_script_within_repo/buildscript.sh | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Create Jira Ticket for Github Issue | ||
|
|
||
| on: | ||
| issues: | ||
| types: [opened] | ||
|
|
||
| jobs: | ||
| issue-jira: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
||
| - name: Login to Jira | ||
| uses: atlassian/gajira-login@master | ||
| env: | ||
| JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
| JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
| JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
|
||
| - name: Create Jira Issue | ||
| id: create_jira | ||
| uses: atlassian/gajira-create@master | ||
| with: | ||
| project: ${{ secrets.JIRA_PROJECT }} | ||
| issuetype: ${{ secrets.JIRA_ISSUE_TYPE }} | ||
| summary: Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }} | ||
| description: | | ||
| *GitHub Issue:* ${{ github.event.issue.html_url }} | ||
|
|
||
| *Description:* | ||
| ${{ github.event.issue.body }} | ||
| fields: "${{ secrets.ISSUES_JIRA_FIELDS }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Checks the security policy and configurations | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| jobs: | ||
| security-policy: | ||
| if: github.event.repository.visibility == 'public' | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| - name: Checks for SECURITY.md policy file | ||
| run: | | ||
| if ! [[ -f "SECURITY.md" || -f ".github/SECURITY.md" ]]; then exit 1; fi | ||
| security-license: | ||
| if: github.event.repository.visibility == 'public' | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| - name: Checks for License file | ||
| run: | | ||
| expected_license_files=("LICENSE" "LICENSE.txt" "LICENSE.md" "License.txt") | ||
| license_file_found=false | ||
| current_year=$(date +"%Y") | ||
|
|
||
| for license_file in "${expected_license_files[@]}"; do | ||
| if [ -f "$license_file" ]; then | ||
| license_file_found=true | ||
| # check the license file for the current year, if not exists, exit with error | ||
| if ! grep -q "$current_year" "$license_file"; then | ||
| echo "License file $license_file does not contain the current year." | ||
| exit 2 | ||
| fi | ||
| break | ||
| fi | ||
| done | ||
|
|
||
| if [ "$license_file_found" = false ]; then | ||
| echo "No license file found. Please add a license file to the repository." | ||
| exit 1 | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| name: Release CLI Plugins (v2 Beta) | ||
|
|
||
| on: | ||
| push: | ||
| branches: [v2-beta] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10.28.0 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22.x' | ||
|
|
||
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Install pnpm | ||
| run: corepack prepare pnpm@10.28.0 --activate | ||
|
|
||
| - name: Clean the repository | ||
| run: pnpm run clean:all | ||
|
|
||
| - name: Install root dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build all plugins | ||
| run: pnpm -r --sort run build | ||
|
|
||
| - name: Reading Configuration | ||
| id: release_config | ||
| uses: rgarcia-phi/json-to-variables@v1.1.0 | ||
| with: | ||
| filename: .github/config/release.json | ||
| prefix: release | ||
|
|
||
| # Variants | ||
| - name: Publishing variants (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-variants/package.json | ||
| tag: beta | ||
|
|
||
| # Export | ||
| - name: Publishing export (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-export/package.json | ||
| tag: beta | ||
|
|
||
| # Audit | ||
| - name: Publishing audit (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-audit/package.json | ||
| tag: beta | ||
|
|
||
| # Import | ||
| - name: Publishing import (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-import/package.json | ||
| tag: beta | ||
|
|
||
| # Clone | ||
| - name: Publishing clone (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-clone/package.json | ||
| tag: beta | ||
|
|
||
| # Import Setup | ||
| - name: Publishing import-setup (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-import-setup/package.json | ||
| tag: beta | ||
|
|
||
| # Export to CSV | ||
| - name: Publishing export to csv (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-export-to-csv/package.json | ||
| tag: beta | ||
|
|
||
| # Migration | ||
| - name: Publishing migration (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-migration/package.json | ||
| tag: beta | ||
|
|
||
| # Seed | ||
| - name: Publishing seed (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-seed/package.json | ||
| tag: beta | ||
|
|
||
| # Bootstrap | ||
| - name: Publishing bootstrap (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-bootstrap/package.json | ||
| tag: beta | ||
|
|
||
| # Branches | ||
| - name: Publishing branches (Beta) | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| package: ./packages/contentstack-branches/package.json | ||
| tag: beta | ||
|
|
||
| - name: Create Beta Release | ||
| id: create_release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.PKG_TOKEN }} | ||
| VERSION: ${{ steps.publish-core.outputs.version }} | ||
| run: | | ||
| # Get the previous beta release for comparison | ||
| PREVIOUS_BETA=$(gh release list --limit 10 | grep 'beta' | head -1 | cut -f1) | ||
|
|
||
| if [ -n "$PREVIOUS_BETA" ]; then | ||
| gh release create v"$VERSION" --title "Beta Release $VERSION" --notes-from-tag "$PREVIOUS_BETA" --prerelease | ||
| else | ||
| gh release create v"$VERSION" --title "Beta Release $VERSION" --generate-notes --prerelease | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Source Composition Analysis Scan | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| jobs: | ||
| security-sca: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| - name: Run Snyk to check for vulnerabilities | ||
| uses: snyk/actions/node@master | ||
| env: | ||
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
| with: | ||
| args: --all-projects --fail-on=all | ||
| json: true | ||
| continue-on-error: true | ||
| - uses: contentstack/sca-policy@main |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.