Skip to content

Commit ba6da84

Browse files
committed
Merge branch 'master' into releases/v1
2 parents 1af4d81 + 25f2806 commit ba6da84

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Pull Request Comment Branch
22

3+
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=xt0rted/pull-request-comment-branch)](https://dependabot.com)
4+
35
Get the head ref and sha of a pull request comment.
46

57
Workflows for pull request comments are triggered using the [`issue_comment`](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#issue-comment-event-issue_comment) event which runs for both issues and pull requests.

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121
"license": "MIT",
2222
"dependencies": {
2323
"@actions/core": "^1.2.0",
24-
"@actions/github": "^2.1.0"
24+
"@actions/github": "^2.1.1"
2525
},
2626
"devDependencies": {
27-
"@octokit/rest": "^16.43.1",
28-
"@types/node": "^13.7.0",
29-
"@zeit/ncc": "^0.21.0",
30-
"typescript": "^3.7.2"
27+
"@types/node": "^13.7.4",
28+
"@zeit/ncc": "^0.21.1",
29+
"typescript": "^3.8.2"
3130
}
3231
}

src/main.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { getInput, setFailed, setOutput } from "@actions/core";
2-
import { context } from "@actions/github";
3-
import { Octokit } from "@octokit/rest";
2+
import { context, GitHub } from "@actions/github";
43

54
export async function run() {
65
try {
7-
const token = getInput("repo_token", { required: true });
8-
const client = new Octokit({ auth: `token ${token}` });
6+
const client = new GitHub(getInput("repo_token", { required: true }));
97

108
const { data: { pull_request } } = await client.issues.get({
119
...context.repo,

0 commit comments

Comments
 (0)