Commit Graph
100 Commits
Author SHA1 Message Date
Mike PenzandGitHub e0b335b098 - add ability to trim values prior to inserting them in templates 2022-12-09 14:55:28 +00:00
Mike PenzandGitHub 27d0a0a53c - update replacement logic for array and comment types (fix cleanup if no match)
- adjust style definition - 140 line length
2022-12-09 14:09:40 +00:00
Mike PenzandGitHub 3e744d00f1 - update README 2022-12-09 13:30:31 +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 PenzandGitHub 2fe056f840 - optimize performance by respecting the max_pull_request setting for fetching PRs via the API already 2022-12-09 13:03:23 +00:00
Mike PenzandGitHub 5c9a6d23c2 - limit final pull requests based on the defined max_pull_requests count 2022-12-09 13:03:23 +00:00
Mike PenzandGitHub 38aabea998 - add capability to fetch review comments and use them as part of the target template
- allow array syntax to be used as part of reviewers, approvers, assignees
2022-12-09 13:03:23 +00:00
Mike PenzandGitHub 6846cd4c4f Merge pull request #974 from mikepenz/feature/dependency_updates_20221209
Update node dependencies
2022-12-09 14:02:53 +01:00
Mike PenzandGitHub 7c5ca75c6a - update dependencies
```
 @types/jest                 ^29.2.3  →    ^29.2.4
 @types/node                ^18.11.9  →  ^18.11.12
 @typescript-eslint/parser   ^5.44.0  →    ^5.46.0
 @vercel/ncc                 ^0.34.0  →    ^0.36.0
 eslint                      ^8.28.0  →    ^8.29.0
 eslint-plugin-github         ^4.4.1  →     ^4.6.0
 eslint-plugin-jest          ^27.1.5  →    ^27.1.6
 prettier                      2.8.0  →      2.8.1
 typescript                   ^4.9.3  →     ^4.9.4
 ```
2022-12-09 12:54:27 +00:00
Mike PenzandGitHub 5515e13be6 Merge pull request #973 from mikepenz/fix/965
Fix `undefined` for `match` regex
2022-12-09 13:53:46 +01:00
Mike PenzandGitHub 7885e80a58 - fix undefined for match regex
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/965
2022-12-09 12:46:07 +00:00
Mike PenzandGitHub 309a123e6e Merge pull request #972 from mxcl/patch-1
Use the default `github.token`
2022-12-08 20:59:24 +01:00
Mike PenzandGitHub 6e238ad569 Update README.md
- be more explicit on outlining the outlined configuration in the README being an example, vs the defaults being specified in the `configuration.ts` file
2022-11-30 10:28:52 +01:00
Mike PenzandGitHub 699dc63f29 Merge pull request #960 from mikepenz/feature/dev_container
DevContainer support
2022-11-29 14:49:03 +01:00
Mike PenzandGitHub e8eefb51f8 - introduce a .devcontainer.json config with node 16 2022-11-29 13:35:54 +00:00
Mike PenzandGitHub 42ead20f22 Merge pull request #957 from mikepenz/feature/dependency_updates_20221124
Update to latest stable dependency releases
2022-11-24 09:39:01 +01:00
Mike PenzandGitHub 684e7f5b0c - update dependencies to latest stable release
```
 @types/jest                 ^29.1.2  →   ^29.2.3
 @types/node                ^18.11.0  →  ^18.11.9
 @types/semver               ^7.3.12  →   ^7.3.13
 @typescript-eslint/parser   ^5.40.0  →   ^5.44.0
 eslint                      ^8.25.0  →   ^8.28.0
 eslint-plugin-github         ^4.4.0  →    ^4.4.1
 eslint-plugin-jest          ^27.1.2  →   ^27.1.5
 jest                        ^29.2.0  →   ^29.3.1
 jest-circus                 ^29.2.0  →   ^29.3.1
 prettier                      2.7.1  →     2.8.0
 typescript                   ^4.8.4  →    ^4.9.3
 webpack                     ^5.74.0  →   ^5.75.0
 ```
2022-11-24 08:33:24 +00:00
Mike PenzandGitHub a6290d6ee0 Merge pull request #943 from mikepenz/feature/939
Introduce additional logs to identify PR filtering
2022-10-27 17:12:59 +02:00
Mike PenzandGitHub d77f10180b Merge pull request #933 from mikepenz/feature/929
Differentiate between no match vs equal content for transformers
2022-10-27 17:00:39 +02:00
Mike PenzandGitHub b1d24502f1 Merge pull request #925 from mikepenz/feature/dependency_upgrades_20221017
Upgrade dependencies | `@actions/core` 1.10.0 | `@actions/github` 5.1.1
2022-10-17 14:47:59 +02:00
Mike PenzandGitHub ba6b2fdc87 - upgrade dependencies
```
 @actions/core                ^1.9.1  →   ^1.10.0
 @actions/github              ^5.0.3  →    ^5.1.1
 @octokit/rest               ^19.0.4  →   ^19.0.5
 @types/jest                 ^28.1.8  →   ^29.1.2
 @types/node                ^18.7.13  →  ^18.11.0
 @typescript-eslint/parser   ^5.35.1  →   ^5.40.0
 eslint                      ^8.22.0  →   ^8.25.0
 eslint-plugin-github         ^4.3.7  →    ^4.4.0
 eslint-plugin-jest          ^26.8.7  →   ^27.1.2
 jest                        ^28.1.3  →   ^29.2.0
 jest-circus                 ^28.1.3  →   ^29.2.0
 semver                       ^7.3.7  →    ^7.3.8
 ts-jest                     ^28.0.8  →   ^29.0.3
 typescript                   ^4.8.2  →    ^4.8.4
 ```
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/924
2022-10-17 12:42:14 +00:00
Mike PenzandGitHub ce424f3601 Merge pull request #909 from svengeance/patch-1
Fix custom test case TS file by supplying the correct number of arguments to ReleaseNotesBuilder
2022-10-07 09:34:25 +02:00
Mike PenzandGitHub 04630da780 Merge pull request #881 from mikepenz/feature/dependency_updates_20220826
Update dependencies
2022-08-26 11:03:19 +02:00
Mike PenzandGitHub a7d59ecef0 Merge pull request #880 from mikepenz/feature/no_proxy
Support `NO_PROXY` env config
2022-08-26 10:58:57 +02:00
Mike PenzandGitHub 27d94d81f6 - update dependencies
```
Package                    Current   Wanted   Latest  Location                                Depended by
@types/jest                 28.1.7   28.1.8   28.1.8  node_modules/@types/jest                release-changelog-builder-action
@types/node                 18.7.6  18.7.13  18.7.13  node_modules/@types/node                release-changelog-builder-action
@typescript-eslint/parser   5.33.1   5.35.1   5.35.1  node_modules/@typescript-eslint/parser  release-changelog-builder-action
eslint-plugin-jest          26.8.3   26.8.7   26.8.7  node_modules/eslint-plugin-jest         release-changelog-builder-action
jest                        28.1.3   28.1.3   29.0.0  node_modules/jest                       release-changelog-builder-action
jest-circus                 28.1.3   28.1.3   29.0.0  node_modules/jest-circus                release-changelog-builder-action
typescript                   4.7.4    4.8.2    4.8.2  node_modules/typescript                 release-changelog-builder-action
```
2022-08-26 08:56:08 +00:00
Mike PenzandGitHub aa57d8638c - recompile dist 2022-08-26 08:52:21 +00:00
Mike PenzandGitHub 8fcad8a0a0 - add support for NO_PROXY setup
- Based on https://github.com/tillganster/create-pull-request/blob/f9980167df95c66e46f8a787ae951954cb5cfc6d/src/octokit-client.ts
2022-08-26 08:51:46 +00:00
Mike PenzandGitHub 73cfc0ab54 Merge pull request #871 from mikepenz/feature/semver_types_dev_only
Move `@types/semver` as dev only dependency
2022-08-19 09:43:53 +02:00
Mike Penz b2cff3cf99 - @types/semver can be dev dependency only 2022-08-19 09:20:05 +02:00
Mike PenzandGitHub 1bd2463626 Merge pull request #869 from mikepenz/feature/dependency_updates_20220816
Dependency updates | octokit/rest 19.0.4 | types/semver 7.3.12
2022-08-16 17:13:24 +02:00
Mike Penz 89e7a9caf5 - valid does not take the includePrerelease option 2022-08-16 17:07:20 +02:00
Mike Penz e5c1179611 - dependency updates
```
Package                    Current  Wanted  Latest  Location                                Depended by
@octokit/rest               19.0.3  19.0.4  19.0.4  node_modules/@octokit/rest              release-changelog-builder-action
@types/jest                 28.1.6  28.1.7  28.1.7  node_modules/@types/jest                release-changelog-builder-action
@types/node                 18.6.5  18.7.6  18.7.6  node_modules/@types/node                release-changelog-builder-action
@types/semver               7.3.10  7.3.12  7.3.12  node_modules/@types/semver              release-changelog-builder-action
@typescript-eslint/parser   5.33.0  5.33.1  5.33.1  node_modules/@typescript-eslint/parser  release-changelog-builder-action
eslint                      8.21.0  8.22.0  8.22.0  node_modules/eslint                     release-changelog-builder-action
eslint-plugin-jest          26.8.2  26.8.3  26.8.3  node_modules/eslint-plugin-jest         release-changelog-builder-action
ts-jest                     28.0.7  28.0.8  28.0.8  node_modules/ts-jest                    release-changelog-builder-action
```
2022-08-16 16:56:54 +02:00
Mike Penz 7510d6cb18 Merge branch 'SkySails-fix/cleanup-custom-ph-from-pr-template' into develop 2022-08-16 16:52:31 +02:00
Mike Penz 751693c311 - recompile dist
- add additional never matching custom placeholder to verify behavior
2022-08-16 16:52:26 +02:00
Mike PenzandGitHub 117e48acf3 Merge pull request #857 from mikepenz/feature/update_dependencies_20220810
Update dependencies 2022.08.10 | @actions/core
2022-08-10 14:35:48 +02:00
Mike PenzandGitHub 2141e3fb4f - update dependencies
```
Package                    Current  Wanted  Latest  Location                                Depended by
@actions/core                1.9.0   1.9.1   1.9.1  node_modules/@actions/core              release-changelog-builder-action
@types/node                 18.6.4  18.6.5  18.6.5  node_modules/@types/node                release-changelog-builder-action
@typescript-eslint/parser   5.32.0  5.33.0  5.33.0  node_modules/@typescript-eslint/parser  release-changelog-builder-action
eslint-plugin-jest          26.7.0  26.8.2  26.8.2  node_modules/eslint-plugin-jest         release-changelog-builder-action
```
2022-08-10 12:27:25 +00:00
Mike PenzandGitHub 779bd4ee53 Merge branch 'proxy' into develop 2022-08-10 12:21:41 +00:00
Mike PenzandGitHub e38965eec7 - adjust agent to be undefined instead of an empty object 2022-08-10 12:20:56 +00:00
Mike PenzandGitHub 79931e1000 Merge pull request #856 from mikepenz/feature/fix_log_message
Ensure log message is properly displayed as string
2022-08-09 18:54:30 +02:00
Mike PenzandGitHub 63b88e3bff - ensure log message is properly displayed as string 2022-08-09 16:47:12 +00:00
Mike PenzandGitHub 5dc6e72082 Merge pull request #847 from mikepenz/feature/dependency_udpates_20220805
Dependency updates - 2022.08.05
2022-08-05 15:01:19 +02:00
Mike PenzandGitHub 09f88b90a5 - update dependencies
```
Package                    Current  Wanted  Latest  Location                                Depended by
@types/node                 18.6.2  18.6.4  18.6.4  node_modules/@types/node                release-changelog-builder-action
@typescript-eslint/parser   5.31.0  5.32.0  5.32.0  node_modules/@typescript-eslint/parser  release-changelog-builder-action
eslint                      8.20.0  8.21.0  8.21.0  node_modules/eslint                     release-changelog-builder-action
eslint-plugin-jest          26.6.0  26.7.0  26.7.0  node_modules/eslint-plugin-jest         release-changelog-builder-action
```
2022-08-05 12:54:11 +00:00
Mike PenzandGitHub 70047b300c Merge pull request #846 from mikepenz/feature/add_custom_placeholder_docs
Introduce documentation on `experimental` custom placeholder feature
2022-08-05 14:52:54 +02:00
Mike PenzandGitHub bed15c1b24 - add more logs for custom placeholders
- write up experimental docs for custom placeholders
2022-08-05 12:45:37 +00:00
Mike PenzandGitHub e725caaceb Merge pull request #840 from mikepenz/fix/exclusion_of_no_match
Exclude no match custom placeholders
2022-07-30 09:13:19 +02:00
Mike Penz 4cc48881f7 - recompile dist 2022-07-30 09:04:48 +02:00
Mike Penz 2f418c46e5 - exclude custom placeholder content if there was no match 2022-07-30 08:15:32 +02:00
Mike PenzandGitHub d498bbd476 Update demo action version 2022-07-29 20:04:49 +02:00
Mike PenzandGitHub f0807d2719 Merge pull request #837 from mikepenz/feature/custom_placeholders
Introduce experimental support for CUSTOM PLACEHOLDERS
2022-07-29 18:47:10 +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 PenzandGitHub 15a108d43e - introduce ES2021.String for replaceAll
- expand Configuration with `custom_placeholders` configuration
  - custom placeholders allow to extract values of placeholders and then use these in templates
- refactor replacing PR template values
2022-07-29 14:29:50 +00:00
Mike PenzandGitHub 2fe4b852d3 Merge pull request #836 from mikepenz/feature/reformat_src
Reformat source
2022-07-29 16:00:32 +02:00
Mike PenzandGitHub b1ea770a88 - reformat source - lineLength 120 2022-07-29 13:48:53 +00:00
Mike PenzandGitHub f0d418bd0c Merge pull request #834 from mikepenz/feature/dependency_upgrades_20220729
Update dependencies | `@types/node`
2022-07-29 13:18:48 +02:00
Mike PenzandGitHub 72b4e5f1ef - update dependencies
```
    "@types/node": "^18.6.1",
```
2022-07-29 11:11:02 +00:00
Mike PenzandGitHub 8dddfc270f Merge pull request #833 from mikepenz/feature/config_json_in_yml
Provide configuration as string in `ci.yml`
2022-07-29 11:47:51 +02:00
Mike Penz c33f3467a2 - cancel actions on concurrent runs 2022-07-29 11:45:38 +02:00
Mike PenzandGitHub 3728477799 - test capability of providing json in yml 2022-07-29 09:34:33 +00:00
Mike PenzandGitHub f55f49981d - adjust placeholder for yml as ${{}} is reserved 2022-07-29 09:30:57 +00:00
Mike PenzandGitHub 02b79cb00a - introduce capability to define the Configuration via the build yml without the requirement of a file
- this also allows to generate changelogs without the need to chech-out
2022-07-29 09:21:44 +00:00
Mike PenzandGitHub ffcbb8e311 Merge pull request #831 from mikepenz/feature/830
Add  `branch` name to `PullRequestInfo`
2022-07-29 10:48:23 +02:00
Mike Penz c4a63d86ad - introduce branch (head ref) as data point in the PullRequestInfo object
- expand extractor to allow using the `branch` -> e.g. to extract the label
2022-07-27 17:19:50 +02:00
Mike PenzandGitHub 1c0b89a38e Fix README template sections 2022-07-27 16:55:31 +02:00
Mike PenzandGitHub 0e96047683 Merge pull request #827 from mikepenz/feature/fetch_release_information
Fetch GitHub release information
2022-07-26 17:01:01 +02:00
Mike Penz 5f32f47cd6 - update README with new placeholder items useable 2022-07-26 16:54:24 +02:00
Mike Penz d2a15abb64 - drop support for tag SHA as in most cases this information is not available at the moment
- introduce new testcase to verify `DAYS_SINCE` calculation
- fix wrong log messages using the `TagInfo` object instead the name
- add additional log messages
2022-07-26 16:48:06 +02: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 PenzandGitHub 09ae38aa7f Merge pull request #826 from mikepenz/feature/output_commitmode
Also set diff information output for `commitMode`
2022-07-26 16:42:44 +02:00
Mike PenzandGitHub e28cff0b4c Merge pull request #825 from mikepenz/feature/local_debugging_testing
Include `Local Testing` section in README
2022-07-26 16:20:13 +02:00
Mike Penz 2fd6f64773 - ensure output is properly set also in commitMode 2022-07-26 14:42:20 +02:00
Mike Penz 0253e21cdc - add note on local testing / debugging via Visual Code 2022-07-26 14:37:20 +02:00
Mike PenzandGitHub 12f54a4f9b Merge pull request #824 from mikepenz/feature/dependency_updates_20220726
Update dependencies | Webpack 5.74.0
2022-07-26 14:30:38 +02:00
Mike Penz 9e31f53866 - update dependencies
```
    "webpack": "^5.74.0"
```
```
    "@types/node": "^18.6.1",
    "@typescript-eslint/parser": "^5.31.0",
    "eslint-plugin-github": "^4.3.7",
```
2022-07-26 14:22:18 +02:00
Mike PenzandGitHub 99ea554518 Merge pull request #823 from mikepenz/feature/diff_info_placeholders
Introduce new placeholders - Changed files, Additions, Deletions, Changes, Commits
2022-07-26 14:21:48 +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 PenzandGitHub 2b8bedc47a Merge pull request #818 from mikepenz/feature/dependency_updates_20220722
Dependency updates 2022.07.22
2022-07-22 09:56:23 +02:00
Mike Penz 131ff98d22 - dependency updates
```
    "@octokit/rest": "^19.0.3",
```
```
    "@types/jest": "^28.1.6",
    "@types/node": "^18.0.6",
    "@typescript-eslint/parser": "^5.30.7",
    "eslint": "^8.20.0",
    "eslint-plugin-jest": "^26.6.0",
    "jest": "^28.1.3",
    "jest-circus": "^28.1.3",
    "ts-jest": "^28.0.7",
```
2022-07-22 09:49:10 +02:00
Mike PenzandGitHub 401210947f Merge pull request #807 from mikepenz/feature/upgrade_ci_20220708
Improve CI pipelines
2022-07-08 11:01:15 +02:00
Mike PenzandGitHub 8761777ada Merge pull request #806 from mikepenz/feature/dependency_upgrades_20220708
Dependency upgrades - 2022.07.08
2022-07-08 10:54:35 +02:00
Mike Penz ca96efe4c6 - upgrade CI pipelines
- introduce dist check
2022-07-08 10:54:25 +02:00
Mike PenzandGitHub 4c35c42602 Merge pull request #805 from mikepenz/feature/804
Introduce `empty_content` configuration option for categories
2022-07-08 10:47:58 +02:00
Mike Penz 4360ffd09f - update dependencies to latest stable versions
```
    "@octokit/rest": "^19.0.1",
    "moment": "^2.29.4",
```
```
    "@types/jest": "^28.1.4",
    "@types/node": "^18.0.3",
    "@typescript-eslint/parser": "^5.30.5",
    "eslint": "^8.19.0",
    "jest": "^28.1.2",
    "jest-circus": "^28.1.2",
    "typescript": "^4.7.4"
```
2022-07-08 10:43:24 +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 PenzandGitHub 9628cd4fe0 - use new warning and note syntax 2022-07-03 15:53:01 +02:00
Mike PenzandGitHub 943b211edc Merge pull request #794 from mikepenz/fix/790
Update README to use different release action
2022-06-22 10:56:47 +02:00
Mike PenzandGitHub e99e680cdc - Update README to use different release action
- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/790
2022-06-22 08:32:13 +00:00
Mike Penz 2ef19db678 - fix more preview images 2022-06-16 15:22:22 +02:00
Mike Penz d40bbdbd45 - fix broken preview image 2022-06-16 15:21:43 +02:00
Mike PenzandGitHub 4768b8bc30 Merge pull request #786 from mikepenz/feature/dependency_updates_20220616
Dependency updates 2022.06.16
2022-06-16 15:12:06 +02:00
Mike Penz df81df33e7 - update
```
    "@actions/core": "^1.9.0",
    "@octokit/rest": "^18.12.0",
    "@types/semver": "^7.3.10",
    "@types/jest": "^28.1.1",
    "@types/node": "^18.0.0",
    "@typescript-eslint/parser": "^5.28.0",
    "@vercel/ncc": "^0.34.0",
    "eslint": "^8.17.0",
    "eslint-plugin-jest": "^26.5.3",
    "jest": "^28.1.1",
    "jest-circus": "^28.1.1",
```
2022-06-16 15:04:28 +02:00
Mike Penz d246f23caf Merge branch 'ipcjs-pr/about-totag' into develop 2022-06-16 15:00:39 +02:00
Mike Penz 99572f3216 - expand wording that valid git refs can be used instead of tags too 2022-06-16 15:00:14 +02:00
Mike PenzandGitHub 6c807b044d - recompile dist with GitHub codespaces 2022-05-16 06:40:15 +00:00
Mike Penz cb4b8d3ade - update README base config to v3 2022-05-13 15:47:10 +02:00
Mike PenzandGitHub 8b141a9afd Merge pull request #759 from mikepenz/feature/757
Additional sort configuration options
2022-05-13 12:05:59 +02:00
Mike Penz 939712bd2c - outline new construct for sort config 2022-05-13 11:31:31 +02:00
Mike Penz 0bb7bd0176 - expand configuration specification by offering sorting by alternative properties -> title instead of mergedAt.
- add more testcases to cover the new sort orders
  - FIX https://github.com/mikepenz/release-changelog-builder-action/issues/757
2022-05-13 11:28:46 +02:00
Mike PenzandGitHub 91d5ed10ec Merge pull request #758 from mikepenz/feature/dependency_updates_20220513
Dependency upgrades 2022.05.13
2022-05-13 10:29:58 +02:00