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

Add backport GitHub Action workflow #1138

Merged
merged 3 commits into from
Jun 30, 2023
Merged

Add backport GitHub Action workflow #1138

merged 3 commits into from
Jun 30, 2023

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Jun 30, 2023

This workflow automatically backports pull requests labeled with backport:<release series branch>.

For example, backport:release/v1.0.x to backport the pull request to a release/v1.0.x branch.

💡 To export already defined GitHub labels in the expected YAML format, you can use:

gh label list --json name,color,description --sort name -t '{{range .}}- name: {{.name}}{{"\n"}}  description: {{.description}}{{"\n"}}  color: '"'"#{{.color}}"'"'{{"\n"}}{{end}}'

Part of: fluxcd/flux2#4022

This workflow automatically backports pull requests labeled with
`backport:<release series branch>`.

For example, `backport:release/v1.0.x` to backport the pull request
to a `release/v1.0.x` branch.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco added the area/ci CI related issues and pull requests label Jun 30, 2023
@hiddeco hiddeco force-pushed the backport-automation branch 2 times, most recently from 70127e4 to 75f2d32 Compare June 30, 2023 09:58
This adds a GitHub Action workflow to sync the labels from a YAML file
in `.github/labels.yaml`.

Some of the labels have been changed for consistency, and an `aliases`
list has been defined to ensure they're renamed properly.

In terms of colors, I am still trying to figure out what looks best.
But this should be a good start to at least kick things off.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @hiddeco 🎖️

@hiddeco hiddeco added the enhancement New feature or request label Jun 30, 2023
@hiddeco hiddeco merged commit ac4261e into main Jun 30, 2023
10 checks passed
@hiddeco hiddeco deleted the backport-automation branch June 30, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants