Skip to content
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

ci: Add manual backport trigger via workflow_dispatch #3276

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

Yaminyam
Copy link
Member

@Yaminyam Yaminyam commented Dec 19, 2024

This pull request introduces changes to the GitHub Actions workflow to support manual dispatch for backporting pull requests. The most important changes include adding inputs for the workflow_dispatch event and modifying the jobs section to handle commits based on the event type.

Enhancements to workflow dispatch:

Modifications to job steps:

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version

@Copilot Copilot bot review requested due to automatic review settings December 19, 2024 10:30

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

.github/workflows/backport.yml:36

  • The command assumes that the commit message contains the PR number in the format (#PR_NUMBER). If the commit message format does not follow this convention, the backport workflow will fail to find the correct commit. Consider adding a more robust method to identify the commit associated with the PR.
commits=$(git rev-list main --grep="(#${pr_number})" -n 1 | jq -Rc '[.]')
@github-actions github-actions bot added the size:S 10~30 LoC label Dec 19, 2024
@Yaminyam Yaminyam added this to the 24.12 milestone Dec 19, 2024
@Yaminyam Yaminyam requested a review from Copilot December 19, 2024 10:34

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@Yaminyam Yaminyam added the skip:changelog Make the action workflow to skip towncrier check label Dec 19, 2024
@achimnol achimnol added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit 4846b27 Dec 20, 2024
20 checks passed
@achimnol achimnol deleted the ci/backport-dispatch-trigger branch December 20, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S 10~30 LoC skip:changelog Make the action workflow to skip towncrier check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants