# Defines the mappings between GitHub issue responses and labels applied to the issue
# for Project Mu repos.
#
# IMPORTANT: Only use labels defined in the .github/Labels.yml file in this repo.
#
# NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there
#       instead of the file in this repo.
#
# - Mu DevOps Repo: https://github.com/microsoft/mu_devops
# - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
# For more information, see:
# https://github.com/redhat-plumbers-in-action/advanced-issue-labeler

policy:
  - section:

    # Issue Template - Urgency Dropdown
    - id: ['urgency']
      block-list: []
      label:
        - name: 'urgency:low'
          keys: ['Low']
        - name: 'urgency:medium'
          keys: ['Medium']
        - name: 'urgency:high'
          keys: ['High']

    # Issue Template - Fix Owner Dropdown
    - id: ['fix_owner', 'request_owner']
      block-list: []
      label:
        - name: 'state:needs-owner'
          keys: [
            'Someone else needs to fix it',
            'Someone else needs to make the change',
            'Someone else needs to implement the feature'
            ]
        - name: 'state:needs-triage'
          keys: [
            'Someone else needs to fix it',
            'Someone else needs to make the change',
            'Someone else needs to implement the feature'
            ]

    # Issue Template - Needs Maintainer Feedback Dropdown
    - id: ['needs_maintainer_feedback']
      block-list: []
      label:
        - name: 'state:needs-maintainer-feedback'
          keys: ['Maintainer feedback requested']
