From 5b93994f80cb222e7add773be255dcf16d2114ff Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Thu, 11 Jun 2020 08:00:06 +0200 Subject: [PATCH] feat: create action-conventional-commits --- main.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index ab0c76b..f24c2b1 100644 --- a/main.ts +++ b/main.ts @@ -1,14 +1,14 @@ -const { GitHub, context } = require('@actions/github'); +const { GitHub, context } = require("@actions/github"); (async () => { const core = require("@actions/core"); const exec = require("@actions/exec"); - console.log('context', context) + console.log("context", JSON.stringify(context.commits)); 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.({ @@ -36,5 +36,4 @@ const { GitHub, context } = require('@actions/github'); // 3. Commit changes done on the `contreebutors.json` and `README.md` file. // 4. Add comment to the merged PR - notify the user that he was added to the contributors list. - })();