Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(cmd-version): add automatic repository un-shallowing to version workflow#1366

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@codejedi365
Copy link
Contributor

Purpose

Rationale

How did you test?

How to Verify


PR Completion Checklist

  • Reviewed & followed theContributor Guidelines

  • Changes Implemented & Validation pipeline succeeds

  • Commits follow theConventional Commits standard
    and are separated into the proper commit type and scope (recommended order: test, build, feat/fix, docs)

  • Appropriate Unit tests added/updated

  • Appropriate End-to-End tests added/updated

  • Appropriate Documentation added/updated and syntax validated for sphinx build (see Contributor Guidelines)

@codejedi365codejedi365force-pushed thefeat/unshallow-repo-automatically branch fromde3525b to06c6906CompareNovember 8, 2025 22:05
Copy link

CopilotAI 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 adds automatic shallow clone detection and unshallowing functionality to Python Semantic Release. The changes eliminate the need for users to manually specifyfetch-depth: 0 in GitHub Actions workflows, as PSR now automatically converts shallow clones to full clones when needed for proper commit history analysis.

Key changes:

  • Addedis_shallow_clone() andgit_unshallow() methods to theGitProject class
  • Integrated shallow clone detection into the version command workflow
  • Updated documentation to reflect thatfetch-depth: 0 is no longer required

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
src/semantic_release/gitproject.pyAdds new methods for detecting and converting shallow clones to full clones
src/semantic_release/cli/commands/version.pyIntegrates shallow clone detection early in the version command workflow
tests/unit/semantic_release/test_gitproject.pyAdds comprehensive unit tests for the new shallow clone functionality with improved test fixtures
tests/e2e/cmd_version/test_version_shallow.pyAdds end-to-end tests for version command with shallow repositories
docs/configuration/automatic-releases/github-actions.rstUpdates documentation to reflect that fetch-depth is no longer required
docs/configuration/configuration-guides/uv_integration.rstRemoves fetch-depth requirement from uv integration examples

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

codejedi365and others added6 commitsNovember 8, 2025 16:24
…workflowNOTICE: If you were previously handling the unshallowing of a repository clonein your CI/CD pipelines, you may now remove that step from your workflow. PSRwill now detect a shallow repository and unshallow it before evaluating the commit history.
@codejedi365codejedi365force-pushed thefeat/unshallow-repo-automatically branch from06c6906 tof06e780CompareNovember 8, 2025 23:24
@codejedi365codejedi365 merged commit90a1ffa intopython-semantic-release:masterNov 9, 2025
9 checks passed
@codejedi365codejedi365 deleted the feat/unshallow-repo-automatically branchNovember 9, 2025 04:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@codejedi365

[8]ページ先頭

©2009-2025 Movatter.jp