File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class OptionsConfig {
52
52
}
53
53
54
54
getRaw ( ) {
55
- return JSON . stringify ( this . options )
55
+ return ` ${ JSON . stringify ( this . options , null , 2 ) } \n`
56
56
}
57
57
58
58
getPath ( ) {
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class Repository {
124
124
base : 'master' ,
125
125
maintainer_can_modify : true ,
126
126
} )
127
- return result . data . number
127
+ return result . data . html_url
128
128
}
129
129
130
130
async createPullRequestFromFiles ( { title, body, filesByPath, branchName } ) {
@@ -135,13 +135,13 @@ class Repository {
135
135
branchName,
136
136
} )
137
137
138
- const pullRequestNumber = await this . createPullRequest ( {
138
+ const pullRequestURL = await this . createPullRequest ( {
139
139
title,
140
140
body,
141
141
branchName,
142
142
} )
143
143
144
- return pullRequestNumber
144
+ return pullRequestURL
145
145
}
146
146
}
147
147
Original file line number Diff line number Diff line change @@ -51,19 +51,19 @@ async function processIssueComment({ context, commentReply }) {
51
51
originalSha : optionsConfig . getOriginalSha ( ) ,
52
52
}
53
53
54
- const pullRequestNumber = await repository . createPullRequestFromFiles ( {
54
+ const pullRequestURL = await repository . createPullRequestFromFiles ( {
55
55
title : `docs: add ${ who } as a contributor` ,
56
56
body : `Adds ${ who } as a contributor for ${ contributions . join (
57
57
', ' ,
58
58
) } .\n\nThis was requested by ${ commentReply . replyingToWho ( ) } [in this comment](${
59
- commentReply . replyingToWhere
59
+ commentReply . replyingToWhere ( )
60
60
} )`,
61
61
filesByPath : filesByPathToUpdate ,
62
62
branchName : `all-contributors/add-${ who } ` ,
63
63
} )
64
64
65
65
commentReply . reply (
66
- `I've put up [a pull request](# ${ pullRequestNumber } ) to add ${ who } ! :tada:` ,
66
+ `I've put up [a pull request](${ pullRequestURL } ) to add ${ who } ! :tada:` ,
67
67
)
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments