Skip to content

Commit

Permalink
🤖 Update labels (#118)
Browse files Browse the repository at this point in the history
* Define repo-specific labels.

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.

* Define the labels used in this repo.

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.

* Add a GitHub Actions workflow to automatically sync the repository labels.

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.
  • Loading branch information
ErikSchierboom authored Jun 22, 2021
1 parent 401ce55 commit 8a673a9
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .appends/.github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ----------------------------------------------------------------------------------------- #
# These are the repository-specific labels that augment the Exercise-wide labels defined in #
# https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. #
# ----------------------------------------------------------------------------------------- #

- name: "bug"
description: ""
color: "ee0701"
Expand All @@ -22,11 +27,6 @@
description: ""
color: "cc317c"

- name: "v3-migration 🤖"
description: "Preparing for Exercism v3"
color: "E99695"

- name: "wontfix"
description: ""
color: "ffffff"

196 changes: 196 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
# ------------------------------------------------------------- #
# This is an auto-generated file - Do not edit it file directly #
# ------------------------------------------------------------- #

# This file is automatically generated by merging two files:
# 1. The Exercism-wide labels
# 2. The repository-specific labels
#
# The Exercism-wide labels are defined in
# https://github.com/exercism/org-wide-files/blob/main/synced-files/.github/labels.yml
#
# The repository-specific labels are defined in `.appends/.github/labels.yml`.
# If you want to change the repository-specific labels, update the
# `.appends/.github/labels.yml` file and _not_ this file.
#
# Any changes to the repo's `.appends/.github/labels.yml` file or the
# Exercism-wide `labels.yml` file will automatically result in this file being
# regenerated and the labels being updated. This typically takes 5-10 minutes.

# --------------------------------------------------------------------- #
# These are the Exercism-wide labels which are shared across all repos. #
# --------------------------------------------------------------------- #

# The following Exercism-wide labels are used to show "tasks" on the website, which
# will point users to things they can help contribute with.

# The `x:action/<value>` labels describe what sort of work the contributor
# will be engaged in when working on the issue
- name: "x:action/create"
description: "Work on something from scratch"
color: "6f60d2"

- name: "x:action/fix"
description: "Fix an issue"
color: "6f60d2"

- name: "x:action/improve"
description: "Improve existing functionality/content"
color: "6f60d2"

- name: "x:action/proofread"
description: "Proofread text"
color: "6f60d2"

- name: "x:action/sync"
description: "Sync content with its latest version"
color: "6f60d2"

# The `x:knowledge/<value>` labels describe how much Exercism knowledge
# is required by the contributor
- name: "x:knowledge/none"
description: "No existing Exercism knowledge required"
color: "604fcd"

- name: "x:knowledge/elementary"
description: "Little Exercism knowledge required"
color: "604fcd"

- name: "x:knowledge/intermediate"
description: "Quite a bit of Exercism knowledge required"
color: "604fcd"

- name: "x:knowledge/advanced"
description: "Comprehensive Exercism knowledge required"
color: "604fcd"

# The `x:module/<value>` labels indicate what part of Exercism
# the contributor will be working on
- name: "x:module/analyzer"
description: "Work on Analyzers"
color: "5240c9"

- name: "x:module/concept"
description: "Work on Concepts"
color: "5240c9"

- name: "x:module/concept-exercise"
description: "Work on Concept Exercises"
color: "5240c9"

- name: "x:module/generator"
description: "Work on Exercise generators"
color: "5240c9"

- name: "x:module/practice-exercise"
description: "Work on Practice Exercises"
color: "5240c9"

- name: "x:module/representer"
description: "Work on Representers"
color: "5240c9"

- name: "x:module/test-runner"
description: "Work on Test Runners"
color: "5240c9"

# The `x:size/<value>` labels describe the expected amount of work
# for a contributor
- name: "x:size/tiny"
description: "Tiny amount of work"
color: "4836bf"

- name: "x:size/small"
description: "Small amount of work"
color: "4836bf"

- name: "x:size/medium"
description: "Medium amount of work"
color: "4836bf"

- name: "x:size/large"
description: "Large amount of work"
color: "4836bf"

- name: "x:size/massive"
description: "Massive amount of work"
color: "4836bf"

# The `x:status/<value>` label indicates if there is already someone
# working on the issue
- name: "x:status/claimed"
description: "Someone is working on this issue"
color: "4231af"

# The `x:type/<value>` labels describe how much Exercism knowledge
# is required by the contributor
- name: "x:type/ci"
description: "Work on Continuous Integration (e.g. GitHub Actions workflows)"
color: "3c2d9f"

- name: "x:type/coding"
description: "Work on code that will run in production"
color: "3c2d9f"

- name: "x:type/content"
description: "Work on content (e.g. exercises, concepts)"
color: "3c2d9f"

- name: "x:type/docker"
description: "Work on Dockerfiles"
color: "3c2d9f"

- name: "x:type/docs"
description: "Work on Documentation"
color: "3c2d9f"

# The following Exercism-wide labels are used to influence how much reputation
# a contributor gets for an authored/merged/reviewed PR.
# See https://github.com/exercism/docs/blob/main/product/reputation.md

- name: "reputation/contributed_code/major"
description: "Increases the number of reputation points awarded by this PR"
color: "fcfa9f"

- name: "reputation/contributed_code/minor"
description: "Decreases the number of reputation points awarded by this PR"
color: "fcfa9f"

# This Exercism-wide label is added to all automatically created pull requests
# that help migrate/prepare a track for Exercism v3
- name: "v3-migration 🤖"
description: "Preparing for Exercism v3"
color: "e99695"

# ----------------------------------------------------------------------------------------- #
# These are the repository-specific labels that augment the Exercise-wide labels defined in #
# https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. #
# ----------------------------------------------------------------------------------------- #

- name: "bug"
description: ""
color: "ee0701"

- name: "duplicate"
description: ""
color: "cccccc"

- name: "enhancement"
description: ""
color: "84b6eb"

- name: "help wanted"
description: ""
color: "128A0C"

- name: "invalid"
description: ""
color: "e6e6e6"

- name: "question"
description: ""
color: "cc317c"

- name: "wontfix"
description: ""
color: "ffffff"
21 changes: 21 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tools

on:
push:
branches: [main]
paths:
- .github/labels.yml
- .github/workflows/sync-labels.yml
schedule:
- cron: 0 0 1 * *
workflow_dispatch:

jobs:
sync-labels:
name: Sync labels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8a673a9

Please sign in to comment.