feat: Add default token input value

This commit is contained in:
Ardalan Amini committed 2022-02-28 21:35:00 +03:30
1 parent fd17079b83
commit e0339f1f01
8 files changed
+71 -55

No files matched your search

+6 -1
View File
@@ -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,