Skip to content

Conversation

Copy link

Copilot AI commented Jan 23, 2026

The semantic-release dependency upgrades (v17→v25) require configuration updates to match modern patterns used across Parse projects.

Changes

  • Safer imports: Use destructured imports (const { readFile } vs const fs)
  • Defensive branch handling: Add optional chaining to prevent crashes when GITHUB_REF is undefined
  • Standardized breaking change detection: Use only ['BREAKING CHANGE'] in noteKeywords (consistent with parse-server)
  • Fixed template escaping: Escape $ in releasedLabels template string (\${nextRelease.channel})
  • Simplified template loading: Remove redundant readFile wrapper function

Example

// Before
const branch = ref.split('/').pop();  // Crashes if ref is undefined

// After  
const branch = ref?.split('/')?.pop() || '(current branch could not be determined)';

Config validated to load successfully with semantic-release v25.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@parseplatformorg
Copy link

parseplatformorg commented Jan 23, 2026

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

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

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

Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor: Update and remove unused semantic-release dependencies refactor: Modernize semantic-release config for v25 compatibility Jan 23, 2026
Copilot AI requested a review from mtrezza January 23, 2026 20:03
@mtrezza mtrezza marked this pull request as ready for review January 24, 2026 03:03
@mtrezza mtrezza merged commit 6a6f1ab into dependabot/npm_and_yarn/multi-1b899e3912 Jan 24, 2026
2 of 6 checks passed
Sign up for free to 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.

3 participants