Sync labels workflow


The sync labels workflow synchronizes a repository's GitHub labels with the contents of the .github/labels.yml file. Whenever the .github/labels.yml file changes, the sync labels workflow will automatically update the repository's labels.

Customizing labels

The labels defined in .github/labels.yml come in two forms:

  • Shared labels: these are labels used by all Exercism repositories, and they're defined in the org-wide-files repo
  • Track-specific labels: these are defined in an .appends/.github/labels.yml file

To add track-specific labels, you'll need to add them to the .appends/.github/labels.yml file (see this example). Once you've merged the changes to main, a pull request will automatically be opened to change the .github/labels.yml file. After merging that PR, the labels will be automatically updated (see description above).

Caution

Never manually edit the .github/labels.yml file, as those changes will be overwritten the next time labels are synced.

Source

The workflow is defined in the .github/workflows/sync-labels.yml file.