File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,7 @@ function myBot(app: Probot): void {
8181 if ( payloadType === "issue" ) {
8282 await context . octokit . issues . update ( context . issue ( { body : newBody } ) ) ;
8383 } else if ( payloadType === "pull_request" ) {
84- // @ts -ignore
85- await context . octokit . pulls . update ( context . issue ( { body : newBody } ) ) ;
84+ await context . octokit . pulls . update ( context . pullRequest ( { body : newBody } ) ) ;
8685 }
8786 } else {
8887 context . log ( "no action: no change from existing cc list on issue" ) ;
Original file line number Diff line number Diff line change @@ -115,9 +115,8 @@ Some header text
115115 payload [ "pull_request" ] [ "body" ] = "Arf arf" ;
116116
117117 const scope = nock ( "https://api.github.com" )
118- . patch ( "/repos/seemethere/test-repo/pulls/" , ( body : any ) => {
118+ . patch ( "/repos/seemethere/test-repo/pulls/20 " , ( body : any ) => {
119119 expect ( body ) . toMatchObject ( {
120- issue_number : 20 ,
121120 body : "Arf arf\n\ncc @ezyang" ,
122121 } ) ;
123122 return true ;
You can’t perform that action at this time.
0 commit comments