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

🤖 Update labels #2001

Merged
merged 5 commits into from
Jun 12, 2021
Merged

🤖 Update labels #2001

merged 5 commits into from
Jun 12, 2021

Conversation

ErikSchierboom
Copy link
Member

This PR adds:

  • A .github/labels.yml file containing this repository's labels
  • An .appends/.github/labels.yml file, which contains all the repository-specific labels currently used in this repo.
  • A .github/workflows/sync-labels.yml workflow to automatically synchronize this repository's labels

With this setup, the labels that can be used in this repo are all defined in a single file: the .github/labels.yml file. The sync-labels.yml workflow automatically runs whenever this file changes, and will update the repository's label to match the labels defined in the .github/labels.yml file. Note that is will remove any labels not in the .github/labels.yml file, so be careful with removing labels from the .github/labels.yml file.

The .github/labels.yml file is auto-generated by concatenating these two files:

Whenever one of these two files change, a pull request is automatically submitted to update the .github/labels.yml file. Merging that pull request will then trigger the sync-labels workflow, and the labels will be updated.

With this setup, we are able to guarantee that each repository can use both the Exercism-wide labels and any track-specific labels.

Tracking

exercism/v3-launch#41

@ErikSchierboom ErikSchierboom added the v3-migration 🤖 Preparing for Exercism v3 label Jun 11, 2021

- name: "track/05ab1e"
description: "05AB1E track"
color: "cccccc"
Copy link
Member

Choose a reason for hiding this comment

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

Such sad labels 😬 I don't know exactly which tool chose the color (either GH or the Labeler, when the Labeler tried to add labels to PRs that didn't exist). Can we bring back the previous color? Before they were accidentally deleted they were #c8d7ff. I know this is super crucial for this PR 😇 #sarcasm

Copy link
Member Author

Choose a reason for hiding this comment

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

@angelikatyborska @SleeplessByte and I couldn't remember the color. I've updated!

I also add a missing type/copy label.

This commit adds a `.appends/.github/labels.yml` file, which contains the repo-specific labels. This file will automatically be combined with the Exercism-wide labels defined in https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml to form the `.github/labels.yml` file.
This commit adds a `.github/labels.yml` file, which contains the full list of labels that this repo can use. This file is a combination of the `.appends/.github/labels.yml` file and the Exercism-wide labels defined in https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml.
…bels.

This commit adds a `.github/workflow/sync-labels.yml` file, which defines a workflow that syncs this repository's labels with the contents of the `.github/labels.yml` file. The labels are synced automatically whenever the `.github/labels.yml` file changes.
@angelikatyborska angelikatyborska merged commit 703b4fe into main Jun 12, 2021
@angelikatyborska angelikatyborska deleted the update-labels branch June 12, 2021 08:05
@ErikSchierboom ErikSchierboom added the x:size/tiny Tiny amount of work label Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/ci v3-migration 🤖 Preparing for Exercism v3 x:size/tiny Tiny amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants