File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Not sure what this means? [Click here to learn what changesets are](https://git
30
30
` ;
31
31
32
32
const getCommentId = ( context , params ) =>
33
- context . github . issues . listComments ( params ) . then ( comments => {
33
+ context . github . pullRequests . listComments ( params ) . then ( comments => {
34
34
const changesetBotComment = comments . data . find (
35
35
// TODO: find what the current user is in some way or something
36
36
comment =>
@@ -67,8 +67,8 @@ module.exports = app => {
67
67
try {
68
68
const params = context . issue ( ) ;
69
69
70
- let number = context . payload ;
71
- let repo = {
70
+ let queryStuff = {
71
+ pull_number : context . payload . number ,
72
72
owner : context . payload . repository . name ,
73
73
repository : context . payload . repository . owner . login
74
74
} ;
@@ -90,15 +90,9 @@ module.exports = app => {
90
90
// but reducing time is nice here so that
91
91
// deploying this doesn't cost money
92
92
context . payload . action === "synchronize"
93
- ? getCommentId ( context , {
94
- issue_number : number ,
95
- ...repo
96
- } )
93
+ ? getCommentId ( context , queryStuff )
97
94
: null ,
98
- getChangesetId ( context , {
99
- pull_number : number ,
100
- ...repo
101
- } )
95
+ getChangesetId ( context , queryStuff )
102
96
] ) ;
103
97
104
98
let prComment ;
You can’t perform that action at this time.
0 commit comments