Skip to content

Conversation

@uruemu
Copy link

@uruemu uruemu commented Oct 15, 2025

Jira: https://circleci.atlassian.net/browse/EXEC-5710

Important note : Release-please will only create a release PR for releases with a feat or fix commit message. If your PR starts with chore , your changes will NOT be released.

Description

Add shallow checkout method which requires a positivedepth value.

How to validate

Unit tests:

task test

Add steps to setup the extension and check that the PR works

@uruemu uruemu changed the title Uruemu/validate-shallow-checkout Add support for shallow checkout type Oct 15, 2025
@uruemu uruemu changed the title Add support for shallow checkout type feat(EXEC-5710): Add support for shallow checkout type Oct 15, 2025
val.addDiagnostic(protocol.Diagnostic{
Severity: protocol.DiagnosticSeverityError,
Range: step.Range,
Message: "Checkout depth must be a valid integer when using the shallow checkout method",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Message: "Checkout depth must be a valid integer when using the shallow checkout method",
Message: "Checkout depth is not an integer",

Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend using the suggested message just to make the error a little clearer and to make the message easier to differentiate from the message we send when checkout depth is negative

Copy link
Contributor

@parkuman parkuman left a comment

Choose a reason for hiding this comment

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

Would be nice to have this listed in the hover hints provided by schema.json

Also might be outside the scope, but now that we have a few methods for checkout, it would be cool to add it to the completion code so you can do CTRL+space when typing your checkout method and it lists the possible options for you. I think this is inside complete/steps.go somewhere

@uruemu uruemu force-pushed the uruemu/validate-shallow-checkout branch from ae63a2d to 6a403a7 Compare October 21, 2025 14:25
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