Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8ebbd1d
feat(fd): add ActorIsAssignable to IssueFeatures
BagToad May 7, 2025
38e52db
feat(issue edit): fetch currently assigned actors
BagToad May 8, 2025
ee9d169
feat(issue edit): fetch assignable actors
BagToad May 9, 2025
0efdfed
feat(issue edit): support assigning actors to issues
BagToad May 10, 2025
e0afc91
chore(issue edit): comments cleanup
BagToad May 10, 2025
218152f
fix(issue edit): resolve race condition in actor assignment
BagToad May 10, 2025
29241cb
refactor(issue edit): improve actor type handling
BagToad May 12, 2025
73e5589
doc(issue): comment why assignable actors disabled
BagToad May 12, 2025
cff2fa7
doc(repo queries): clarify reviewer actor fetching logic
BagToad May 12, 2025
3579282
refactor(issue edit): rename AssignedActors to ActorAssignees
BagToad May 13, 2025
3bed778
refactor(issue edit): rename loop variable for clarity
BagToad May 13, 2025
261297f
refactor(issue edit): add assignedActors to lookupFields
BagToad May 13, 2025
21bd797
fix(issue edit): use double quotes for assignedActors
BagToad May 13, 2025
1e5c3c7
fix(issue edit): revert rename of ActorAssignees
BagToad May 13, 2025
dfd6007
refactor(api): rename assignable user types and methods
BagToad May 14, 2025
712eeab
doc(api): remove needless comment
BagToad May 14, 2025
08cd1dc
feat(issue edit): replacing actor assignee is done synchronously with…
BagToad May 14, 2025
5dc854c
doc(issue edit): clarify synchronous handling of assignees
BagToad May 14, 2025
71f22d8
feat(pr edit): fetch assigned actors
BagToad May 13, 2025
d4832ba
feat(pr edit): fetch assignable actors
BagToad May 14, 2025
eace1e8
feat(editable): update assigned actors to use display names
BagToad May 15, 2025
da40e08
doc(api): code comment typo
BagToad May 15, 2025
ea85b92
refactor(api): remove needless parenthesis
BagToad May 15, 2025
bcd47f1
fix(api): correct var name capitalization
BagToad May 15, 2025
999ffbd
Merge pull request #10960 from cli/kw/gh-cli-901-910-assign-actors-to…
BagToad May 15, 2025
0db7ae8
refactor(api): remove needless parenthesis
BagToad May 15, 2025
6162a7c
fix(api): correct var name capitalization
BagToad May 15, 2025
f559068
feat(pr edit): fetch assigned actors
BagToad May 13, 2025
d72018d
feat(pr edit): fetch assignable actors
BagToad May 14, 2025
a03c9ce
Merge branch 'kw/gh-cli-epic-900-actors-are-assignable' into kw/gh-cl…
BagToad May 15, 2025
54f48cf
fix(pr edit): remove merge conflict artifact, extra detector
BagToad May 15, 2025
9a5ea87
fix(issues): fix non-interactive assignee matching to logins&IDs
BagToad May 15, 2025
52b6ebf
doc(pr edit): Add comments describing the use of DefaultLogins
BagToad May 15, 2025
51b1e6c
Merge branch 'kw/gh-cli-909-911-assign-actors-to-prs' into kw/gh-cli-…
BagToad May 15, 2025
375c6cd
feat(issue/pr edit): support @copilot in assignee flags
BagToad May 15, 2025
f6bb1ca
refactor(pr edit): move httpclient initialization
BagToad May 15, 2025
ec7c8ed
test(pr edit): fix typo in test name
BagToad May 15, 2025
981da86
doc(pr edit): condense comment for reviewer/user filtering
BagToad May 15, 2025
8bd77c0
fix(pr edit): clarify error messages for assignee actors and users
BagToad May 15, 2025
98b289d
Merge pull request #10984 from cli/kw/gh-cli-909-911-assign-actors-to…
BagToad May 15, 2025
a22a1bb
test(editable): prompts use assignee display names
BagToad May 16, 2025
c5f2d7b
doc(editable): remove needless comment
BagToad May 16, 2025
871671b
fix(params): remove needless err return
BagToad May 16, 2025
debf0bb
test(params): enhance Copilot replacer tests for edge cases
BagToad May 16, 2025
532aa1c
doc(issue/pr edit): doc `@copilot` assignee
BagToad May 16, 2025
475163a
Merge pull request #10990 from cli/kw/gh-cli-916-special-actor-assign…
BagToad May 16, 2025
748afb6
doc(issue/pr edit): clarify @copilot usage
BagToad May 16, 2025
3a8cdda
Merge pull request #10991 from cli/kw/gh-cli-917-special-actor-assign…
BagToad May 16, 2025
a28e2d8
refactor(api): use constant for Copilot login
BagToad May 16, 2025
d932934
Merge branch 'trunk' into kw/gh-cli-epic-900-actors-are-assignable
BagToad May 16, 2025
6f19060
doc(params): incorrect func name in comment
BagToad May 16, 2025
53d0d5d
fix(editable): include DefaultLogins in EditableAssignees clone
BagToad May 16, 2025
e0f3f0f
refactor(api): change CopilotActorLogin to constant
BagToad May 16, 2025
0788a01
refactor(api): inline struct definitions in RepoAssignableActors
BagToad May 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(params): remove needless err return
  • Loading branch information
BagToad committed May 16, 2025
commit 871671be526e7b3e40f90a5a562a5eb75136f0a6
5 changes: 1 addition & 4 deletions 5 pkg/cmd/pr/shared/editable.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ func (e Editable) AssigneeIds(client *api.Client, repo ghrepo.Interface) (*[]str

// Only suppported for actor assignees.
if e.Assignees.ActorAssignees {
replaced, err = copilotReplacer.ReplaceSlice(replaced)
if err != nil {
return nil, err
}
replaced = copilotReplacer.ReplaceSlice(replaced)
}

return replaced, nil
Expand Down
16 changes: 6 additions & 10 deletions 16 pkg/cmd/pr/shared/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,22 +320,18 @@ func NewCopilotReplacer() *CopilotReplacer {
return &CopilotReplacer{}
}

func (r *CopilotReplacer) replace(handle string) (string, error) {
func (r *CopilotReplacer) replace(handle string) string {
if strings.EqualFold(handle, "@copilot") {
return "copilot-swe-agent", nil
return "copilot-swe-agent"
}
return handle, nil
return handle
}

// Replace replaces usages of `@copilot` in a slice with Copilot's login.
Comment thread
BagToad marked this conversation as resolved.
Outdated
func (r *CopilotReplacer) ReplaceSlice(handles []string) ([]string, error) {
func (r *CopilotReplacer) ReplaceSlice(handles []string) []string {
res := make([]string, len(handles))
for i, h := range handles {
var err error
res[i], err = r.replace(h)
if err != nil {
return nil, err
}
res[i] = r.replace(h)
}
return res, nil
return res
}
3 changes: 1 addition & 2 deletions 3 pkg/cmd/pr/shared/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ func TestCopilotReplacer_ReplaceSlice(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
r := NewCopilotReplacer()
got, err := r.ReplaceSlice(tt.args.handles)
require.NoError(t, err)
got := r.ReplaceSlice(tt.args.handles)
require.Equal(t, tt.want, got)
})
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.