Skip to content

docs(#2988): add guidance for adding plugins to existing workspaces - #2989

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/2988-agents-md-add-plugin-guidance
Open

docs(#2988): add guidance for adding plugins to existing workspaces#2989
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/2988-agents-md-add-plugin-guidance

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Add a new "Adding a Plugin to an Existing Workspace" subsection to AGENTS.md under "Working with Workspaces". This addresses a gap that caused PR #2977 to fail /publish: the code agent verified plugin existence at the upstream repo's HEAD (via --depth 1 clone) instead of at the pinned repo-ref in source.json.

The new section instructs agents to: 1. Read source.json to get the pinned repo-ref 2. Verify the plugin exists at that ref using the GitHub API 3. Update repo-ref if the plugin is missing at the current ref 4. Check repo-backstage-version consistency when updating refs 5. Add the plugin entry and metadata following existing patterns


Closes #2988

Post-script verification

  • Branch is not main/master (agent/2988-agents-md-add-plugin-guidance)
  • Secret scan passed (gitleaks — c2c1dfe6312cd8b965b696945aa8bacdbe3c6ffc..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Add a new "Adding a Plugin to an Existing Workspace" subsection to
AGENTS.md under "Working with Workspaces". This addresses a gap that
caused PR #2977 to fail /publish: the code agent verified plugin
existence at the upstream repo's HEAD (via --depth 1 clone) instead
of at the pinned repo-ref in source.json.

The new section instructs agents to:
1. Read source.json to get the pinned repo-ref
2. Verify the plugin exists at that ref using the GitHub API
3. Update repo-ref if the plugin is missing at the current ref
4. Check repo-backstage-version consistency when updating refs
5. Add the plugin entry and metadata following existing patterns

Closes #2988
@fullsend-ai-coder
fullsend-ai-coder Bot requested review from a team, gashcrumb and kadel as code owners July 28, 2026 20:32
@openshift-ci

openshift-ci Bot commented Jul 28, 2026

Copy link
Copy Markdown

Hi @fullsend-ai-coder[bot]. Thanks for your PR.

I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot added the non-workspace-changes PR changes files outside workspace directories label Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test non-workspace-changes PR changes files outside workspace directories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AGENTS.md guidance for verifying source.json repo-ref when adding plugins to existing workspaces

0 participants