mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-03 22:15:31 +00:00
feat: Add default token input value
This commit is contained in:
8 files changed
+71
-55
No files matched your search
+6
-1
@@ -1,11 +1,16 @@
|
||||
import { getInput, info, setFailed, setOutput } from "@actions/core";
|
||||
import { context, getOctokit } from "@actions/github";
|
||||
import { generate } from "./changelog";
|
||||
import { TYPES } from "./constants";
|
||||
|
||||
async function run() {
|
||||
const token = getInput("token", { required: true });
|
||||
const exclude = getInput("exclude", { required: false }).split(",");
|
||||
const exclude = getInput("exclude", { required: false })
|
||||
.split(",")
|
||||
.map((type) => TYPES[type] ?? type);
|
||||
|
||||
const octokit = getOctokit(token);
|
||||
|
||||
const {
|
||||
repo: { owner, repo },
|
||||
sha,
|
||||
|
||||
Reference in new issue
Block a user