-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix backport issues for CHANGELOG.md file #4977
Conversation
b88162a
to
22fbf2c
Compare
.github/workflows/backport.yml
Outdated
@@ -22,7 +22,8 @@ jobs: | |||
installation_id: 22958780 | |||
|
|||
- name: Backport | |||
uses: VachaShah/[email protected] | |||
uses: VachaShah/[email protected] | |||
with: | |||
github_token: ${{ steps.github_app_token.outputs.token }} | |||
branch_name: backport/backport-${{ github.event.number }} |
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.
This should be head_template: backport/backport-<%= number %>-to-<%= base %>
instead of branch_name.
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.
Updated.
Signed-off-by: Kunal Kotwani <[email protected]>
22fbf2c
to
5511703
Compare
Gradle Check (Jenkins) Run Completed with:
|
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.
LGTM!
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Kunal Kotwani <[email protected]> Signed-off-by: Kunal Kotwani <[email protected]> (cherry picked from commit 171d141) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
With this change backports no longer have an entry in the CHANGELOG for changes. This means the 2.4.0 changelog will not include all the changes. I think this is ... a problem. |
We were constantly having issues with the backport GHA because of CHANGELOG which was causing oncall pain due to manual backports. There was also an issue of missing out on backport for certain versions considering the human effort involved. This process gets the workflow back to its original state, the backport PR will have the When backporting, folks were not moving the change to the appropriate section. This will take care of that as well. |
I see, thanks. The backport automation is becoming a lot less automated without the implementation you suggest in the last paragraph. For project maintainers it's not too hard to amend a PR, but for contributors it means mostly manually re-creating the backport in a fork? |
Please see - #4936 (comment) 🙂 The comment linked has a solution to both the aforementioned problems. It does the backporting without the changelog file, then backports the actual changelog line, all in a single workflow. |
Signed-off-by: Kunal Kotwani <[email protected]> Signed-off-by: Kunal Kotwani <[email protected]> (cherry picked from commit 171d141) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
Signed-off-by: Kunal Kotwani <[email protected]> Signed-off-by: Kunal Kotwani <[email protected]> (cherry picked from commit 171d141) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Kunal Kotwani [email protected]
Description
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.