Skip to content

Add cache policy keep days to project creation - #548

Merged
jacobwgillespie merged 4 commits into
mainfrom
cursor/add-project-cache-retention-4f35
Jul 31, 2026
Merged

Add cache policy keep days to project creation#548
jacobwgillespie merged 4 commits into
mainfrom
cursor/add-project-cache-retention-4f35

Conversation

@jacobwgillespie

@jacobwgillespie jacobwgillespie commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

  • add --cache-policy-keep-days to depot projects create, matching the API's CachePolicy.KeepDays field
  • send the configured retention in CachePolicy.KeepDays
  • default retention to 14 days, reject negative values, and allow 0 for no limit

Resolves DEP-5626.

Testing

  • go test ./pkg/cmd/projects
  • go test ./...
  • go fmt ./...
  • go mod tidy
  • go vet ./pkg/cmd/projects
  • go run ./cmd/depot projects create --help

Linear Issue: DEP-5626

Open in Web Open in Cursor 

Co-authored-by: Jacob Gillespie <jacobwgillespie@gmail.com>
@linear-code

linear-code Bot commented Jul 31, 2026

Copy link
Copy Markdown

DEP-5626

Co-authored-by: Jacob Gillespie <jacobwgillespie@gmail.com>
@cursor cursor Bot changed the title Add cache retention policy to project creation Add cache retention days to project creation Jul 31, 2026
@jacobwgillespie
jacobwgillespie marked this pull request as ready for review July 31, 2026 13:50
Co-authored-by: Jacob Gillespie <jacobwgillespie@gmail.com>
@cursor cursor Bot changed the title Add cache retention days to project creation Add cache policy keep days to project creation Jul 31, 2026
Co-authored-by: Jacob Gillespie <jacobwgillespie@gmail.com>
cursor[bot]
cursor Bot approved these changes Jul 31, 2026

@cursor cursor Bot 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.

Approved. Cursor Bugbot and Cursor Security Agent completed successfully with no findings requiring human review. No reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@jacobwgillespie
jacobwgillespie merged commit 32ad722 into main Jul 31, 2026
13 checks passed
@jacobwgillespie
jacobwgillespie deleted the cursor/add-project-cache-retention-4f35 branch July 31, 2026 14:00
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.

2 participants