Conversation
Co-authored-by: brianaj <2413532+brianaj@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The changed gl2gh error-routing path lacks a regression test that verifies the final user-facing message.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Corrects #1611 by routing gl2gh permission failures to GitLab-specific access guidance.
Changes:
- Adds GitLab-specific permission messaging.
- Preserves default migration guidance.
- Adds generator coverage and release notes.
File summaries
| File | Description |
|---|---|
src/Octoshift/InsufficientPermissionsMessageGenerator.cs |
Adds GitLab-specific documentation support. |
src/gl2gh/Commands/MigrateRepo/MigrateRepoCommandHandler.cs |
Uses GitLab guidance for migration-source failures. |
src/OctoshiftCLI.Tests/InsufficientPermissionsMessageGeneratorTest.cs |
Tests both generated messages. |
RELEASENOTES.md |
Documents the correction. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| catch (OctoshiftCliException ex) when (ex.Message.Contains("not have the correct permissions to execute")) | ||
| { | ||
| var insufficientPermissionsMessage = InsufficientPermissionsMessageGenerator.Generate(args.GithubOrg); | ||
| var insufficientPermissionsMessage = InsufficientPermissionsMessageGenerator.GenerateForGitlab(args.GithubOrg); |
|
@copilot Fix the code for all comments in this review thread. When a review comment includes a suggested change, apply the suggestion exactly. Do not make changes beyond what is described in the linked review thread. |
Co-authored-by: brianaj <2413532+brianaj@users.noreply.github.com>
Added a gl2gh handler regression test ( |
GitLab-to-GitHub migrations displayed GitHub-to-GitHub PAT guidance when migration-source creation lacked permissions. Route
gl2gherrors to the GitLab-specific access documentation while retaining existing guidance elsewhere.Permissions guidance
gl2ghmigration-source error path.Coverage
Release notes
Did you write/update appropriate tests
Release notes updated (if appropriate)
Appropriate logging output
Issue linked
Docs updated (or issue created)
New package licenses are added to
ThirdPartyNotices.txt(if applicable)