feat: create action-conventional-commits

This commit is contained in:
Adrian Smijulj 2020-06-11 08:00:06 +02:00
parent 490666b4d2
commit 5b93994f80

View file

@ -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.
})();