feat: Add commit-types & default-commit-type inputs (#15)

* deps: Add `yaml` version `1.10.2`

* deps: Add `joi` version `17.6.0`

* feat: Add `commit-types` & `default-commit-type` inputs

* ci: Update `Test` workflow

* chore: Update `README.md`
This commit is contained in:
Ardalan Amini authored and GitHub committed 2022-03-04 14:17:53 +03:30
1 parent c72a270e90
commit ea01804ccf
12 files changed
+374 -77

No files matched your search

+5 -3
View File
@@ -1,11 +1,12 @@
import { getInput, info, setFailed, setOutput } from "@actions/core";
import { info, setFailed, setOutput } from "@actions/core";
import { context, getOctokit } from "@actions/github";
import { generate } from "./changelog";
import { getInputs, getToken } from "./context";
async function run() {
const token = getInput("token", { required: true });
const inputs = await getInputs();
const octokit = getOctokit(token);
const octokit = getOctokit(getToken());
const {
repo: { owner, repo },
@@ -32,6 +33,7 @@ async function run() {
repo,
sha,
tagRef,
inputs,
});
info(changelog);