Skip to content

Commit bd73459

Browse files
authored
Merge pull request #2 from blitz-js/feature_contributor_bot
Feature contributor bot
2 parents d54395b + 85250de commit bd73459

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@octokit/webhooks": "^7.4.0",
26+
"all-contributors-cli": "^6.14.2",
2627
"lodash": "^4.17.15",
2728
"probot": "^9.5.3",
2829
"probot-serverless-now": "^2.1.2"

src/add_contribution.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { getUserDetails } from "./utils/getUserDetails";
55
import { FILETYPE_TO_CONTRIB_TYPE } from "./settings";
66
import { BranchNotFoundError, ResourceNotFoundError } from "./utils/errors";
77
import { Context } from "probot";
8-
import { WebhookPayloadPullRequest } from "@octokit/webhooks";
98

109
async function processAddContributor({
1110
context,

src/pull_request.opened.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { addContributions } from "./add_contribution";
55
export async function pull_requestOpened(context: Context) {
66
const { payload, github } = context;
77
const isDraft = payload.pull_request.draft;
8+
context.log("functionpull_requestOpened -> isDraft", isDraft);
89
await github.issues.addLabels({
910
owner: payload.repository.owner.login,
1011
repo: payload.repository.name,

0 commit comments

Comments
 (0)