breaking: Separate deps type from build

This commit is contained in:
Ardalan Amini committed 2021-06-19 19:45:04 +04:30
1 parent 6edbc48bf0
commit bf83ea01a2
3 files changed
+6 -8

No files matched your search

+2 -1
View File
@@ -13,9 +13,10 @@ type(category): description [flag]
The `type` must be one of the followings:
* `breaking` (Breaking Changes)
* `build` (Build System / Dependencies)
* `build` (Build System)
* `ci` (Continuous Integration)
* `chore` (Chores)
* `deps` (Dependencies)
* `docs` (Documentation Changes)
* `feat` (New Features)
* `fix` (Bug Fixes)
+2 -1
View File
@@ -105,9 +105,10 @@ const PR_REGEX = /#([1-9]\d*)/g;
const TYPES = {
breaking: "Breaking Changes",
build: "Build System / Dependencies",
build: "Build System",
ci: "Continuous Integration",
chore: "Chores",
deps: "Dependencies",
docs: "Documentation Changes",
feat: "New Features",
fix: "Bug Fixes",
+2 -6
View File
@@ -1,9 +1,8 @@
import { info, getInput, setOutput, setFailed } from "@actions/core";
import { getInput, info, setFailed, setOutput } from "@actions/core";
import { context, getOctokit } from "@actions/github";
import { generate } from "./changelog";
async function run() {
try {
const token = getInput("token", { required: true });
const exclude = getInput("exclude", { required: false }).split(",");
const octokit = getOctokit(token);
@@ -31,9 +30,6 @@ async function run() {
info(changelog);
setOutput("changelog", changelog);
} catch (error) {
setFailed(error.message);
}
}
run();
run().catch((error) => setFailed(error.message));