Skip to content

feat: label the re-enable PR and the Hub spec-bump PR and issue with hub - #734

Merged
esraagamal6 merged 1 commit into
mainfrom
claude/hub-label-automation-prs
Oct 14, 2026
Merged

esraagamal6 merged 1 commit into
mainfrom
claude/hub-label-automation-prs

Conversation

@esraagamal6

Copy link
Copy Markdown
Collaborator

What

Every PR and issue the Hub automation opens carries the hub label, except three. This adds it to them:

  • The re-enable check's draft PR (hub-reenable-check.sh): it carried only nightly-api-fix.
  • The spec-bump PR (spec-bump-open-pr.sh), when it opens and when it finds one already open.
  • The spec-bump tracking issue (spec-bump-report.sh), when it opens and on every update.

How

  • The spec-bump check also runs for camunda-oca, so a new config_label helper in spec-bump-common.sh returns hub for camunda-hub only and nothing for any other config.
  • For the spec-bump PR and issue the label is added with a separate best-effort edit, not --label on create, so a label that failed to create can never lose the PR or issue itself (the same pattern the issue script already uses for missing-coverage).
  • The re-enable PR uses --label nightly-api-fix --label hub, like the label it already pre-creates.

Notes

  • Tests: tests/request-validation/hub-label-automation.test.ts (4 tests) runs the real config_label helper for both configs and checks that each script adds the label where intended. It passes, with Biome and tsc clean.
  • I ran it with a minimal vitest config: the default config's global spec-pin check fails in my environment (the local bundled spec is behind the pin), unrelated to this change.
  • Not run against real GitHub. The hub label already exists in the repo; the scripts still try to create it best-effort.
  • Docs for people already say to add hub to generator PRs (see docs: one-page how-it-works guide for the Hub team, and trim the Hub guides #711).

🤖 Generated with Claude Code

https://claude.ai/code/session_01G3526HsTZMmihMi94p34Pr


Generated by Claude Code

The automation PRs and issues already carry hub except these. The spec-bump check also runs for camunda-oca, so the label is added for the Hub config only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3526HsTZMmihMi94p34Pr
@esraagamal6 esraagamal6 added the hub Camunda Hub (Web Modeler) API config label Oct 14, 2026 — with Claude
Copilot AI balanced review requested due to automatic review settings October 14, 2026 10:26
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused labeling changes are correctly scoped, best-effort where required, and covered by regression tests.

0 open findings

What changed in this PR

Adds consistent hub labeling to Hub automation artifacts while keeping OCA spec-bump artifacts unchanged.

Changes:

  • Adds a config-aware spec-bump label helper.
  • Labels Hub spec-bump PRs, tracking issues, and re-enable PRs.
  • Adds regression tests covering both configurations and affected scripts.
File Description
.github/​scripts/​spec-bump-common.sh Adds the config-specific label helper.
.github/​scripts/​spec-bump-open-pr.sh Labels new and existing Hub bump PRs.
.github/​scripts/​spec-bump-report.sh Labels new and existing Hub tracking issues.
.github/​scripts/​hub-reenable-check.sh Labels re-enable PRs as Hub-related.
tests/​request-validation/​hub-label-automation.test.ts Tests label selection and script integration.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@esraagamal6
esraagamal6 merged commit eb2fcbb into main Oct 14, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hub Camunda Hub (Web Modeler) API config

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants