refactor: improve imports (#217)

* refactor: improve imports

Signed-off-by: Ardalan Amini <[email protected]>

* ci: fix release workflow

Signed-off-by: Ardalan Amini <[email protected]>

* 📝 Add docstrings to `refactor/improve-imports` (#218)

* 📝 Add docstrings to `refactor/improve-imports`

Docstrings generation was requested by @ardalanamini.

* https://github.com/ardalanamini/auto-changelog/pull/217#issuecomment-2953761296

The following files were modified:

* `src/changelog.ts`
* `src/footer.ts`
* `src/generate.ts`
* `src/inputs/commit-types.ts`
* `src/inputs/default-commit-type.ts`
* `src/inputs/github-token.ts`
* `src/inputs/include-commit-links.ts`
* `src/inputs/include-compare-link.ts`
* `src/inputs/include-pr-links.ts`
* `src/inputs/mention-authors.ts`
* `src/inputs/mention-new-contributors.ts`
* `src/inputs/release-name-prefix.ts`
* `src/inputs/release-name.ts`
* `src/inputs/semver.ts`
* `src/inputs/use-github-autolink.ts`
* `src/outputs/set-changelog.ts`
* `src/outputs/set-prerelease.ts`
* `src/outputs/set-release-id.ts`
* `src/utils/octokit.ts`

* Update changelog.ts

Signed-off-by: Ardalan Amini <[email protected]>

* style: address linter errors

Signed-off-by: Ardalan Amini <[email protected]>

---------

Signed-off-by: Ardalan Amini <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Ardalan Amini <[email protected]>

---------

Signed-off-by: Ardalan Amini <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Ardalan Aminiandcoderabbitai[bot] authored and GitHub committed 2025-06-08 12:29:09 +03:30
1 parent 99fcfc116e
commit f54a10a737
66 files changed
+238 -121

No files matched your search

+2 -2
View File
@@ -22,10 +22,10 @@
* SOFTWARE.
*/
import { commitTypes, defaultCommitType } from "#inputs";
import { trim } from "#utils";
import { Node } from "./node.js";
import { TypeNode } from "./type.js";
import { commitTypes, defaultCommitType } from "../inputs/index.js";
import { trim } from "../utils/index.js";
/**
* Represents a changelog node which organizes and processes commit types into structured changelog entries.
+1 -1
View File
@@ -22,10 +22,10 @@
* SOFTWARE.
*/
import { mentionAuthors } from "#inputs";
import { CommitHashNode } from "./commit-hash.js";
import { Node } from "./node.js";
import { PullRequestNode } from "./pull-request.js";
import { mentionAuthors } from "../inputs/index.js";
/**
* Represents a node for a commit author, containing information about the author
+1 -1
View File
@@ -22,8 +22,8 @@
* SOFTWARE.
*/
import { includeCommitLinks } from "#inputs";
import { Node } from "./node.js";
import { includeCommitLinks } from "../inputs/index.js";
/**
* Represents a node that holds a commit hash (SHA) and provides functionality
+2 -2
View File
@@ -23,8 +23,8 @@
*/
import { context } from "@actions/github";
import { useGitHubAutolink } from "../inputs/index.js";
import { repository } from "../utils/index.js";
import { useGitHubAutolink } from "#inputs";
import { repository } from "#utils";
/**
* Represents the base class for all nodes in the changelog,
+1 -1
View File
@@ -22,8 +22,8 @@
* SOFTWARE.
*/
import { includePRLinks } from "#inputs";
import { Node } from "./node.js";
import { includePRLinks } from "../inputs/index.js";
/**
* Represents a node associated with a pull request or issue link.
+1 -1
View File
@@ -22,9 +22,9 @@
* SOFTWARE.
*/
import { trim } from "#utils";
import { Node } from "./node.js";
import { ScopeNode } from "./scope.js";
import { trim } from "../utils/index.js";
/**
* Represents a node for a specific type that manages associated scopes.