mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-03 22:15:31 +00:00
breaking: Separate deps type from build
This commit is contained in:
3 files changed
+6
-8
No files matched your search
@@ -13,9 +13,10 @@ type(category): description [flag]
|
|||||||
The `type` must be one of the followings:
|
The `type` must be one of the followings:
|
||||||
|
|
||||||
* `breaking` (Breaking Changes)
|
* `breaking` (Breaking Changes)
|
||||||
* `build` (Build System / Dependencies)
|
* `build` (Build System)
|
||||||
* `ci` (Continuous Integration)
|
* `ci` (Continuous Integration)
|
||||||
* `chore` (Chores)
|
* `chore` (Chores)
|
||||||
|
* `deps` (Dependencies)
|
||||||
* `docs` (Documentation Changes)
|
* `docs` (Documentation Changes)
|
||||||
* `feat` (New Features)
|
* `feat` (New Features)
|
||||||
* `fix` (Bug Fixes)
|
* `fix` (Bug Fixes)
|
||||||
|
|||||||
+2
-1
@@ -105,9 +105,10 @@ const PR_REGEX = /#([1-9]\d*)/g;
|
|||||||
|
|
||||||
const TYPES = {
|
const TYPES = {
|
||||||
breaking: "Breaking Changes",
|
breaking: "Breaking Changes",
|
||||||
build: "Build System / Dependencies",
|
build: "Build System",
|
||||||
ci: "Continuous Integration",
|
ci: "Continuous Integration",
|
||||||
chore: "Chores",
|
chore: "Chores",
|
||||||
|
deps: "Dependencies",
|
||||||
docs: "Documentation Changes",
|
docs: "Documentation Changes",
|
||||||
feat: "New Features",
|
feat: "New Features",
|
||||||
fix: "Bug Fixes",
|
fix: "Bug Fixes",
|
||||||
|
|||||||
+2
-6
@@ -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 { context, getOctokit } from "@actions/github";
|
||||||
import { generate } from "./changelog";
|
import { generate } from "./changelog";
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
|
||||||
const token = getInput("token", { required: true });
|
const token = getInput("token", { required: true });
|
||||||
const exclude = getInput("exclude", { required: false }).split(",");
|
const exclude = getInput("exclude", { required: false }).split(",");
|
||||||
const octokit = getOctokit(token);
|
const octokit = getOctokit(token);
|
||||||
@@ -31,9 +30,6 @@ async function run() {
|
|||||||
info(changelog);
|
info(changelog);
|
||||||
|
|
||||||
setOutput("changelog", changelog);
|
setOutput("changelog", changelog);
|
||||||
} catch (error) {
|
|
||||||
setFailed(error.message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run().catch((error) => setFailed(error.message));
|
||||||
Reference in new issue
Block a user