Commit Graph
33 Commits
Author SHA1 Message Date
Ardalan Aminiandcoderabbitai[bot] f54a10a737 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>
2025-06-08 12:29:09 +03:30
Ardalan Amini 9bd6b8698c refactor: improve changelog logic (#197)
* refactor: improve changelog logic

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

* chore: update license comment formatting across all files

Replaced `/*` with `/**` for correct JSDoc-style license comments in all files.
This ensures consistency and compatibility with documentation tools that rely on JSDoc conventions.

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

* test: add unit tests for inputs

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

* test: add unit tests for utils

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

* test: add unit tests for outputs

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

* test: add unit tests for nodes

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

* test: add missing unit tests

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

* chore: address PR comments

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

* chore: address PR comments

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

---------

Signed-off-by: Ardalan Amini <[email protected]>
2025-06-07 15:37:31 +03:30
Ardalan Amini 7a94b0db61 chore: update copyright year
Signed-off-by: Ardalan Amini <[email protected]>
2025-02-10 16:40:23 +03:30
Ardalan Amini 3863883488 chore: update copyright year to 2024
Signed-off-by: Ardalan Amini <[email protected]>
2024-02-08 18:18:20 +03:30
Ardalan Amini 5c66757e75 refactor!: optimize changelog references
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 02:33:42 +03:30
Ardalan Amini 158bae1587 feat: add ability to mark commit as breaking
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 01:45:15 +03:30
Ardalan Amini d3b6679b6f feat: add ability to mark commit as breaking
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 01:43:34 +03:30
Ardalan Amini f676806e7f feat: add ability to mark commit as breaking
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 01:42:09 +03:30
Ardalan Amini 4b435e24d8 feat!: add use-github-autolink input
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 01:30:07 +03:30
Ardalan Amini d9c18ae1be refactor!: don't include the commit sha when pull request reference is included
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 01:18:31 +03:30
Ardalan Amini 418818d74b refactor: improve code quality (#138)
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-29 22:47:35 +03:30
Ardalan Amini 94ac0796b7 build: replace npm with pnpm
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-29 13:59:31 +03:30
Ardalan Amini 479475eda0 feat: add include-commit-links & include-pr-links action inputs (#136) 2023-04-15 14:20:40 +03:30
Ardalan Amini 758213b4ef fix: GitHub application author references (#100) 2022-08-14 19:59:43 +04:30
Ardalan Amini 07ba2b1a32 deps(Dev): Add eslint-config-noir version 1.1.1 (#79)
* chore: Update ESLint config

* deps(Dev): Add eslint-config-noir version 1.1.1

* chore: Update action directory
2022-06-12 14:29:56 +04:30
Ardalan Amini 979eade40d feat: Add ability to mention the commit authors (#52)
* feat: Add mention-authors input

* feat: Add ability to mention the commit authors
2022-04-29 14:45:42 +04:30
Ardalan Amini 25ded2b6f5 refactor: Changelog format (#51)
* refactor: Improve changelog generate function

* refactor: Changelog format
2022-04-29 13:52:33 +04:30
Ardalan Amini a5eab9701f refactor: Changelog format (#50) 2022-04-29 12:39:37 +04:30
Ardalan Amini b8f380a3db refactor: Update changelog headers 2022-04-29 01:04:18 +04:30
Ardalan Amini bd78d66436 feat: Add semantic versioning compatibility (#47)
* feat: Use regex groups

* feat: Add semver input

* deps: Add semver v7.3.7

* deps(Dev): Add @types/semver v7.3.9

* feat: Add prerelease output

* chore: Update action directory

* feat: Log prerelease value

* ci(GitHub): Update release workflow

* docs: Update README.md

* feat: Add ability to detect previous version based on semver comparison

* ci(GitHub): fix test workflow
2022-04-29 00:06:26 +04:30
Ardalan Amini ea01804ccf feat: Add commit-types & default-commit-type inputs (#15)
* deps: Add `yaml` version `1.10.2`

* deps: Add `joi` version `17.6.0`

* feat: Add `commit-types` & `default-commit-type` inputs

* ci: Update `Test` workflow

* chore: Update `README.md`
2022-03-04 14:17:53 +03:30
Ardalan Amini c72a270e90 breaking: Remove the exclude input 2022-03-04 12:06:15 +03:30
Ardalan Amini b3dc12bbd4 refactor: Improve changelog output order
Closes #8
2022-02-28 21:48:20 +03:30
Ardalan Amini e0339f1f01 feat: Add default token input value 2022-02-28 21:35:00 +03:30
Ardalan Amini 7cb2e018cf fix: Changelog containing commits after the current tag (#7) 2022-02-20 18:17:51 +03:30
Ardalan Amini 824a9fc243 deps: Update dependencies 2021-06-19 23:50:35 +04:30
Ardalan Amini bf83ea01a2 breaking: Separate deps type from build 2021-06-19 19:45:04 +04:30
Ardalan Amini b139036672 feat: Add ignore flag 2020-10-18 02:03:27 +03:30
Ardalan Amini 4635917ef5 breaking: Combine similar commit messages into one log line 2020-10-18 02:00:13 +03:30
Ardalan Amini eeb68764f2 breaking: Omit flag from the log title 2020-10-18 01:35:33 +03:30
Ardalan Amini 26b376ffcc chore: Update action directory 2020-10-17 16:43:51 +03:30
Alexey AlekhinandArdalan Amini ebb68f8915 fix: Include multi-line commits in the changelog (#4)
* Allow multiline commit messages

* fix: Not matching multi-line commit messages

Co-authored-by: Ardalan Amini <[email protected]>
2020-10-17 16:38:30 +03:30
Ardalan Amini 25bed3a982 revert: Use generate-changelog package 2020-09-28 21:03:56 +03:30