repository:
  # See https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#edit for all available settings.
  # See https://github.com/apps/settings for app settings

  # A short description of the repository that will show up on GitHub
  description: Custom HTML element for inputting string data in forms

  # A URL with more information about the repository
  homepage: https://auro.alaskaair.com/icons/usage

  # A comma-separated list of topics to set on the repository
  topics: auro, design-system, icons

  # Either `true` to enable issues for this repository, `false` to disable them.
  has_issues: true

  # Either `true` to enable the wiki for this repository, `false` to disable it.
  has_wiki: false

  # Either `true` to enable downloads for this repository, `false` to disable them.
  has_downloads: true

  # Updates the default branch for this repository.
  default_branch: master

  # Either `true` to enable automatic deletion of branches on merge, or `false` to disable
  delete_branch_on_merge: true

  # Either `true` to allow squash-merging pull requests, or `false` to prevent
  # squash-merging.
  allow_squash_merge: false

  # Either `true` to allow merging pull requests with a merge commit, or `false`
  # to prevent merging pull requests with merge commits.
  allow_merge_commit: false

  # Either `true` to allow rebase-merging pull requests, or `false` to prevent
  # rebase-merging.
  allow_rebase_merge: true

branches:
  - &default_protection
    # https://developer.github.com/v3/repos/branches/#update-branch-protection
    # Branch Protection settings. Set to null to disable
    protection:
      # Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
      required_pull_request_reviews:
        # The number of approvals required. (1-6)
        required_approving_review_count: 1
        # Dismiss approved reviews automatically when a new commit is pushed.
        dismiss_stale_reviews: true
        # Blocks merge until code owners have reviewed.
        require_code_owner_reviews: true
        # Required. Require status checks to pass before merging. Set to null to disable
        # Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
        dismissal_restrictions:
          users: ["blackfalcon"]
      # Required. Require status checks to pass before merging. Set to null to disable
      required_status_checks:
        # Required. Require branches to be up to date before merging.
        strict: true
        # Required. The list of status checks to require in order to merge into this branch
        contexts: ["test (18.x)", "test (20.x)", "license/cla"]
      # Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
      enforce_admins: false
      # Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
      restrictions: null
      # Prevent merge commits from being pushed to matching branches
      required_linear_history: true

  - name: master
    <<: *default_protection

  - name: beta
    <<: *default_protection

# Labels: define labels for Issues and Pull Requests
labels:
  - name: icons
    color: 'fa23e4'
    description:
    process: Key filter for this repo
  - name: duplicate
    color: '156fad'
    description: This Issue or Pull Request already exists
  - name: not-reviewed
    color: '222222'
    description: Issue has not been reviewed by Auro team members
  - name: good first issue
    color: '6bb7fb'
    description: Good for newcomers
    aliases:
    - beginner-friendly
    - beginner
    - good-starter-issue
    - good for beginner
    - Good for beginners
    - starter-issue
    - starter
  - name: help wanted
    color: '6bb7fb'
    description: Extra attention is needed, this user requires assistance to complete
      the work
  - name: released
    color: 'A9A9A9'
    description: Completed work has been released
  - name: 'Status: Work In Progress'
    description: Issue or Pull Request work is in Progress
    color: 'c0e585'
  - name: 'Status: Review Needed'
    color: 'c0e585'
    description: Work is completed, user is requesting feedback
  - name: 'Status: Complete'
    color: 'c0e585'
    description: Owner has completed work and considers it ready to be merged
  - name: 'Status: Blocked'
    color: 'df0b37'
    description: Progress on the issue is Blocked, immediate attention is required
    aliases:
    - blocked
  - name: 'Abandoned'
    color: '156fad'
    description: The author of this issue or Pull Request is not responding
    aliases:
    - wontfix
    - invalid
  - name: 'Type: Bug'
    color: df0b37
    description: Bug or Bug fixes
    aliases:
    - bug
  - name: 'Type: Feature'
    color: 'ffd200'
    description: New Feature
    aliases:
    - enhancement
  - name: 'Type: Design'
    color: 'ffd200'
    description: New or related Design work
    aliases:
    - enhancement
  - name: 'Type: Content'
    color: 'ffd200'
    description: Adding or editing content
    aliases:
    - enhancement
  - name: 'Type: Refactoring'
    color: 'ffd200'
    description: A code change that neither fixes a bug nor adds a feature
    aliases:
    - refactor
  - name: 'Type: Documentation'
    color: 'ffd200'
    description: Documentation only changes
    aliases:
    - documents
    - document
  - name: 'Type: CI'
    color: 'ffd200'
    description: Changes to CI configuration files and scripts
    aliases:
    - ci
  - name: 'Type: Perf'
    color: 'ffd200'
    description: Performance update to existing code
  - name: 'Question'
    color: 'b83302'
    description: Further information is requested
    aliases:
    - question
  - name: 'Type: Dependencies'
    color: 'ffd200'
    description: Pull requests that update a dependency file
    aliases:
    - dependencies
  - name: 'Type: UI Update'
    color: 'ffd200'
    description: Changes to the user interface
    aliases:
    - dependencies

# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options
teams:
  # The permission to grant the team. Can be one of:
  # * `pull` - can pull, but not push to or administer this repository.
  # * `push` - can pull and push, but not administer this repository.
  # * `admin` - can pull, push and administer this repository.
  # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
  # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.
  - name: auro-team
    permission: admin
  - name: nonauroteamwriteaccess
    permission: push
