Skip to content

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>
@hiddeco hiddeco force-pushed the backport-automation branch from 75f2d32 to cbb46a1 Compare June 30, 2023 10:00
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco force-pushed the backport-automation branch from cbb46a1 to 32be110 Compare June 30, 2023 10:02
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
@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.

3 participants