36 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 99fcfc116e ci: rename the default branch from master to main
Signed-off-by: Ardalan Amini <[email protected]>
2025-06-07 21:53:22 +03:30
Ardalan Amini c6140da009 build: integrate Rolldown (#216)
* build: integrate Rolldown

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

* ci: enhance test workflow and update metadata

- Added environment variables for Node & PNPM versions in the test workflow.
- Updated homepage URL in package metadata.

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

* build: define Node.js version requirement (>= 20) in package.json

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

---------

Signed-off-by: Ardalan Amini <[email protected]>
2025-06-07 21:51:25 +03:30
Ardalan Amini 57f03f3825 ci: integrate Codecov report action
Signed-off-by: Ardalan Amini <[email protected]>
2025-06-07 15:44:30 +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 3c1177539c ci: update test workflow
Signed-off-by: Ardalan Amini <[email protected]>
2025-02-27 14:47:10 +03:30
dependabot[bot] 62bc2d1a1c ci(deps): bump softprops/action-gh-release from 1 to 2 (#177)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 14:51:22 +03:30
dependabot[bot] 5d0be48057 ci(deps): bump pnpm/action-setup from 3 to 4 (#180)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 3 to 4.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v3...v4)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 14:45:30 +03:30
Ardalan Amini cce7f4fd60 test: add & configure Jest
Fixes #153

Signed-off-by: Ardalan Amini <[email protected]>
2024-10-30 14:34:45 +03:30
dependabot[bot] c51dadbf82 ci(deps): bump pnpm/action-setup from 2 to 3 (#161)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 3.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2...v3)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-09 15:18:10 +03:30
dependabot[bot] 6c168ff090 ci(deps): bump actions/setup-node from 3 to 4 (#162)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-09 11:01:48 +00:00
dependabot[bot] 48462bb0a0 ci(deps): bump actions/checkout from 3 to 4 (#160)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-09 14:12:41 +03:30
Ardalan Amini 7e528e30f9 ci: add mention-new-contributors input in test workflow
Signed-off-by: Ardalan Amini <[email protected]>
2024-02-08 19:00:03 +03:30
Ardalan Amini 7a2a29dce5 ci: use default github-token input in test workflows
Signed-off-by: Ardalan Amini <[email protected]>
2024-02-08 18:45:07 +03:30
Ardalan Amini d271e2c7c6 ci(deps): update action Node.js version from 16 to 20
Signed-off-by: Ardalan Amini <[email protected]>
2024-02-08 18:30:31 +03:30
Ardalan Amini 6f8acfbacb chore: update README.md
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 13:29:38 +03:30
Ardalan Amini 45380686a1 refactor!: rename include-compare input to include-compare-link
Signed-off-by: Ardalan Amini <[email protected]>
2023-04-30 01:13:09 +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 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 a3982c4b9b feat: Include new contributors in the changelog (#49)
* feat: Add mention-new-contributors input

* deps: Add marked version 4.0.14

* feat: Include new contributors in the changelog

* revert: Test workflow changes
2022-04-29 11:18:38 +04:30
Ardalan Amini 49a93eccf5 feat: Add include-compare input 2022-04-29 10:38:47 +04:30
Ardalan Amini 764e9e6cc1 feat: Add release-name input 2022-04-29 00:43:46 +04:30
Ardalan Amini e765067aae ci(GitHub): fix test workflow 2022-04-29 00:24:25 +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
dependabot[bot]andArdalan Amini fe202a8d3c deps(CI): bump actions/cache from 2 to 3.0.1 (#30)
* deps(CI): bump actions/cache from 2 to 3.0.1

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update test.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ardalan Amini <[email protected]>
2022-04-10 18:44:52 +04:30
Ardalan Amini 1c2ccf6402 breaking: Rename token input to github-token 2022-03-04 20:02:31 +03: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
dependabot[bot] a27eb27e69 deps(CI): bump actions/checkout from 2 to 3 (#13)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-03 15:16:21 +03:30
Ardalan Amini 1c0fb135af ci: Update workflows 2022-02-28 22:02:22 +03:30
Ardalan Amini 8bfda644cc ci: Update release.yml workflow 2022-02-20 18:08:49 +03:30
Ardalan Amini df9f27defb ci: Update GitHub workflows 2021-06-19 20:04:40 +04:30
Ardalan Amini 25bed3a982 revert: Use generate-changelog package 2020-09-28 21:03:56 +03:30
Ardalan Amini bf85019aca ci: Add Release Workflow 2020-09-28 16:22:58 +03:30
Ardalan Amini ddb4b06bb9 feat: Add exclude & allow-unknown options 2020-09-28 16:16:03 +03:30
Ardalan Amini 886408e12f chore: Initial Source 2020-09-28 15:20:56 +03:30