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

Workflow to sync labels across multiple repos #55

Open
emmyoop opened this issue Dec 19, 2022 · 1 comment
Open

Workflow to sync labels across multiple repos #55

emmyoop opened this issue Dec 19, 2022 · 1 comment
Labels

Comments

@emmyoop
Copy link
Member

emmyoop commented Dec 19, 2022

Problem:

We often create a label in dbt-core and then want it to also appear in all other repos (dbt-snowflake, dbt-redshift, dbt-spark, dbt-bigquery, dbt-docs, and so on). Right now we manually create it everywhere.

It would be great to be able to run an action to copy a label from one repo to one-to-many others. The name, description and color should all match. If the label already exists in another repo, it would be ideal if we could overwrite it with the new color/description properties.

Solution:
A reusable workflow with a workflow_dispatch and workflow_call trigger. We could then have a workflow that copies from dbt-core to all repos listed under the Core GitHub team. Then the workflow could also be triggered manually to deliver to a subset of those repos.

@github-actions github-actions bot changed the title Workflow to Sync data across multiple repos [CT-1677] Workflow to Sync data across multiple repos Dec 19, 2022
@emmyoop emmyoop changed the title [CT-1677] Workflow to Sync data across multiple repos Workflow to sync labels across multiple repos Dec 19, 2022
@lostmygithubaccount
Copy link
Contributor

lostmygithubaccount commented Dec 19, 2022

I have a notebook that might help getting started: https:/lostmygithubaccount/codyspace/blob/main/notebooks/labels.ipynb

it reads all the colors from dbt-core and sets them as the same in a bunch of other repos. not sure how urgent this is, but I'd be interested to do this in Go after some recent learning in #51

--

actually I was going to do something like this for personal repos too -- it's annoying to manually setup labels + colors. so wouldn't take a dependency on me doing this if it has any urgency, but otherwise I'm interested!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants