Closed mmattbtw closed 2 years ago
Thanks for opening your first issue here! Be sure to follow the issue template!
Everything looks good :thumbsup:
Everything looks good :thumbsup:
Hi, I want to know if the option BRANCH
and PULL_REQUEST
can not be directly used in your case?
I just tested this out, and it didn't work https://github.com/mmattDonk/AI-TTS-Donations/blob/9a7175789f9407e63ed1a7ca20b9065bcc1183f1/.github/workflows/changelog.yml#L20-L27
Ok, I think it is my fault that I didn't explain how to use this feature clearly.
This is your originnal workflow:
jobs:
generate-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: BobAnkh/auto-generate-changelog@master
with:
REPO_NAME: 'mmattDonk/AI-TTS-Donations'
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
PATH: '/CHANGELOG.md'
COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes'
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements'
BRANCH: ''
PULL_REQUEST: 'true'
Here you should specify the pull request from what BRANCH
to what PULL_REQUEST
branch. For example, set BRANCH
to docs/changelog
and set PULL_REQUEST
to main
and you will get a pull request opened from docs/changelog
to main
.
jobs:
generate-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: BobAnkh/auto-generate-changelog@master
with:
REPO_NAME: 'mmattDonk/AI-TTS-Donations'
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
PATH: 'CHANGELOG.md'
COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes'
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements'
- BRANCH: ''
+ BRANCH: 'docs/changelog'
- PULL_REQUEST: 'true'
+ PULL_REQUEST: 'main'
Use BRANCH
to specify where you want to push your changelog first, and use PULL_REQUEST to specify the target branch you want to open a pr. I design this for people who want to push changelog to other branches with or without a pull request.
Ok, thank you. There is a typo leading to the bug. I have fixed it now. Could you please help me test it? Really appreciate your help.
It finished successfully, but didn't make a pr :/ https://github.com/mmattDonk/AI-TTS-Donations/runs/4656755807?check_suite_focus=true
I see. I will try to debug this.
It turns out to be that:
The changelog file will not be created if it has no difference between the new-generated one in action and the current one.
Here is my design trade-off for this. I originally not want to push same things again and again. That is why the pull request not opened.
If you want to see it, just delete the branch docs/changelog
and re-run the workflow. Also I will release a new version contains those bug-fixes in master branch.
Hey, if everything works well now, then I will close this issue.
Many thanks for reporting this bug.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.
Is your feature request related to a problem? Please describe
My problem is that my main branch is protected with some required statuses that much be passed. The action tries to push it to the branch directly instead of using a pull request to submit new changes. Which gives this error:
Description of the new feature/enhancement
I would want the action to either submit a new pull request to update the changelog, or to update the changelog inside of the pull request itself.
Proposed technical implementation details (optional)
A clear and concise description of any solutions you've considered.
Additional context
Add any other context or screenshots about the feature request here.