-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate release notes generation #6187
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
5d2e6cf
Automate generation of release notes
pierlon 499a6e8
Merge branch 'develop' into enhancement/5520-release-automation
pierlon 162ee17
Limit release draft changelog generator to release branch being updated
pierlon 69d92c1
Add `draft-release` GHA
pierlon 05cca1f
Hide diff for `dist/index.js`
pierlon 5819882
Fix syntax
pierlon fd2a0ad
Fix making release
pierlon 81513c2
Don't hardcode repo name
pierlon d68ec22
Pass repo name to class
pierlon e52c598
Merge branch 'develop' of github.com:ampproject/amp-wp into enhanceme…
westonruter 9613b0c
Add npm script to generate release changelog
pierlon e1eab3b
Ignore lint error
pierlon 312f0d3
Parse arguments and validate them
pierlon 5b6e433
Check release is a draft before updating it
pierlon 752872d
Verify milestone and tag name match
pierlon 36e0871
Merge branch 'develop' into enhancement/5520-release-automation
pierlon 6f88a29
Update package-lock.json
pierlon 237f3f8
Build `draft-release` GHA
pierlon e0dea20
Format JSDoc block
pierlon 723c9f8
Merge branch 'develop' into enhancement/5520-release-automation
pierlon 1a89432
Update package-lock.json
pierlon 3efbadc
Merge branch 'develop' into enhancement/5520-release-automation
pierlon 0c958d7
Update package-lock.json
pierlon d1ccd88
Update draft-release GHA binary
pierlon 718b950
Suppress LGTM alert
pierlon 3c87818
Try moving suppression to front of comment
pierlon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"airbnb", | ||
"prettier" | ||
], | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} | ||
] | ||
}, | ||
"plugins": [ | ||
"prettier" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Mark generated files so diffs are hidden by default. | ||
dist/index.js linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Draft release action | ||
|
||
This action drafts a release for the specified milestone and release branch. | ||
|
||
## Inputs | ||
|
||
### `milestone` | ||
|
||
**Required** Milestone name. | ||
|
||
## Outputs | ||
|
||
### `asset_upload_url` | ||
|
||
The URL for uploading assets to the release. | ||
|
||
## Example usage | ||
|
||
```yaml | ||
uses: ./.github/actions/draft-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
milestone: v3.2.1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Draft release' | ||
description: 'Drafts a release based on the specified milestone' | ||
inputs: | ||
milestone: | ||
description: 'Milestone name' | ||
required: true | ||
release_branch: | ||
description: 'Release branch name' | ||
required: true | ||
outputs: | ||
asset_upload_url: | ||
description: 'The URL for uploading assets to the release' | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this file come from? Forgive my ignorance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, nevermind. It comes from
npm run build
for this sub-package.