-
Notifications
You must be signed in to change notification settings - Fork 23
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
[bug] make it so that the action can submit a pull request to update the changelog #78
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Everything looks good 👍 |
1 similar comment
Everything looks good 👍 |
I just tested this out, and it didn't work |
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 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 |
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 |
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.
The text was updated successfully, but these errors were encountered: