Skip to content

Fix the label for cherry-pick in workflow yaml#8511

Merged
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:fix-cherry-pick-workflow
Jun 7, 2023
Merged

Fix the label for cherry-pick in workflow yaml#8511
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:fix-cherry-pick-workflow

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Jun 7, 2023

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

The workflow added for auto cherry-pick expects label like Approved for $branch branch.
For the sonic-mgmt repository, people are used to use label like Request for $branch branch.
Because of this difference, the cherry-pick actions are not really working.

How did you do it?

This fix updated the expected labels in workflow yaml to Request for $branch branch.

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

The workflow added for auto cherry-pick expects label like
`Approved for $branch branch`.
For the sonic-mgmt repository, people are used to use label like
`Request for $branch branch`.

Because of this difference, the cherry-pick actions are not really working.

This fix updated the expected labels in workflow yaml to `Request for $branch branch`.

Signed-off-by: Xin Wang <[email protected]>
@wangxin wangxin requested a review from liushilongbuaa June 7, 2023 03:25
Copy link
Contributor

@liushilongbuaa liushilongbuaa left a comment

Choose a reason for hiding this comment

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

LGTM

@wangxin wangxin merged commit 9d51d02 into sonic-net:master Jun 7, 2023
wangxin added a commit to wangxin/sonic-mgmt that referenced this pull request Jun 7, 2023
PR sonic-net#8511 updated the cherry-pick workflow to use lable "Request for 20xx branch".
However, the workflow condition was not updated accordingly. The workflow
actions are still skipped when labels like "Request for 20xx branch" is set.

This change updated the trigger condition in the workflow yaml to match labels
start with "Request for 20".

Signed-off-by: Xin Wang <[email protected]>
wangxin added a commit that referenced this pull request Jun 8, 2023
wangxin added a commit that referenced this pull request Jun 8, 2023
Reverts #8511
Before auto cherry-pick a PR, it is better idea to have approval procedure. Let's follow the same practice of sonic-buildimage repo.
@wangxin wangxin deleted the fix-cherry-pick-workflow branch July 12, 2023 02:15
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
The workflow added for auto cherry-pick expects label like
`Approved for $branch branch`.
For the sonic-mgmt repository, people are used to use label like
`Request for $branch branch`.

Because of this difference, the cherry-pick actions are not really working.

This fix updated the expected labels in workflow yaml to `Request for $branch branch`.

Signed-off-by: Xin Wang <[email protected]>
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
…" (sonic-net#8517)

Reverts sonic-net#8511
Before auto cherry-pick a PR, it is better idea to have approval procedure. Let's follow the same practice of sonic-buildimage repo.
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
The workflow added for auto cherry-pick expects label like
`Approved for $branch branch`.
For the sonic-mgmt repository, people are used to use label like
`Request for $branch branch`.

Because of this difference, the cherry-pick actions are not really working.

This fix updated the expected labels in workflow yaml to `Request for $branch branch`.

Signed-off-by: Xin Wang <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…" (sonic-net#8517)

Reverts sonic-net#8511
Before auto cherry-pick a PR, it is better idea to have approval procedure. Let's follow the same practice of sonic-buildimage repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants