mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-23 18:31:47 +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');
|
const { GitHub, context } = require('@actions/github');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const core = require("@actions/core");
|
const core = require("@actions/core");
|
||||||
const exec = require("@actions/exec");
|
const exec = require("@actions/exec");
|
||||||
|
|
||||||
|
console.log('context', context)
|
||||||
|
|
||||||
|
return;
|
||||||
// 1. Extract a list of users from received commits.
|
// 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 client = new GitHub(token, {});
|
||||||
const result = await client.repos.listPullRequestsAssociatedWithCommit({
|
const result = await client.({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
commit_sha: context.sha,
|
commit_sha: context.sha,
|
||||||
|
@ -29,7 +31,7 @@ const { GitHub, context } = require('@actions/github');
|
||||||
for (let i = 0; i < users.length; i++) {
|
for (let i = 0; i < users.length; i++) {
|
||||||
let user = users[i];
|
let user = users[i];
|
||||||
await contreebutors.add(user);
|
await contreebutors.add(user);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// 3. Commit changes done on the `contreebutors.json` and `README.md` file.
|
// 3. Commit changes done on the `contreebutors.json` and `README.md` file.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue