mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-23 10:21:51 +01:00
feat: create action-conventional-commits
This commit is contained in:
parent
7916d53e96
commit
3be5689cf1
1 changed files with 6 additions and 4 deletions
10
main.ts
10
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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue