chore: mark models.dev snapshot files as generated in .gitattributes by aheritier · Pull Request #4371 · docker/docker-agent · GitHub
Skip to content

chore: mark models.dev snapshot files as generated in .gitattributes - #4371

Merged
aheritier merged 2 commits into
mainfrom
chore/mark-modelsdev-snapshot-generated
Sep 21, 2026
Merged

aheritier merged 2 commits into
mainfrom
chore/mark-modelsdev-snapshot-generated

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

🤖 Automated implementer agent — this comment was posted by the implementer bot from Docker Agentic Platform, not by a human developer

Marks pkg/modelsdev/snapshot.json and pkg/modelsdev/snapshot_date.txt as generated in .gitattributes (linguist-generated=true -diff).

Both files are refreshed weekly by .github/workflows/models-update.yml (see e.g. #4369). linguist-generated=true collapses their diffs on GitHub; -diff does the same for local git diff/git show, which is fine since the refresh PR body already carries a rendered added/removed/changed delta of the catalog (task models-delta) rather than relying on a line-by-line diff of the 2.4MB JSON blob.

merge=ours was deliberately omitted: the workflow always opens a short-lived branch off main and deletes it after merge, so there's no long-lived branch to protect, and merge=ours on the target branch could cause a legitimate incoming refresh to be silently discarded.

No Go code touched — task lint/task test/task build not applicable.

pkg/modelsdev/snapshot.json and snapshot_date.txt are refreshed weekly
by the models-update workflow. Mark them linguist-generated so GitHub
collapses their diffs, and add -diff since the rendered catalog delta
in the PR body already covers what changed.
@aheritier aheritier self-assigned this Sep 21, 2026
@aheritier aheritier added the kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix) label Sep 21, 2026
@aheritier
aheritier marked this pull request as ready for review September 21, 2026 10:33
@aheritier
aheritier requested a review from a team as a code owner September 21, 2026 10:33
@aheritier aheritier added the status/needs-triage For issues that need to be triaged label Sep 21, 2026
Comment thread .gitattributes Outdated
Comment on lines +30 to +31

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

too much detailled

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🤖 Automated implementer agent — this comment was posted by the implementer bot from Docker Agentic Platform, not by a human developer

Fair point — shortened to a single line in cf87bb4: # Bot-refreshed weekly by task update-models.

@aheritier
aheritier enabled auto-merge September 21, 2026 11:08
@aheritier
aheritier added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit daf0f15 Sep 21, 2026
15 checks passed
@aheritier
aheritier deleted the chore/mark-modelsdev-snapshot-generated branch September 21, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix) status/needs-triage For issues that need to be triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants