diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000000..3773d7a7eb --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,43 @@ +# This is currently just an export of labels used in the project +# In the future we could also use to add more and keep in sync via actions such as: +# https://github.com/micnncim/action-label-syncer +[ + { 'name': 'Backend', 'color': 'EF592F', 'description': '' }, + { 'name': 'Code: Tidying', 'color': 'B2864C', 'description': '' }, + { 'name': 'Design', 'color': '2FF7AB', 'description': null }, + { 'name': 'Difficulty:Easy', 'color': 'FFDDB2', 'description': '' }, + { 'name': 'Difficulty:Hard', 'color': 'C198E2', 'description': '' }, + { 'name': 'Difficulty:Super-Easy', 'color': 'C2E0C6', 'description': '' }, + { 'name': 'Difficulty:medium', 'color': '629AFC', 'description': '' }, + { 'name': 'Discussions', 'color': 'CC317C', 'description': '' }, + { 'name': 'Documentation', 'color': 'E0D323', 'description': '' }, + { 'name': 'Frontend', 'color': '5319E7', 'description': '' }, + { 'name': 'Global Good ๐ŸŒ', 'color': 'B3E572', 'description': '' }, + { 'name': 'Good first issue', 'color': '74B5E3', 'description': null }, + { 'name': 'Help wanted', 'color': '56D639', 'description': '' }, + { 'name': 'In progress', 'color': '440B89', 'description': '' }, + { 'name': 'Mod: DevOps ๐Ÿค–', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: Discussions ๐Ÿ’ฌ', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: Events ๐ŸŽ‰', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: HowTo ๐Ÿ“ฐ', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: Maps ๐Ÿ—บ', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: Other โฌœ๏ธ', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: Profiles ๐Ÿ‘ฑ', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Mod: Security๐Ÿ‘ฎ', 'color': 'BFD4F2', 'description': '' }, + { 'name': 'Module Overview ๐Ÿ‘€', 'color': 'CEF45D', 'description': '' }, + { 'name': 'Non-Dev', 'color': 'ADADAD', 'description': '' }, + { 'name': 'Priority: Highโ•', 'color': 'FFB266', 'description': '' }, + { 'name': 'Priority: Low', 'color': 'C2E0C6', 'description': '' }, + { 'name': 'Priority: Medium', 'color': 'FFFF00', 'description': '' }, + { 'name': 'Priority: Urgentโ•โ•โ•', 'color': 'FF0000', 'description': '' }, + { + 'name': 'Review: Assigned ๐Ÿ‘‰', + 'color': 'D7C0A1', + 'description': 'Waiting on review from a specific dev', + }, + { + 'name': 'Review: Changes Requested ๐Ÿ—จ๏ธ', + 'color': 'D7C0A1', + 'description': 'Code reviewed, pending update to changes requested', + }, +] diff --git a/.github/pr-labeller.config.yml b/.github/pr-labeller.config.yml new file mode 100644 index 0000000000..6e913e6005 --- /dev/null +++ b/.github/pr-labeller.config.yml @@ -0,0 +1,13 @@ +# Configuration for pr-labeller actions + +'Mod: HowTo ๐Ÿ“ฐ': src/pages/Howto/* +'Mod: Events ๐ŸŽ‰': src/pages/Howto/* +'Mod: Maps ๐Ÿ—บ': src/pages/Maps/* + +'backend': functions/* + +'Documentation': + - any: ['README.md', 'documentation/*'] + +'Mod: DevOps ๐Ÿค–': + - any: ['cypress/*', 'scripts/*'] diff --git a/.github/workflows/pr-labeller.yml b/.github/workflows/pr-labeller.yml new file mode 100644 index 0000000000..aff1ca9739 --- /dev/null +++ b/.github/workflows/pr-labeller.yml @@ -0,0 +1,15 @@ +# Automatically label pull requests depending on files that have changed +# to make for easier/clearer reviews (see https://github.com/actions/labeler) +# List of labels can be found in './pr-labeller.config.yml' +name: 'Pull Request Labeler' +on: + - pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + configuration-path: '.github/pr-labeller.config.yml'