From 3be5689cf1bb6ded76934b23046ec7b50911b70a Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Thu, 11 Jun 2020 07:54:27 +0200 Subject: [PATCH] feat: create action-conventional-commits --- main.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index c5438fa..ab0c76b 100644 --- a/main.ts +++ b/main.ts @@ -1,15 +1,17 @@ -import { Contreebutors } from "contreebutors"; const { GitHub, context } = require('@actions/github'); (async () => { const core = require("@actions/core"); const exec = require("@actions/exec"); + console.log('context', context) + + return; // 1. Extract a list of users from received commits. - const token = process.env.GH_TOKEN; + /* const token = process.env.GH_TOKEN; const client = new GitHub(token, {}); - const result = await client.repos.listPullRequestsAssociatedWithCommit({ + const result = await client.({ owner: context.repo.owner, repo: context.repo.repo, commit_sha: context.sha, @@ -29,7 +31,7 @@ const { GitHub, context } = require('@actions/github'); for (let i = 0; i < users.length; i++) { let user = users[i]; await contreebutors.add(user); - } + }*/ // 3. Commit changes done on the `contreebutors.json` and `README.md` file.