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

Make minimum set of labels available across repos #145

Closed
8 tasks done
patcon opened this issue Nov 14, 2019 · 95 comments
Closed
8 tasks done

Make minimum set of labels available across repos #145

patcon opened this issue Nov 14, 2019 · 95 comments
Assignees
Labels
infrastructure Back office infrastructure tasks operations Back office operations tasks

Comments

@patcon
Copy link
Contributor

patcon commented Nov 14, 2019

Re-ticketed from #132

Shared Description

πŸ—£οΈ Loomio: N/A
πŸ“… Due date: N/A
🎯 Success criteria: We have an appropriate set of labels available in each repo we want them in.

I've run up against labels being missing from repos that are only in hyphacoop/organizing. @dcwalk and I have worked on a project (EDGI) with multiple repos, where keeping them in sync was nice. (see here)

Proposed labels: See comment below.

Proposed repos: All repos. why not! (to keep it simple, even if some will be almost guaranteed unused)

cc: @hyphacoop/infra-ops-wg

To Do

@patcon patcon added the infrastructure Back office infrastructure tasks label Nov 14, 2019
@patcon patcon self-assigned this Nov 14, 2019
@patcon
Copy link
Contributor Author

patcon commented Nov 14, 2019

Or instead of defining a config and making a people-run sync process, we could just πŸ’‘ choose a canonical repo to base the labels off of, and have a script run in CircleCI to generate a config, then it against every other org repo #zeroconfig style :)

Related: https://github.com/popomore/github-labels#export-from-github-website

GitHub Actions can even trigger the script to run every time the labels are editted/created/deleted:
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#label-event-label

@patcon
Copy link
Contributor Author

patcon commented Nov 14, 2019

Exported, in case we want to use this: label-config.json

[
  {
    "name": "blocked",
    "color": "d73a4a"
  },
  {
    "name": "[priority-β˜…β˜…β˜…]",
    "color": "ff7f00"
  },
  {
    "name": "[priority-β˜…β˜…β˜†]",
    "color": "ffaa00"
  },
  {
    "name": "[priority-β˜…β˜†β˜†]",
    "color": "ffd400"
  },
  {
    "name": "proj:aether",
    "color": "8540ad"
  },
  {
    "name": "proj:primal-glow",
    "color": "8540ad"
  },
  {
    "name": "proj",
    "color": "8540ad"
  },
  {
    "name": "wg:business-planning",
    "color": "bfd4f2"
  },
  {
    "name": "wg:finance",
    "color": "bfd4f2"
  },
  {
    "name": "wg:governance",
    "color": "bfd4f2"
  },
  {
    "name": "wg:infra-ops",
    "color": "bfd4f2"
  }
]

@patcon
Copy link
Contributor Author

patcon commented Nov 15, 2019

Ok quick demo set up in hyphacoop/demo-repo, in case it works for us. (Was looking for excuse to learn GitHub Actions, so no pressure to use this.)

Just change the labels here (color or rename):
https://github.com/hyphacoop/demo-repo/labels

And it will create/delete or modify colors of labels here:
https://github.com/patcon/archive-demo/labels
https://github.com/patcon/label-sync-demo/labels

This is done via:
https://github.com/hyphacoop/demo-repo/blob/master/.github/workflows/label-sync.yml#L16-L17

Using the github-sync command, which has a clever "prune" variant of strict label syncing: this will delete labels from target repo that are missing from source repo, but only if the target label is unused.

Important: Renaming a label that's in-use (the vast majority use-case outside a demo) would be a two-step process:

  1. Rename label in organizing (canonical repo), e.g. label old => label new
    • tool goes to work creating label new in the target repo, and it would remove label old, but won't right away, since it's in-use.
  2. Then in the target repo issue listing, user can do a 4-click edit: (1) click label to filter for label:"label old", (2) click to select all, then (3&4) click twice in the "Label" action drop-down to bulk edit to remove label old and adding label new on every issue at once.

Screen Shot 2019-11-14 at 10 55 13 PM

@benhylau
Copy link
Member

This sounds fine to me as a starting point. In the future it's possible we'd want one repo to have more labels, but I think we shouldn't worry until that happens. Right now, organizing has the best set of labels.

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/e5294572a10f4739942a5124e7755051f98ad21b/checks#step:3:15

2 similar comments
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/e5294572a10f4739942a5124e7755051f98ad21b/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/e5294572a10f4739942a5124e7755051f98ad21b/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/b7d381ca7a561206417fde10ae6eb727f86d8e42/checks#step:3:15

1 similar comment
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/b7d381ca7a561206417fde10ae6eb727f86d8e42/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/2d590c25ffc0b2988e6395747dbf857c4ac832b5/checks#step:3:15

2 similar comments
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/2d590c25ffc0b2988e6395747dbf857c4ac832b5/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/2d590c25ffc0b2988e6395747dbf857c4ac832b5/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/6aad5ac4ad5beb8bc3a9177d806c5bf8f16d62c8/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/34b855867a63d8058ff7343b3815561bbf4f3ecf/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/1f5efd51dbd080501fe2585e9a4fdad6eb9580f0/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/f677bb74b1041f869013b789c92a877dec5fb31a/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/f677bb74b1041f869013b789c92a877dec5fb31a/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/b5e162a1488ed27fb332c5fd229d676f52139461/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5fea66533fa6e7bb66b143c248271f596232c37f/checks#step:3:15

1 similar comment
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5fea66533fa6e7bb66b143c248271f596232c37f/checks#step:3:15

@dcwalk dcwalk added the operations Back office operations tasks label Jan 9, 2020
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/aac966dbf3911a4069af32a406c2b93aa57e8719/checks#step:3:15

1 similar comment
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/aac966dbf3911a4069af32a406c2b93aa57e8719/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

23 similar comments
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/5d66accb3d1e8bcb0e4758cc3f87ee13ae239130/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/bc1f49638c436b0938810bdd3e27eb958471d325/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/c5d7ad711416b6648492f2770f9248d7775c32cb/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/be514df6c44e7f7171ffb89a4af975fbe6fa9a05/checks#step:3:15

3 similar comments
@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/be514df6c44e7f7171ffb89a4af975fbe6fa9a05/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/be514df6c44e7f7171ffb89a4af975fbe6fa9a05/checks#step:3:15

@hyphacoop-bot
Copy link
Collaborator

Labels have been synced! About: #146

:scroll: Technical log: https://github.com/hyphacoop/organizing/commit/be514df6c44e7f7171ffb89a4af975fbe6fa9a05/checks#step:3:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Back office infrastructure tasks operations Back office operations tasks
Projects
No open projects
Development

No branches or pull requests

5 participants