mirror of
https://github.com/stefanzweifel/changelog-updater-action.git
synced 2026-02-21 22:57:24 +08:00
Compare commits
29 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3a7ae7d4a | ||
|
|
a938690fad | ||
|
|
66a0960fe2 | ||
|
|
61ce794778 | ||
|
|
d039f3bb96 | ||
|
|
ce438d6b18 | ||
|
|
622311beca | ||
|
|
40b11303c3 | ||
|
|
23517d7201 | ||
|
|
659c44fcda | ||
|
|
a3bf47f29c | ||
|
|
ab89eeba5a | ||
|
|
1b42472812 | ||
|
|
fbed2c00a9 | ||
|
|
cacc66e7e9 | ||
|
|
3b54ec6692 | ||
|
|
0bbd0ce270 | ||
|
|
3ad74a04f3 | ||
|
|
bdcfdf714a | ||
|
|
466d273d52 | ||
|
|
e3f4674254 | ||
|
|
da4726cb11 | ||
|
|
a6627c4c1b | ||
|
|
3bf35b6081 | ||
|
|
785f032d27 | ||
|
|
580b690bec | ||
|
|
1466b59021 | ||
|
|
4c08ecb682 | ||
|
|
41566bda9f |
8 changed files with 235 additions and 118 deletions
6
.github/workflows/update-changelog.yaml
vendored
6
.github/workflows/update-changelog.yaml
vendored
|
|
@ -8,6 +8,12 @@ jobs:
|
|||
update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||
# updaetd CHANGELOG back to the repository.
|
||||
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
|
|
|||
76
CHANGELOG.md
76
CHANGELOG.md
|
|
@ -5,14 +5,76 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.6.0...HEAD)
|
||||
## [Unreleased](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.12.0...HEAD)
|
||||
|
||||
<!-- New Release notes will be placed here automatically -->
|
||||
## [v1.2.1](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.2.0...v1.2.1) - 2022-02-01
|
||||
## [v1.12.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.11.0...v1.12.0) - 2024-11-16
|
||||
|
||||
## Fixed
|
||||
### Changed
|
||||
|
||||
- Fix `entrypoint.sh` file
|
||||
- Update CLI to v1.12 ([#46](https://github.com/stefanzweifel/changelog-updater-action/pull/46))
|
||||
|
||||
## [v1.11.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.10.0...v1.11.0) - 2024-05-18
|
||||
|
||||
### Added
|
||||
|
||||
- Add compare URLs to release heading based on previous release heading when no unreleased heading is available ([stefanzweifel/php-changelog-updater#52](https://github.com/stefanzweifel/php-changelog-updater/pull/52))
|
||||
|
||||
### Changed
|
||||
|
||||
- Update CLI to v1.11 ([#45](https://github.com/stefanzweifel/changelog-updater-action/pull/45))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix typos in README.md ([#44](https://github.com/stefanzweifel/changelog-updater-action/pull/44))
|
||||
|
||||
## [v1.10.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.9.1...v1.10.0) - 2023-11-25
|
||||
|
||||
### Added
|
||||
|
||||
- Upgrade CLI to Support PHP 8.3 ([#42](https://github.com/stefanzweifel/changelog-updater-action/pull/42))
|
||||
|
||||
### Changed
|
||||
|
||||
- Update README with new versions of actions/checkout and git-auto-commit-action ([#41](https://github.com/stefanzweifel/changelog-updater-action/pull/41))
|
||||
|
||||
## [v1.9.1](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.9.0...v1.9.1) - 2023-08-01
|
||||
|
||||
### Fixed
|
||||
|
||||
- Upgrade changelog-updater CLI to latest version ([#38](https://github.com/stefanzweifel/changelog-updater-action/pull/38))
|
||||
|
||||
## [v1.9.1](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.9.0...v1.9.1) - 2023-08-01
|
||||
|
||||
### Fixed
|
||||
|
||||
- Upgrade changelog-updater CLI to latest version ([#38](https://github.com/stefanzweifel/changelog-updater-action/pull/38))
|
||||
|
||||
## [v1.9.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.8.0...v1.9.0) - 2023-07-02
|
||||
|
||||
### Added
|
||||
|
||||
- Add support for new `--parse-github-usernames` option ([#36](https://github.com/stefanzweifel/changelog-updater-action/pull/36))
|
||||
|
||||
## [v1.8.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.7.0...v1.8.0) - 2023-05-29
|
||||
|
||||
### Added
|
||||
|
||||
- Add `hide-release-date` option ([#33](https://github.com/stefanzweifel/changelog-updater-action/pull/33))
|
||||
|
||||
## [v1.7.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.6.2...v1.7.0) - 2023-04-22
|
||||
|
||||
### Added
|
||||
|
||||
- Upgrade CLI to v1.7.0 ([#31](https://github.com/stefanzweifel/changelog-updater-action/pull/31))
|
||||
|
||||
## [v1.6.2](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.6.0...v1.6.2) - 2022-10-24
|
||||
|
||||
*Note: v1.6.1 has been skipped to be in sync with the versions of the CLI.*
|
||||
|
||||
### Changed
|
||||
|
||||
- Update Action to use latest CLI version ([#26](https://github.com/stefanzweifel/changelog-updater-action/pull/26))
|
||||
|
||||
## [v1.6.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.5.0...v1.6.0) - 2022-05-28
|
||||
|
||||
|
|
@ -61,6 +123,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- Fix broken CLI binary
|
||||
|
||||
## [v1.2.1](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.2.0...v1.2.1) - 2022-02-01
|
||||
|
||||
## Fixed
|
||||
|
||||
- Fix `entrypoint.sh` file
|
||||
|
||||
## [v1.2.0](https://github.com/stefanzweifel/changelog-updater-action/compare/v1.1.1...v1.2.0) - 2022-02-01
|
||||
|
||||
## Added
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at hello@stefanzweifel.io. All
|
||||
reported by contacting the project team at stefan@stefanzweifel.dev. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
|
|
|
|||
57
README.md
57
README.md
|
|
@ -10,7 +10,7 @@ The Action …
|
|||
*If your changelog follows the ["Keep a Changelog"](https://keepachangelog.com/) format and contains an "Unreleased"-heading, the Action will update the heading to point to the compare view between the latest version and `HEAD`. (Read more about this [here](https://github.com/stefanzweifel/php-changelog-updater#expected-changelog-formats))*
|
||||
|
||||
Don't want to use GitHub Actions? Checkout the [changelog-updater CLI](https://github.com/stefanzweifel/php-changelog-updater) that powers this Action.
|
||||
Want to learn more about this Action? Read my [introduction blog post](https://stefanzweifel.io/posts/2021/11/13/introducing-the-changelog-updater-action).
|
||||
Want to learn more about this Action? Read my [introduction blog post](https://stefanzweifel.dev/posts/2021/11/13/introducing-the-changelog-updater-action).
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ The Action is best used in a Workflow that listens to the `release`-event and th
|
|||
|
||||
The following is an example Workflow ready to be used.
|
||||
|
||||
The Workflow checks out [the target branch of the release](https://docs.github.com/en/rest/reference/releases#create-a-release--parameters), updates the `./CHANGELOG.md`-file with the name and the contents of the just released release and commits the changes back to your repository using [git-auto-commit](https://github.com/stefanzweifel/git-auto-commit-action).
|
||||
The Workflow checks out [the target branch of the release](https://docs.github.com/en/rest/releases/releases#create-a-release--parameters), updates the `./CHANGELOG.md`-file with the name and the contents of the just released release and commits the changes back to your repository using [git-auto-commit](https://github.com/stefanzweifel/git-auto-commit-action).
|
||||
|
||||
```yaml
|
||||
# .github/workflows/update-changelog.yaml
|
||||
|
|
@ -32,9 +32,15 @@ jobs:
|
|||
update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||
# updated CHANGELOG back to the repository.
|
||||
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.release.target_commitish }}
|
||||
|
||||
|
|
@ -45,7 +51,7 @@ jobs:
|
|||
release-notes: ${{ github.event.release.body }}
|
||||
|
||||
- name: Commit updated CHANGELOG
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
branch: ${{ github.event.release.target_commitish }}
|
||||
commit_message: Update CHANGELOG
|
||||
|
|
@ -54,6 +60,12 @@ jobs:
|
|||
|
||||
To generate the release notes automatically for you, I can recommend using the [release-drafter](https://github.com/release-drafter/release-drafter) Action.
|
||||
|
||||
> **Note**
|
||||
> When you use the `publish`-input of _release-drafter_ to immediately create the release, the `release`-event is probably not triggered due to a limitation of GitHub Actions.
|
||||
> Please create a personal access token, add it as a secret to your repository and pass the token to the `release-drafter/release-drafter`-Action.
|
||||
> See [this discussion](https://github.com/stefanzweifel/changelog-updater-action/discussions/30) for more details.
|
||||
|
||||
|
||||
### Advanced Usage
|
||||
|
||||
#### Use Tag Date as Release Date
|
||||
|
|
@ -61,9 +73,13 @@ To generate the release notes automatically for you, I can recommend using the [
|
|||
The following workflow is a bit more advanced. It …
|
||||
|
||||
- extracts the exact release date from the git tag
|
||||
- uses the target branch of the release in the "Unreleased" compare URL
|
||||
- optionally, uses the target branch of the release in the "Unreleased" compare URL
|
||||
- pushes the created commit to the target branch of the commit
|
||||
|
||||
> **Warning**
|
||||
> DO NOT enable the `compare-url-target-revision` option, if the target of your releases is the default branch (`ref/heads/main` or `main`).
|
||||
> The action would otherwise receive `refs/heads/main` as the target revision value and will generate invalid compare URLs.
|
||||
|
||||
<details>
|
||||
|
||||
<summary>Show update-changelog.yaml</summary>
|
||||
|
|
@ -80,11 +96,17 @@ jobs:
|
|||
update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||
# updated CHANGELOG back to the repository.
|
||||
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Fetch entire history of repository to ensure relase date can be
|
||||
# Fetch entire history of repository to ensure release date can be
|
||||
# extracted from commit of the given tag.
|
||||
fetch-depth: 0
|
||||
# Checkout target branch of this release. Ensures that the CHANGELOG
|
||||
|
|
@ -94,7 +116,7 @@ jobs:
|
|||
- name: Extract release date from git tag
|
||||
id: release_date
|
||||
run: |
|
||||
echo "::set-output name=date::$(git log -1 --date=short --format=%ad '${{ github.event.release.tag_name }}')"
|
||||
echo "date=$(git log -1 --date=short --format=%ad '${{ github.event.release.tag_name }}')" >> $GITHUB_OUTPUT;
|
||||
|
||||
- name: Update Changelog
|
||||
uses: stefanzweifel/changelog-updater-action@v1
|
||||
|
|
@ -103,10 +125,19 @@ jobs:
|
|||
release-date: ${{ steps.release_date.outputs.date }}
|
||||
release-notes: ${{ github.event.release.body }}
|
||||
latest-version: ${{ github.event.release.tag_name }}
|
||||
compare-url-target-revision: ${{ github.event.release.target_commitish }}
|
||||
|
||||
# Optional
|
||||
# If your project keeps separate branches for major releases, and you want to point the compare URL
|
||||
# in the "Unreleased"-heading to the corresponding major release branch (eg. `2.x`), then enable the option
|
||||
# below.
|
||||
# `compare-url-target-revision` will change how the compare URL is composed and will replace
|
||||
# `v2.0.1...HEAD` with `v2.0.1...2.x`.
|
||||
# WARNING: When you select `main` when creating a new release, the value `refs/heads/main`
|
||||
# is passed to the Action which will generate an invalid compare URL.
|
||||
# compare-url-target-revision: ${{ github.event.release.target_commitish }}
|
||||
|
||||
- name: Commit updated CHANGELOG
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
# Push updated CHANGELOG to release target branch.
|
||||
branch: ${{ github.event.release.target_commitish }}
|
||||
|
|
@ -124,7 +155,7 @@ The workflow …
|
|||
|
||||
- is manually triggered
|
||||
- builds a Java project
|
||||
- uses the content between the Unreleased and Previous Release heading as relase notes and updates the CHANGELOG.md
|
||||
- uses the content between the Unreleased and Previous Release heading as release notes and updates the CHANGELOG.md
|
||||
- commits the changes and pushes them to GitHub
|
||||
- creates a new GitHub release and points in the release notes to the right heading for the just released version
|
||||
|
||||
|
|
@ -157,14 +188,14 @@ Your changelog will look something like this:
|
|||
- Initial Release
|
||||
```
|
||||
|
||||
If you want to learn more on how the Action determines the place for the release notes, read the the [notes in the README of the CLI](https://github.com/stefanzweifel/php-changelog-updater#expected-changelog-formats) that powers this Action.
|
||||
If you want to learn more on how the Action determines the place for the release notes, read the [notes in the README of the CLI](https://github.com/stefanzweifel/php-changelog-updater#expected-changelog-formats) that powers this Action.
|
||||
|
||||
## Outputs
|
||||
|
||||
The Action exposes some outputs you can further use in your workflow. The Action currently supports the following outputs:
|
||||
|
||||
### `release_compare_url`
|
||||
The generated compare URL for the just created relase. For example `https://github.com/org/repo/compare/v1.0.0...v1.1.0`.
|
||||
The generated compare URL for the just created release. For example `https://github.com/org/repo/compare/v1.0.0...v1.1.0`.
|
||||
The value is only available, if the Action could generate a compare URL based on the available CHANGELOG data.
|
||||
|
||||
### `release_url_fragment`
|
||||
|
|
|
|||
12
action.yml
12
action.yml
|
|
@ -1,7 +1,7 @@
|
|||
name: 'Changelog Updater'
|
||||
description: 'Automatically update a CHANGELOG with the latest release notes.'
|
||||
|
||||
author: Stefan Zweifel <hello@stefanzweifel.io>
|
||||
author: Stefan Zweifel <stefan@stefanzweifel.dev>
|
||||
|
||||
inputs:
|
||||
release-notes:
|
||||
|
|
@ -27,6 +27,14 @@ inputs:
|
|||
required: false
|
||||
default: null
|
||||
description: Text used in the new release heading. Defaults to the value from latest-version.
|
||||
hide-release-date:
|
||||
required: false
|
||||
default: null
|
||||
description: Hide release date in the new release heading.
|
||||
parse-github-usernames:
|
||||
required: false
|
||||
default: null
|
||||
description: "Experimental: Find GitHub usernames in release notes and link to their profile."
|
||||
|
||||
outputs:
|
||||
release_compare_url:
|
||||
|
|
@ -50,3 +58,5 @@ runs:
|
|||
- ${{ inputs.path-to-changelog }}
|
||||
- ${{ inputs.compare-url-target-revision }}
|
||||
- ${{ inputs.heading-text }}
|
||||
- ${{ inputs.hide-release-date }}
|
||||
- ${{ inputs.parse-github-usernames }}
|
||||
|
|
|
|||
Binary file not shown.
195
composer.lock
generated
195
composer.lock
generated
|
|
@ -8,16 +8,16 @@
|
|||
"packages": [
|
||||
{
|
||||
"name": "dflydev/dot-access-data",
|
||||
"version": "v3.0.1",
|
||||
"version": "v3.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dflydev/dflydev-dot-access-data.git",
|
||||
"reference": "0992cc19268b259a39e86f296da5f0677841f42c"
|
||||
"reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/0992cc19268b259a39e86f296da5f0677841f42c",
|
||||
"reference": "0992cc19268b259a39e86f296da5f0677841f42c",
|
||||
"url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f",
|
||||
"reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
|
||||
"scrutinizer/ocular": "1.6.0",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"vimeo/psalm": "^3.14"
|
||||
"vimeo/psalm": "^4.0.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
|
|
@ -77,22 +77,22 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/dflydev/dflydev-dot-access-data/issues",
|
||||
"source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.1"
|
||||
"source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3"
|
||||
},
|
||||
"time": "2021-08-13T13:06:58+00:00"
|
||||
"time": "2024-07-08T12:26:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/commonmark",
|
||||
"version": "2.3.5",
|
||||
"version": "2.5.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/commonmark.git",
|
||||
"reference": "84d74485fdb7074f4f9dd6f02ab957b1de513257"
|
||||
"reference": "b650144166dfa7703e62a22e493b853b58d874b0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/84d74485fdb7074f4f9dd6f02ab957b1de513257",
|
||||
"reference": "84d74485fdb7074f4f9dd6f02ab957b1de513257",
|
||||
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/b650144166dfa7703e62a22e493b853b58d874b0",
|
||||
"reference": "b650144166dfa7703e62a22e493b853b58d874b0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -105,22 +105,22 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"cebe/markdown": "^1.0",
|
||||
"commonmark/cmark": "0.30.0",
|
||||
"commonmark/commonmark.js": "0.30.0",
|
||||
"commonmark/cmark": "0.31.1",
|
||||
"commonmark/commonmark.js": "0.31.1",
|
||||
"composer/package-versions-deprecated": "^1.8",
|
||||
"embed/embed": "^4.4",
|
||||
"erusev/parsedown": "^1.0",
|
||||
"ext-json": "*",
|
||||
"github/gfm": "0.29.0",
|
||||
"michelf/php-markdown": "^1.4",
|
||||
"michelf/php-markdown": "^1.4 || ^2.0",
|
||||
"nyholm/psr7": "^1.5",
|
||||
"phpstan/phpstan": "^1.8.2",
|
||||
"phpunit/phpunit": "^9.5.21",
|
||||
"phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0",
|
||||
"scrutinizer/ocular": "^1.8.1",
|
||||
"symfony/finder": "^5.3 | ^6.0",
|
||||
"symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0",
|
||||
"symfony/finder": "^5.3 | ^6.0 || ^7.0",
|
||||
"symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 || ^7.0",
|
||||
"unleashedtech/php-coding-standard": "^3.1.1",
|
||||
"vimeo/psalm": "^4.24.0"
|
||||
"vimeo/psalm": "^4.24.0 || ^5.0.0"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony/yaml": "v2.3+ required if using the Front Matter extension"
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "2.4-dev"
|
||||
"dev-main": "2.6-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
|
@ -185,20 +185,20 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-07-29T10:59:45+00:00"
|
||||
"time": "2024-08-16T11:46:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/config",
|
||||
"version": "v1.1.1",
|
||||
"version": "v1.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/config.git",
|
||||
"reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e"
|
||||
"reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/config/zipball/a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e",
|
||||
"reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e",
|
||||
"url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3",
|
||||
"reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -207,7 +207,7 @@
|
|||
"php": "^7.4 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/phpstan": "^0.12.90",
|
||||
"phpstan/phpstan": "^1.8.2",
|
||||
"phpunit/phpunit": "^9.5.5",
|
||||
"scrutinizer/ocular": "^1.8.1",
|
||||
"unleashedtech/php-coding-standard": "^3.1",
|
||||
|
|
@ -267,35 +267,35 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-08-14T12:15:32+00:00"
|
||||
"time": "2022-12-11T20:36:23+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nette/schema",
|
||||
"version": "v1.2.2",
|
||||
"version": "v1.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nette/schema.git",
|
||||
"reference": "9a39cef03a5b34c7de64f551538cbba05c2be5df"
|
||||
"reference": "da801d52f0354f70a638673c4a0f04e16529431d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nette/schema/zipball/9a39cef03a5b34c7de64f551538cbba05c2be5df",
|
||||
"reference": "9a39cef03a5b34c7de64f551538cbba05c2be5df",
|
||||
"url": "https://api.github.com/repos/nette/schema/zipball/da801d52f0354f70a638673c4a0f04e16529431d",
|
||||
"reference": "da801d52f0354f70a638673c4a0f04e16529431d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"nette/utils": "^2.5.7 || ^3.1.5 || ^4.0",
|
||||
"php": ">=7.1 <8.2"
|
||||
"nette/utils": "^4.0",
|
||||
"php": "8.1 - 8.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"nette/tester": "^2.3 || ^2.4",
|
||||
"phpstan/phpstan-nette": "^0.12",
|
||||
"tracy/tracy": "^2.7"
|
||||
"nette/tester": "^2.5.2",
|
||||
"phpstan/phpstan-nette": "^1.0",
|
||||
"tracy/tracy": "^2.8"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.2-dev"
|
||||
"dev-master": "1.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
|
@ -327,34 +327,36 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nette/schema/issues",
|
||||
"source": "https://github.com/nette/schema/tree/v1.2.2"
|
||||
"source": "https://github.com/nette/schema/tree/v1.3.2"
|
||||
},
|
||||
"time": "2021-10-15T11:40:02+00:00"
|
||||
"time": "2024-10-06T23:10:23+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nette/utils",
|
||||
"version": "v3.2.8",
|
||||
"version": "v4.0.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nette/utils.git",
|
||||
"reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368"
|
||||
"reference": "736c567e257dbe0fcf6ce81b4d6dbe05c6899f96"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nette/utils/zipball/02a54c4c872b99e4ec05c4aec54b5a06eb0f6368",
|
||||
"reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368",
|
||||
"url": "https://api.github.com/repos/nette/utils/zipball/736c567e257dbe0fcf6ce81b4d6dbe05c6899f96",
|
||||
"reference": "736c567e257dbe0fcf6ce81b4d6dbe05c6899f96",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2 <8.3"
|
||||
"php": "8.0 - 8.4"
|
||||
},
|
||||
"conflict": {
|
||||
"nette/di": "<3.0.6"
|
||||
"nette/finder": "<3",
|
||||
"nette/schema": "<1.2.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"nette/tester": "~2.0",
|
||||
"jetbrains/phpstorm-attributes": "dev-master",
|
||||
"nette/tester": "^2.5",
|
||||
"phpstan/phpstan": "^1.0",
|
||||
"tracy/tracy": "^2.3"
|
||||
"tracy/tracy": "^2.9"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd": "to use Image",
|
||||
|
|
@ -362,13 +364,12 @@
|
|||
"ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
|
||||
"ext-json": "to use Nette\\Utils\\Json",
|
||||
"ext-mbstring": "to use Strings::lower() etc...",
|
||||
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
|
||||
"ext-xml": "to use Strings::length() etc. when mbstring is not available"
|
||||
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.2-dev"
|
||||
"dev-master": "4.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
|
@ -412,9 +413,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nette/utils/issues",
|
||||
"source": "https://github.com/nette/utils/tree/v3.2.8"
|
||||
"source": "https://github.com/nette/utils/tree/v4.0.5"
|
||||
},
|
||||
"time": "2022-09-12T23:36:20+00:00"
|
||||
"time": "2024-08-07T15:39:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/event-dispatcher",
|
||||
|
|
@ -468,16 +469,16 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v3.1.1",
|
||||
"version": "v3.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||
"reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918"
|
||||
"reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918",
|
||||
"reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
|
||||
"reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -486,7 +487,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "3.1-dev"
|
||||
"dev-main": "3.5-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/contracts",
|
||||
|
|
@ -515,7 +516,7 @@
|
|||
"description": "A generic function and convention to trigger deprecation notices",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1"
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -531,30 +532,27 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-02-25T11:15:52+00:00"
|
||||
"time": "2024-04-18T09:32:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php80",
|
||||
"version": "v1.26.0",
|
||||
"version": "v1.31.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||
"reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace"
|
||||
"reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace",
|
||||
"reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8",
|
||||
"reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
"php": ">=7.2"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.26-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
|
|
@ -598,7 +596,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0"
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -614,7 +612,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-05-10T07:21:04+00:00"
|
||||
"time": "2024-09-09T11:45:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "webmozart/assert",
|
||||
|
|
@ -676,31 +674,32 @@
|
|||
},
|
||||
{
|
||||
"name": "wnx/changelog-updater",
|
||||
"version": "v1.6.2",
|
||||
"version": "v1.12.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/stefanzweifel/php-changelog-updater.git",
|
||||
"reference": "7842bf4864f722d1c065d046c4a40712290d10d9"
|
||||
"reference": "4b9095775f9ecdb1875b769faa8ac7917e300ba4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/stefanzweifel/php-changelog-updater/zipball/7842bf4864f722d1c065d046c4a40712290d10d9",
|
||||
"reference": "7842bf4864f722d1c065d046c4a40712290d10d9",
|
||||
"url": "https://api.github.com/repos/stefanzweifel/php-changelog-updater/zipball/4b9095775f9ecdb1875b769faa8ac7917e300ba4",
|
||||
"reference": "4b9095775f9ecdb1875b769faa8ac7917e300ba4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"league/commonmark": "^2.0",
|
||||
"php": "^8.1",
|
||||
"webmozart/assert": "^1.10",
|
||||
"wnx/commonmark-markdown-renderer": "^1.0"
|
||||
"league/commonmark": "^2.3.5",
|
||||
"php": "^8.2",
|
||||
"webmozart/assert": "^1.11",
|
||||
"wnx/commonmark-markdown-renderer": "^1.0.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.0",
|
||||
"laravel-zero/framework": "^9.0",
|
||||
"mockery/mockery": "^1.4.3",
|
||||
"pestphp/pest": "^1.3",
|
||||
"vimeo/psalm": "^4.8"
|
||||
"larastan/larastan": "^2.0",
|
||||
"laravel-zero/framework": "^11",
|
||||
"laravel/pint": "^1.10",
|
||||
"mockery/mockery": "^1.5.1",
|
||||
"pestphp/pest": "^2",
|
||||
"rector/rector": "^1.0"
|
||||
},
|
||||
"bin": [
|
||||
"builds/changelog-updater"
|
||||
|
|
@ -718,7 +717,7 @@
|
|||
"authors": [
|
||||
{
|
||||
"name": "Stefan Zweifel",
|
||||
"email": "hello@stefanzweifel.io"
|
||||
"email": "stefan@stefanzweifel.dev"
|
||||
}
|
||||
],
|
||||
"description": "PHP CLI to update a CHANGELOG following the \"Keep a Changelog\" format with the latest release notes.",
|
||||
|
|
@ -742,31 +741,31 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2022-10-24T17:38:18+00:00"
|
||||
"time": "2024-11-16T08:57:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "wnx/commonmark-markdown-renderer",
|
||||
"version": "v1.0.2",
|
||||
"version": "v1.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/stefanzweifel/commonmark-markdown-renderer.git",
|
||||
"reference": "f5f4d05fe16681a4eabfa8607f00ae5a7cebac6d"
|
||||
"reference": "08e2e9f13c7821d6f6e4c25d9a1cf45ef17ac212"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/stefanzweifel/commonmark-markdown-renderer/zipball/f5f4d05fe16681a4eabfa8607f00ae5a7cebac6d",
|
||||
"reference": "f5f4d05fe16681a4eabfa8607f00ae5a7cebac6d",
|
||||
"url": "https://api.github.com/repos/stefanzweifel/commonmark-markdown-renderer/zipball/08e2e9f13c7821d6f6e4c25d9a1cf45ef17ac212",
|
||||
"reference": "08e2e9f13c7821d6f6e4c25d9a1cf45ef17ac212",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"league/commonmark": "^2.0",
|
||||
"php": "^8.0"
|
||||
"php": "^8.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.0",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"spatie/ray": "^1.28",
|
||||
"vimeo/psalm": "^4.8"
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"phpunit/phpunit": "^10.0",
|
||||
"rector/rector": "^0.15.17"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
|
|
@ -781,7 +780,7 @@
|
|||
"authors": [
|
||||
{
|
||||
"name": "Stefan Zweifel",
|
||||
"email": "hello@stefanzweifel.io",
|
||||
"email": "stefan@stefanzweifel.dev",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
|
|
@ -795,7 +794,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/stefanzweifel/commonmark-markdown-renderer/issues",
|
||||
"source": "https://github.com/stefanzweifel/commonmark-markdown-renderer/tree/v1.0.2"
|
||||
"source": "https://github.com/stefanzweifel/commonmark-markdown-renderer/tree/v1.5.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -803,16 +802,16 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-11-25T14:56:46+00:00"
|
||||
"time": "2024-11-13T18:20:34+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"stability-flags": {},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.3.0"
|
||||
"platform": {},
|
||||
"platform-dev": {},
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,5 +7,8 @@ php /changelog-updater update \
|
|||
--path-to-changelog="$4" \
|
||||
--compare-url-target-revision="$5" \
|
||||
--heading-text="$6" \
|
||||
$( [ "$7" ] && echo "--hide-release-date" ) \
|
||||
$( [ "$8" ] && echo "--parse-github-usernames" ) \
|
||||
--github-actions-output \
|
||||
--write
|
||||
--write \
|
||||
--no-interaction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue