Skip to content

Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions and server logs query - #203

Merged
chhavi-mandowara-cstk merged 23 commits into
mainfrom
staging
Aug 5, 2026

Conversation

@chhavi-mandowara-cstk

@chhavi-mandowara-cstkchhavi-mandowara-cstk commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

feat: Add Contentstack Authentication toggle to project creation
feat: add support for choosing namespace in case of multiple github connections
fix: update GitHub connection URL to direct users to connected accounts settings
chore: bump cli-command to 1.8.4 and cli-utilities to 1.18.5
fix: Update get Server logs query to GetServerlessLogsV2 to match the updated windowed server logs query

Aravind-Kumar-cstkand others added 10 commits July 10, 2026 16:25
Set the isContentstackAuthenticationEnabled environment field when
creating a new Launch project, for both the GitHub and FileUpload
flows. Contentstack Authentication is enabled by default; users can
opt out with the new --disable-cs-auth flag or by answering "no" at
the interactive prompt (which defaults to enabled).
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
feat: Add Contentstack Authentication toggle to project creation.
…onnections.
- Added functionality to scope queries to the selected GitHub connection namespace in BaseClass methods detectFramework and selectBranch.
- Updated GitHub adapter to handle multiple user connections, allowing users to select a namespace or use a --namespace flag.
- Enhanced tests to cover new namespace selection logic and ensure proper handling of GitHub connections.
- Updated GraphQL queries and types to include namespace information for user connections.
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Tejas Talekar <tejas.talekar@contentstack.com>
Co-Authored-By: Claude <noreply@anthropic.com>
feat: add support for choosing namespace in case of multiple github connections.
fix: update GitHub connection URL to direct users to connected accounts settings
chore: bump cli-command to 1.8.4 and cli-utilities to 1.18.5
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity4025✅ Passed
🟡 Medium Severity00500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

✅ BUILD PASSED - All security checks passed

ron766-CS
ron766-CS previously approved these changes Jul 23, 2026
Harshi-Shah-CS
Harshi-Shah-CS previously approved these changes Jul 23, 2026
chhavi-mandowara-cstkand others added 6 commits July 23, 2026 15:09
Set the isContentstackAuthenticationEnabled environment field when
creating a new Launch project, for both the GitHub and FileUpload
flows. Contentstack Authentication is enabled by default; users can
opt out with the new --disable-cs-auth flag or by answering "no" at
the interactive prompt (which defaults to enabled).
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
…onnections.
- Added functionality to scope queries to the selected GitHub connection namespace in BaseClass methods detectFramework and selectBranch.
- Updated GitHub adapter to handle multiple user connections, allowing users to select a namespace or use a --namespace flag.
- Enhanced tests to cover new namespace selection logic and ensure proper handling of GitHub connections.
- Updated GraphQL queries and types to include namespace information for user connections.
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Tejas Talekar <tejas.talekar@contentstack.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity4025✅ Passed
🟡 Medium Severity00500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity4025✅ Passed
🟡 Medium Severity00500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

✅ BUILD PASSED - All security checks passed

@chhavi-mandowara-cstkchhavi-mandowara-cstk changed the title Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versionsAdd Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions and server logs queryJul 24, 2026
Set the isContentstackAuthenticationEnabled environment field when
creating a new Launch project, for both the GitHub and FileUpload
flows. Contentstack Authentication is enabled by default; users can
opt out with the new --disable-cs-auth flag or by answering "no" at
the interactive prompt (which defaults to enabled).
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
…onnections.
- Added functionality to scope queries to the selected GitHub connection namespace in BaseClass methods detectFramework and selectBranch.
- Updated GitHub adapter to handle multiple user connections, allowing users to select a namespace or use a --namespace flag.
- Enhanced tests to cover new namespace selection logic and ensure proper handling of GitHub connections.
- Updated GraphQL queries and types to include namespace information for user connections.
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Tejas Talekar <tejas.talekar@contentstack.com>
Co-Authored-By: Claude <noreply@anthropic.com>
rohan-agrawal-csand others added 4 commits August 5, 2026 12:28
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions and server logs query
CopilotAI lite review requested due to automatic review settings August 5, 2026 07:04
@snyk-io

snyk-ioBot commented Aug 5, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

StatusScan Engine Critical High Medium LowTotal (0)
Open Source Security0000 0 issues
Licenses0000 0 issues
Code Security0000 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity23025✅ Passed
🟡 Medium Severity00500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

✅ BUILD PASSED - All security checks passed

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Launch CLI project creation and GitHub integration flow by introducing a Contentstack Authentication toggle, supporting selection/scoping for multiple GitHub connections via namespace, and aligning server logs polling with an updated GraphQL query version. It also bumps several package versions.

Changes:

  • Add --enable-cs-auth/--disable-cs-auth flow and propagate isContentstackAuthenticationEnabled into project creation for both GitHub and FileUpload adapters.
  • Support selecting a GitHub connection when multiple connections exist, including a --namespace flag and namespace-scoped repository/framework/branch queries.
  • Update serverless logs GraphQL query to GetServerlessLogsV2 and adjust polling/tests accordingly; bump dependency versions.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
test/unit/util/logs-polling-utilities.test.tsUpdates mocked server logs payload to getServerlessLogsV2.
src/util/logs-polling-utilities.tsReads server logs from data.getServerlessLogsV2.logs.
src/types/launch.tsAdds isContentstackAuthenticationEnabled and a typed userConnection (incl. namespace).
src/graphql/queries.tsAdds namespace to user connections; updates serverless logs query to V2; removes connectionUid from projects query.
src/commands/launch/logs.tsFixes environment selection to use the chosen environment’s deployments instead of the first environment.
src/commands/launch/index.tsAdds namespace, --enable-cs-auth, --disable-cs-auth flags and an example.
src/adapters/github.tsAdds CS auth prompt/flags handling; supports namespace selection; scopes repository query and improves related error messaging.
src/adapters/github.test.tsAdds tests for namespace selection/scoping and CS auth toggle behavior.
src/adapters/file-upload.tsAdds CS auth prompt/flags handling and passes the value into project creation mutation.
src/adapters/file-upload.test.tsAdds tests for CS auth prompt/flags behavior.
src/adapters/base-class.tsScopes framework detection and branch queries by selected connection namespace; updates GitHub connect URL.
src/adapters/base-class.test.tsAdds tests verifying namespace is included in framework and branch queries.
package.jsonBumps package version and updates dependency versions.
package-lock.jsonUpdates lockfile to reflect bumped deps and transitive changes.
.talismanrcUpdates checksums and adds ignores for adapter test files.
Suppressed comments (1)

src/adapters/github.test.ts:636

  • New inline comment inside the empty catch block violates the repo guideline of not adding code comments, and it can be replaced with an assertion on the thrown error instead.
 try {
await githubAdapterInstance.checkGitRemoteAvailableAndValid();
} catch {
// exitMock throws to halt the flow under test, same as sibling tests in this file
}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadsrc/commands/launch/index.ts
Comment threadsrc/adapters/github.test.ts
Comment thread.talismanrc
@chhavi-mandowara-cstk
chhavi-mandowara-cstk merged commit 5620e5f into mainAug 5, 2026
7 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@chhavi-mandowara-cstk@ron766-CS@AryanBansal-launch@Harshi-Shah-CS@rohan-agrawal-cs@Aravind-Kumar-cstk