@@ -78,9 +78,7 @@ export const addCommentToPRAction: Action = {
78
78
try {
79
79
const comment = await githubService . addPRComment (
80
80
content . pullRequest ,
81
- content . comment ,
82
- content . owner ,
83
- content . repo
81
+ content . comment
84
82
) ;
85
83
86
84
elizaLogger . info (
@@ -110,7 +108,7 @@ export const addCommentToPRAction: Action = {
110
108
examples : [
111
109
[
112
110
{
113
- user : "{{user1 }}" ,
111
+ user : "{{user }}" ,
114
112
content : {
115
113
text : "Add a comment to pull request #1 in repository user1/repo1: 'This is fixed in the latest release'" ,
116
114
} ,
@@ -123,6 +121,66 @@ export const addCommentToPRAction: Action = {
123
121
} ,
124
122
} ,
125
123
] ,
124
+ [
125
+ {
126
+ user : "{{user}}" ,
127
+ content : {
128
+ text : "Add a comment to pull request #2 in repository user2/repo2: 'Please review the changes'" ,
129
+ } ,
130
+ } ,
131
+ {
132
+ user : "{{agentName}}" ,
133
+ content : {
134
+ text : "Added comment to pull request #2 successfully!" ,
135
+ action : "ADD_COMMENT_PR" ,
136
+ } ,
137
+ } ,
138
+ ] ,
139
+ [
140
+ {
141
+ user : "{{user}}" ,
142
+ content : {
143
+ text : "Add a comment to pull request #3 in repository user3/repo3: 'Great work on this feature!'" ,
144
+ } ,
145
+ } ,
146
+ {
147
+ user : "{{agentName}}" ,
148
+ content : {
149
+ text : "Added comment to pull request #3 successfully!" ,
150
+ action : "ADD_COMMENT_PR" ,
151
+ } ,
152
+ } ,
153
+ ] ,
154
+ [
155
+ {
156
+ user : "{{user}}" ,
157
+ content : {
158
+ text : "Add a comment to pull request #4 in repository user4/repo4: 'Can you add more tests?'" ,
159
+ } ,
160
+ } ,
161
+ {
162
+ user : "{{agentName}}" ,
163
+ content : {
164
+ text : "Added comment to pull request #4 successfully!" ,
165
+ action : "ADD_COMMENT_PR" ,
166
+ } ,
167
+ } ,
168
+ ] ,
169
+ [
170
+ {
171
+ user : "{{user}}" ,
172
+ content : {
173
+ text : "Add a comment to pull request #5 in repository user5/repo5: 'This needs some refactoring'" ,
174
+ } ,
175
+ } ,
176
+ {
177
+ user : "{{agentName}}" ,
178
+ content : {
179
+ text : "Added comment to pull request #5 successfully!" ,
180
+ action : "ADD_COMMENT_PR" ,
181
+ } ,
182
+ } ,
183
+ ] ,
126
184
] ,
127
185
} ;
128
186
0 commit comments