Skip to content

Commit 07138b6

Browse files
BagToadCopilot
andcommitted
Remove /slug team reviewer shorthand normalization
Team reviewers must be provided as fully qualified org/teamname. Remove the /slug shorthand that auto-prefixed the repo owner, as this format is not supported. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 37776cf commit 07138b6

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pkg/cmd/pr/shared/params.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ func AddMetadataToIssueParams(client *api.Client, baseRepo ghrepo.Interface, par
122122
var teamReviewers []string
123123
for _, r := range tb.Reviewers {
124124
if strings.ContainsRune(r, '/') {
125-
// Normalize /slug shorthand to org/slug using the repo owner
126-
if strings.HasPrefix(r, "/") {
127-
r = baseRepo.RepoOwner() + r
128-
}
129125
teamReviewers = append(teamReviewers, r)
130126
} else if r == api.CopilotReviewerLogin {
131127
botReviewers = append(botReviewers, r)

0 commit comments

Comments
 (0)