# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

github:
  description: "Open Machine Learning Compiler Framework"
  homepage: https://tvm.apache.org/
  labels:
    - tvm
    - compiler
    - tensor
    - deep-learning
    - gpu
    - opencl
    - metal
    - performance
    - javascript
    - rocm
    - vulkan
    - spirv
    - machine-learning

  features:
    # Enable issue management
    issues: true
    # Enable projects for project management boards
    projects: true

  # Triage perm for collaborators(test run)
  #
  # The perm is given based on needs and not based on
  # evaluation of past contributions. The rationale
  # is that people may need the permission to start
  # contributing in this way. It serves to diversify
  # the ways to contribute.
  #
  # There is a limited number of slots. To enable broad
  # participation, permission is given on a three month
  # cycle. PMC may review and recycle slots when necessary.
  collaborators:
    - tvm-bot  # For automated feedback in PR review.

  # See https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-Branchprotection
  protected_branches:
    main:
      required_status_checks:
        contexts:
          - arm/pr-head
          - cpu/pr-head
          - docker/pr-head
          - gpu/pr-head
          - wasm/pr-head

      required_pull_request_reviews:
        required_approving_review_count: 1

  enabled_merge_buttons:
    # enable squash button:
    squash: true
    # default commit message when merging with a squash commit
    # can either be: DEFAULT | PR_TITLE | PR_TITLE_AND_COMMIT_DETAILS | PR_TITLE_AND_DESC
    squash_commit_message: PR_TITLE_AND_DESC
    # enable merge button:
    merge: false
    # default commit message when merging with a merge commit
    # can either be: DEFAULT | PR_TITLE | PR_TITLE_AND_DESC
    merge_commit_message: DEFAULT
    # enable rebase button for rare use.
    rebase: true

notifications:
  commits: commits@tvm.apache.org
  issues: discuss-archive@tvm.apache.org
  pullrequests: discuss-archive@tvm.apache.org
  jobs: discuss-archive@tvm.apache.org
  discussions: discuss-archive@tvm.apache.org
