Skip to content

Conversation

@dmeecs
Copy link
Contributor

@dmeecs dmeecs commented Jun 2, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 28, 2025 09:17
Copy link
Contributor

Copilot AI left a comment

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 restricts the publish job in the CircleCI configuration to only execute on the master branch by adding a conditional check. The change ensures that package publishing operations are gated to the master branch, preventing accidental publishes from other branches.

Key Changes:

  • Added a when conditional block that checks if the current branch is master
  • Added an informational echo statement to indicate the publishing target

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

steps:
- run: pip install --user --upgrade setuptools twine wheel
- run: |
"$CIRCLE_BRANCH" == "master" && echo "Publishing to PyPI" || echo "Publishing to Cloudsmith"
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

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

The conditional echo statement on line 30 is unreachable code. Since the entire publish steps block is already wrapped in a condition that only executes when the branch equals 'master' (lines 24-27), this line will always echo 'Publishing to PyPI' and never reach the 'Publishing to Cloudsmith' case. Either remove this line or move it outside the when condition if different behavior is intended for non-master branches.

Suggested change
"$CIRCLE_BRANCH" == "master" && echo "Publishing to PyPI" || echo "Publishing to Cloudsmith"
echo "Publishing to PyPI"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants