Commit Graph
47 Commits
Author SHA1 Message Date
Mike PenzandGitHub db235a6627 - introduce new mode configuration (replaces commitMode) with the option for PR, COMMIT or HYBRID (whereas hybrid has commits and PRs alongside)
- introduce new default commit configuration automatically used if `COMMIT` mode is configured. this uses a label extractor to support conventional commits
2024-03-02 12:03:19 +00:00
Mike PenzandGitHub f0ad0cf07a - add helper methods for tsts
- add new ability to recursively build changelog
- add feature to consume PRs if they were matched to a category
- keep header if children have entry
2024-03-01 20:11:14 +00:00
Mike PenzandGitHub 4014bc63c1 - format code 2024-03-01 19:24:09 +00:00
Mike PenzandGitHub 39d8ac4b4f - clear categories in tests as we run in the same process multiple times 2024-03-01 19:23:22 +00:00
Ankio 0052b3d1ab tests:add gitea test cases and fix tests error 2023-11-01 11:05:55 +08:00
Mike PenzandGitHub 695b32d625 - change the default placeholder pattern from ${{}} to #{{}} as this will work for both config.json files and the yaml (${{}} is reserved for github actions syntax) 2023-08-31 19:14:23 +00:00
Mike PenzandGitHub 5dd7722b69 - fix regex in testcase 2023-08-25 09:57:29 +00:00
Mike PenzandGitHub f8437dbf1f - fix tests with refactored setup 2023-08-18 17:39:16 +00:00
Mike PenzandGitHub d8188193ab - drop github prefix of pr-collector 2023-08-18 16:56:13 +00:00
Mike PenzandGitHub 80485ce20e - update tests for new configuration option 2023-07-28 10:08:17 +00:00
Mike PenzandGitHub 709039ced4 - update tests for change ddefault 2023-06-11 20:28:04 +00:00
Mike PenzandGitHub 48896744b7 - update the default categories to include the uncategorized category 2023-06-11 20:07:14 +00:00
Mike PenzandGitHub 1f64818c28 - add README updates 2023-06-04 18:57:45 +00:00
Mike PenzandGitHub 831ac3e7ee - introduce the ability to reference parent / child PR relationships
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/1074
- optimize placeholder removal
- only keep placeholders in array if we have values
2023-06-04 18:48:53 +00:00
Mike PenzandGitHub a22e4da945 - update some imports 2023-06-04 09:02:16 +00:00
Mike PenzandGitHub e7dc26611c - move pr collection into npm module
(publish without any furhter notes or docs)
- refactor action to use npm dependency
2023-06-03 11:22:52 +00:00
Mike PenzandGitHub bb7c58fa98 - update the transform.test.ts 2023-05-30 15:06:17 +00:00
Mike PenzandGitHub 9368ec2457 - rename to exhaustive_rules
- recompile dist
2023-05-03 17:49:57 +00:00
Federico M. Facca d594c56834 revert linter changes 2023-05-03 17:58:12 +02:00
Federico M. Facca 1794edb8f3 add possibility to configure if rules are and/or independently from labels 2023-05-03 17:50:51 +02:00
Federico M. Facca fa8d0100dc add test combining number and status 2023-05-03 16:55:49 +02:00
Mike PenzandGitHub 50dd476bd1 - enhance handling for exhaustive matching
- exhaustive will apply on rules and labels alike
- simplify code
- introduce new testcases to check the new behavior
2023-01-06 09:13:30 +00:00
Mike PenzandGitHub 793329d870 - introduce new rules for the Category
- the rules can be used to match specified `Properties` with a `RegExp` (uses `test`) - to add them into a category
  - This allows more complex changelogs to be constructed, which for example want all `OPEN` PRs in one category
2023-01-03 17:29:56 +00:00
Mike PenzandGitHub 24f4e30f9f - introduce proper configuration for fetchReviews
- drop no longer needed limiting of PRs
- retrieve state from PR review comment
2022-12-09 13:29:06 +00:00
Mike Penz 751693c311 - recompile dist
- add additional never matching custom placeholder to verify behavior
2022-08-16 16:52:26 +02:00
Malte Hallström e8ee90b94f - cleanup unmatched custom ph:s from pr template 2022-08-16 16:05:39 +02:00
Mike Penz 4cc48881f7 - recompile dist 2022-07-30 09:04:48 +02:00
Mike PenzandGitHub 74dd88f60c - add logic which cleans up custom placeholders with the [] syntax which were not matched 2022-07-29 16:40:39 +00:00
Mike PenzandGitHub fba9cdb51d - expand custom placeholders to the global template
- introuce capability of accessing and referencing custom placeholders of PRs in the global template
```
${{CUSTOM_PLACEHOLDER[0]}}
${{CUSTOM_PLACEHOLDER[*]}}
```
- introduce new testcase checking the custom placeholder functionality
2022-07-29 16:11:14 +00:00
Mike PenzandGitHub 7b1021454a - introduce capability for custom placeholders also to the global template
- introduce new convenient functions to handle this
2022-07-29 14:54:45 +00:00
Mike Penz c061d0e577 - introduce new configuration flag to fetchReleaseInformation
- if enabled, it will unlock the ability to use new placeholders
  - `${{ DAYS_SINCE }}`
  - `${{ FROM_TAG_DATE }}`
  - `${{ TO_TAG_DATE }}`
- refactor to carry on the full `TagInfo` information instead of only the tagname
- refresh testcases to new apis
2022-07-26 16:47:23 +02:00
Mike Penz 55354469a8 - introduce new additional placeholders useable for building the changelog
| **Placeholder**            | **Description**                                                                                    | **Empty** |
|----------------------------|----------------------------------------------------------------------------------------------------|:---------:|
| `${{CHANGED_FILES}}`       | The count of changed files.                                                                        |           |
| `${{ADDITIONS}}`           | The count of code additions (lines).                                                               |           |
| `${{DELETIONS}}`           | The count of code deletions (lines).                                                               |           |
| `${{CHANGES}}`             | The count of total changes (lines).                                                                |           |
| `${{COMMITS}}`             | The count of commits in this release.                                                              |           |

- restructure project to return additional diff related information along the individual commits
- update testcases to verify functionality of new placeholders
2022-07-26 14:14:16 +02:00
Mike Penz 89475f1193 - introduce new configuration option, allowing to provide an empty_content for categories matching no PRs
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/804
2022-07-08 10:40:47 +02:00
Mike Penz 1e867df2de - introduce new flag allowing to fetch reviewers who approved PRs
- add new testcase which verifies approvers being included
  - adjust config for some test cases to verify reviewers not being pulled if disabled
2022-04-08 12:13:21 +02:00
Mike Penz 85af6a8181 - introduce new flag to include open PRs into the changelog
- only fetch open with this flag
- expand pull request spec with
  - status, created at timestamp
- expand definition for placeholder patterns in the changelog
2022-04-08 11:00:39 +02:00
Mike Penz 603140e9ac - add test case to verify exclude_label functions as expected 2022-02-11 11:12:56 +01:00
Mike Penz 29543cec44 - introduce test case to verify release diff generation 2022-02-02 18:24:03 +01:00
Mike Penz b5ad2456c8 - introduce ability to specify on_property on extractors as Array.
- simplify setup of more complex definitions
  - FIX https://github.com/mikepenz/release-changelog-builder-action/issues/651
2022-01-28 18:17:27 +01:00
Mike Penz 1fa3f709a9 - add ability to provide an empty string in case the regex does not match
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/576
2021-11-12 11:36:29 +01:00
Mike Penz f93f67fad5 - introduce new MERGE_SHA placeholder support into template for PRs (and commit SHA for commit mode)
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/552
2021-10-22 22:18:06 +02:00
Mike Penz ee1c8d50cc - update test verification for proper sorting 2021-09-14 13:48:34 +02:00
Mike Penz 7a28de97be - introduce new configuration duplicate_filter allowing to drop duplicated elements from the changelog
- restructure transform.ts to simplify code
  - introduce new test cases to verify new deduplication feature
2021-08-27 13:28:56 +02:00
Mike Penz 59a6af0516 - restructure transform.test.ts
- format test files
2021-08-27 11:59:12 +02:00
Mike Penz cfac2f37a1 - introduce new configuration option to define category labels to be exhaustive
- require all labels of a category to be present in the matching PR
- update to typescript 4.4.x
- recompile dist
2021-08-27 11:41:20 +02:00
Mike Penz e94389ad02 - add additional test case to highlight combined regex for multiple labels 2021-08-26 16:46:45 +02:00
Mike Penz d8f61a957d - introduce new match mechanism for the label_extractor. Allowed replace (default) vs match
- introduce new test case to verify match behavior
2021-08-26 16:41:45 +02:00
Mike Penz a753722e84 - introduce test cases for transform.test.ts
- add test case to highlight label extractor feature FIX https://github.com/mikepenz/release-changelog-builder-action/issues/450
  - test cases can easily be run via `npm test -- transform.test.ts`
- slightly simplify releaseNotes.ts and transform.ts
2021-08-26 16:05:04 +02:00