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

Add pr labeller action #1092

Merged
merged 1 commit into from
Jan 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -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',
},
]
13 changes: 13 additions & 0 deletions .github/pr-labeller.config.yml
Original file line number Diff line number Diff line change
@@ -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/*']
15 changes: 15 additions & 0 deletions .github/workflows/pr-labeller.yml
Original file line number Diff line number Diff line change
@@ -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'