Skip to content

chore: auto-tag with latest json-server version#137

Merged
codfish merged 1 commit intomainfrom
feat/auto-tag
Mar 14, 2026
Merged

chore: auto-tag with latest json-server version#137
codfish merged 1 commit intomainfrom
feat/auto-tag

Conversation

@codfish
Copy link
Owner

@codfish codfish commented Mar 14, 2026

Summary by CodeRabbit

  • Chores
    • Added an automated tagging workflow to streamline release tagging on main.
    • Updated ignore rules to exclude local AI assistant data while preserving essential settings and skills files.

@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4aa007de-4062-4621-a700-66c91929eeff

📥 Commits

Reviewing files that changed from the base of the PR and between 47f1f94 and 8d059d9.

📒 Files selected for processing (2)
  • .github/workflows/tag.yml
  • .gitignore

📝 Walkthrough

Walkthrough

Adds a new GitHub Actions "Auto Tag" workflow that reads json-server version from package.json and creates or updates git tags on pushes to main. Also updates .gitignore to ignore most of .claude/ while keeping .claude/settings.json and .claude/skills.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
​.github/workflows/tag.yml
Adds "Auto Tag" workflow: triggers on pushes to main, reads package.json for json-server version, validates it, finds latest tag, then creates or force-updates an annotated git tag and pushes to origin.
Gitignore Configuration
​.gitignore
Adds rules to ignore .claude/* while explicitly re-including .claude/settings.json and .claude/skills.

Sequence Diagram(s)

sequenceDiagram
  participant Push as Developer Push
  participant GH as GitHub Actions (Auto Tag)
  participant Repo as Repository (package.json, tags)
  participant Git as Git Remote (origin)

  Push->>GH: push to main (with write perms)
  GH->>Repo: checkout code
  GH->>Repo: read package.json json-server version
  GH->>GH: validate version, determine latest tag
  alt tag exists and equals version
    GH->>Repo: update tag locally (git tag -fa)
  else
    GH->>Repo: create annotated tag (git tag -a)
  end
  GH->>Git: force-push tag to origin
  Git-->>GH: confirm push
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰
I nibble tags from package.json bright,
Hop through workflows in the quiet night,
I tuck away Claude's files with care,
Annotated hops released to air,
A tiny rabbit's CI delight.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'chore: auto-tag with latest json-server version' accurately summarizes the main change: introducing an automated tagging workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/auto-tag
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use oxc to improve the quality of JavaScript and TypeScript code reviews.

Add a configuration file to your project to customize how CodeRabbit runs oxc.

@codfish codfish marked this pull request as ready for review March 14, 2026 19:12
@github-actions
Copy link

github-actions bot commented Mar 14, 2026

🚀 PR build published. Run docker run -p 3000:3000 codfish/json-server@sha256:e319391ff549b7d98f8d6d079bdbb841f12b02bc82b6d5feae1ca947a7abc0f5

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/tag.yml:
- Around line 23-27: Validate the extracted VERSION (from the jq command
assigned to the VERSION variable) before using it: check that VERSION is
non-empty and not the literal "null" (or other invalid values) and if invalid,
log an error and exit non-zero (or skip tag creation) instead of proceeding;
update the shell snippet that sets VERSION (the jq call for
'.dependencies["json-server"]') to capture failures and then add a guard that
tests VERSION (e.g., if [ -z "$VERSION" ] || [ "$VERSION" = "null" ]; then ...),
emitting a clear message and exiting to prevent creating an invalid tag.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1b578a03-e502-447d-8681-1ee7fe9d3e5d

📥 Commits

Reviewing files that changed from the base of the PR and between 5dea3b6 and 47f1f94.

📒 Files selected for processing (2)
  • .github/workflows/tag.yml
  • .gitignore

@codfish codfish merged commit d941da4 into main Mar 14, 2026
1 of 2 checks passed
@codfish codfish deleted the feat/auto-tag branch March 14, 2026 19:19
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.

1 participant