-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add 'infile' option #220
Add 'infile' option #220
Conversation
README.md
Outdated
@@ -13,6 +13,7 @@ This action will bump version, tag commit and generate a changelog with conventi | |||
- **Optional** `git-branch`: The branch used to push. Default is the current branch (`${{ github.ref }}`) | |||
- **Optional** `git-url`: Git repository domain. Default is `github.com` | |||
- **Optional** `git-path`: Path filter for the logs. If set, only commits that match the path filter will be considered. By default, we won't use this feature(empty string). | |||
- **Optional** `infile`: Read the CHANGELOG from this file. |
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.
Could we bring this one inline with output-file
? So input-file
, maybe also describe a bit more what it does? If I understood correct :Read the CHANGELOG from this file and prepend the new release to it
.
dc94075
to
2e2ca61
Compare
action.yml
Outdated
@@ -56,6 +56,11 @@ inputs: | |||
default: "v" | |||
required: false | |||
|
|||
infile: | |||
description: "Read the CHANGELOG from this file" | |||
default: "CHANGELOG.md" |
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.
Also wondering what happens here? Wil this now not cause the whole old changelog to be append to the new one? (if you generate more then only the latest release, 5 is currently the default)
Think it's better to not have a default here?
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.
Good point. In my tests, it retains the prior content of the CHANGELOG.md
as long as it is set as --infile
—so all prior releases. This means that release-count
will not consider any releases in input-file
. I will add a note about this to release-count
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.
OK updated
2e2ca61
to
25027a7
Compare
@TriPSs, I've addressed your comments |
c3fcce9
to
5567f8d
Compare
@TriPSs, it looks like the infile option is exclusive to command line usage. I'm testing some things now and will update this when possible. |
d123779
to
90f4322
Compare
6c31de0
to
ee93fd7
Compare
OK. This has been updated, and I tested the action in my own project to verify:
|
ee93fd7
to
a858fad
Compare
Thanks for the PR! Could you also add a test case for this? |
b095fe6
to
b2bec20
Compare
OK. Test case is added. Let me know if this is in line with what you were thinking. |
Thanks for the PR! |
Thanks for merging! |
As discussed here. I still need to test this.