mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-03 06:28:52 +00:00
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:
1 parent
c72a270e90
commit
ea01804ccf
12 files changed
+374
-77
No files matched your search
+5
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user