This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Repository navigation
Fix: Create page owner preset, registry, and repo creation. - #19
Merged
Merged
Conversation
The create page had several issues. Owner was an empty editable field, registry required manual input, and push assumed the repo already existed on GitHub. Owner is now preset from ForgeConnectionContext (disabled input). ForgeConnectionProvider extended with ForgeUser state so all pages can access the authenticated user. Each page wraps itself with the provider since OCP routes mount independently. Registry is preset to the OCP internal registry and disabled. The backend uses this value to skip registry login in the CI workflow. push renamed to createRepo. It checks if the repo exists (error if taken), creates it with auto_init (GitHub's Git Data API needs at least one commit), renames the default branch if not main, adds the serverless-function topic, then pushes files. errorMessage now includes HTTP status for Octokit errors. List page shows a danger alert on fetch failure. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
GitHub's search API has eventual consistency. After createRepo, the new repo may not appear in search results for several seconds. listFunctionRepos now merges search results with a local cache of repos added by createRepo. Fetched results take priority, cached entries only survive until the search index catches up. setupCreateRepoHandlers parameterized with repoName and moved to top level for reuse across test groups. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
twoGiants
marked this pull request as ready for review
May 3, 2026 12:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes