Skip to content

ci(release): install release-please, dependabot groups, stale workflow - #395

Merged
LucasSantana-Dev merged 3 commits into
mainfrom
chore/release-automation
Jul 24, 2026
Merged

ci(release): install release-please, dependabot groups, stale workflow#395
LucasSantana-Dev merged 3 commits into
mainfrom
chore/release-automation

Conversation

@LucasSantana-Dev

@LucasSantana-Dev LucasSantana-Dev commented Jul 24, 2026

Copy link
Copy Markdown
Owner

What

Release automation catch-up, approved by the repo owner:

  1. release-please (googleapis/release-please-action@v4, SHA-pinned per repo convention) with release-type: simple (shell/infra repo, not an npm package). release-please-config.json + .release-please-manifest.json pinned at the current version 2.13.0. Triggers on push to main.
  2. dependabot.yml: added groups: minor-patch (minor+patch batched into one PR, majors stay separate) to all four ecosystems (pip, docker-compose, docker, github-actions) and normalized open-pull-requests-limit to 5 everywhere (was 3 for docker/github-actions). Weekly schedule, target-branch release, reviewers/labels unchanged.
  3. stale.yml (actions/stale@v9, SHA-pinned): PRs only (days-before-issue-*: -1), 30 days to stale, 7 days to close, no exempt labels.

Operational note (no action taken, per instructions)

release-please works with the default GITHUB_TOKEN, but two caveats apply to this repo:

  • Resources it creates (release PRs, tags) do not trigger further workflow runs, so the required checks (pre-commit, test, CodeQL, CodeRabbit) would not run on release-please's release PRs, which blocks merging them under branch protection. If that bite shows up in practice, the fix is a PAT secret (e.g. RELEASE_PLEASE_TOKEN) wired into the workflow's token: input. No secret was created here.
  • If the run ever fails with "GitHub Actions is not permitted to create or approve pull requests", enable Settings > Actions > General > "Allow GitHub Actions to create and approve pull requests".

Notes

  • Action refs are SHA-pinned with version comments to satisfy workflow-ref-guard (mutable major tags like @v4/@v9 are flagged on PRs).
  • v2.13.0 GitHub Release was created separately (catch-up); the changelog entry for 2.13.0 already existed on main via the release-cut commit.

Summary by cubic

Automates releases and housekeeping: adds release-please, groups Dependabot minor/patch bumps, and auto-stales old PRs. This standardizes versioning from 2.13.0 and reduces PR noise.

  • New Features

    • Add googleapis/release-please-action@v4 workflow in manifest mode on push to main; include release-please-config.json + .release-please-manifest.json pinned at 2.13.0; action SHA-pinned; set write perms for contents/issues/PRs.
    • Update dependabot.yml: group minor/patch for pip, docker-compose, docker, and github-actions; set open PR limit to 5.
    • Add actions/stale@v9 workflow for PRs only: stale after 30 days, close after 7; action SHA-pinned; include issues: write permission.
  • Migration

    • Release PRs from the default GITHUB_TOKEN may not trigger required checks. If blocked, set a PAT secret (e.g., RELEASE_PLEASE_TOKEN) and pass it via the action token input.
    • If you see “GitHub Actions is not permitted to create or approve pull requests,” enable Actions setting “Allow GitHub Actions to create and approve pull requests.”

Written for commit 178a040. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features

    • Added automated release creation when changes are pushed to the main branch.
    • Added scheduled management of stale pull requests, with manual triggering available.
  • Chores

    • Improved automated dependency update grouping and limits.
    • Updated release configuration and version tracking for the 2.13.0 release.

@github-actions

Copy link
Copy Markdown

[hermes] code review (7b63090)

hermes: review unavailable — agent-box unreachable or error. Check /home/luk-server/agent-logs/hermes-pr-review-395-20260723-224542.log.


Advisory only — not a blocking gate.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Release Please automation, Dependabot grouping, and stale pull request handling were configured through repository configuration files and GitHub Actions workflows.

Changes

Release automation

Layer / File(s) Summary
Configure and run Release Please
release-please-config.json, .release-please-manifest.json, .github/workflows/release-please.yml
The root package uses the simple release strategy with version 2.13.0, and a workflow runs Release Please on pushes to main.

Repository maintenance automation

Layer / File(s) Summary
Group dependency updates
.github/dependabot.yml
Minor and patch updates are grouped for pip, Docker Compose, Docker, and GitHub Actions; Docker and GitHub Actions allow five open update PRs.
Configure stale pull request handling
.github/workflows/stale.yml
Pull requests become stale after 30 days and close after 7 days; issues are excluded, with scheduled and manual triggers.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main CI automation changes: release-please, Dependabot grouping, and the stale workflow.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/release-automation

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

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release-please.yml:
- Around line 16-18: Remove the release-type input from the
googleapis/release-please-action step so the workflow uses the existing
release-please-config.json and .release-please-manifest.json in manifest mode;
leave the action reference and other workflow settings unchanged.

In @.github/workflows/stale.yml:
- Around line 8-9: Update the workflow permissions block in stale.yml to include
issues: write alongside the existing pull-requests: write permission, ensuring
actions/stale has both required write permissions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 55cfc0c7-0d37-49d2-9300-f627ec2ed802

📥 Commits

Reviewing files that changed from the base of the PR and between 17d0d78 and 7b63090.

📒 Files selected for processing (5)
  • .github/dependabot.yml
  • .github/workflows/release-please.yml
  • .github/workflows/stale.yml
  • .release-please-manifest.json
  • release-please-config.json

Comment thread .github/workflows/release-please.yml Outdated
Comment thread .github/workflows/stale.yml

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .github/workflows/stale.yml
Comment thread .github/workflows/release-please.yml Outdated
Comment thread .github/workflows/release-please.yml
Comment thread .github/workflows/release-please.yml Outdated
Comment thread release-please-config.json
Comment thread .github/workflows/release-please.yml
@LucasSantana-Dev
LucasSantana-Dev merged commit 3b407ae into main Jul 24, 2026
24 checks passed
@LucasSantana-Dev
LucasSantana-Dev deleted the chore/release-automation branch July 24, 2026 01:57
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