Skip to content

Fix issues for groups that are not created by Github Organization module#9706

Open
PadreSVK wants to merge 3 commits into
backstage:mainfrom
PadreSVK:feat/issues-use-gh-slug
Open

Fix issues for groups that are not created by Github Organization module#9706
PadreSVK wants to merge 3 commits into
backstage:mainfrom
PadreSVK:feat/issues-use-gh-slug

Conversation

@PadreSVK

@PadreSVK PadreSVK commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

PR replicate same logic from pull request for issues. This enable to see GH issues on group entities that are not created by catalog module github organization

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-github-issues workspaces/github/plugins/github-issues patch v1.2.0

@PadreSVK PadreSVK changed the title Fix issues for groups Fix issues for groups that are not created by Github Organization module Jun 26, 2026

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.

Pull request overview

This PR fixes GitHub Issues card behavior for Group/User entities whose backstage.io/source-location / backstage.io/managed-by-location is missing or not a parseable URL, by no longer deriving the GitHub host from the owner entity’s location and instead letting the API resolve it from configured integrations.github.

Changes:

  • Make hostname resolution non-throwing and allow host fallback to configured GitHub integrations for owner entities.
  • Ensure repositories without a determinable host are not silently filtered out.
  • Add a regression test for a Group entity with no annotations, plus documentation and a changeset entry.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
workspaces/github/plugins/github-issues/src/hooks/useGetIssuesByRepoFromGithub.ts Avoid constraining host resolution for Group/User entities by their own catalog location.
workspaces/github/plugins/github-issues/src/hooks/useEntityGithubRepositories.ts Make hostname parsing non-throwing and return undefined when host can’t be derived.
workspaces/github/plugins/github-issues/src/components/GithubIssues/GithubIssues.test.tsx Add regression test for groups without annotations to ensure the card doesn’t crash.
workspaces/github/plugins/github-issues/src/api/githubIssuesApi.ts Accept optional host selection and adjust repo filtering to keep repos with unknown host.
workspaces/github/plugins/github-issues/README.md Document host resolution behavior for owner entities vs other kinds.
workspaces/github/.changeset/github-issues-group-host-resolution.md Add patch changeset describing the crash fix and host resolution behavior change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread workspaces/github/plugins/github-issues/src/api/githubIssuesApi.ts
Comment thread workspaces/github/plugins/github-issues/src/hooks/useEntityGithubRepositories.ts Outdated
PadreSVK added 3 commits June 26, 2026 14:06
…m owned entities (same logic as Pull Request)

Signed-off-by: Patrik Švikruha <patrik.svikruha.dev@gmail.com>
…based on Entity kind

Signed-off-by: Patrik Švikruha <patrik.svikruha.dev@gmail.com>
…d improve URL parsing in getHostnameFromEntity

Signed-off-by: Patrik Švikruha <patrik.svikruha.dev@gmail.com>
@PadreSVK PadreSVK force-pushed the feat/issues-use-gh-slug branch from 1910c5b to 05889f9 Compare June 26, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants