accept-to-ship-action 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/mergePullRequest.js +4 -3
- package/package.json +1 -1
package/lib/mergePullRequest.js
CHANGED
|
@@ -67,12 +67,13 @@ function mergePullRequest(owner, repo, pullRequestNumber, mergeMethod, octokit)
|
|
|
67
67
|
run_id: github_1.context.runId,
|
|
68
68
|
});
|
|
69
69
|
(0, console_1.info)(`Job ID: ${job.id} (${job.html_url})`);
|
|
70
|
-
yield octokit.rest.
|
|
70
|
+
const { data: comment } = yield octokit.rest.issues.createComment({
|
|
71
71
|
owner,
|
|
72
72
|
repo,
|
|
73
|
-
|
|
74
|
-
body: 'This Pull Request is closed by a GitHub Action
|
|
73
|
+
issue_number: pullRequestNumber,
|
|
74
|
+
body: 'This Pull Request is closed by a [GitHub Action](${job.html_url})',
|
|
75
75
|
});
|
|
76
|
+
(0, console_1.info)(`Comment is created: ${comment.html_url}`);
|
|
76
77
|
}
|
|
77
78
|
catch (requestError) {
|
|
78
79
|
if (requestError instanceof request_error_1.RequestError) {
|