Skip to content

Commit

Permalink
Fix: Github settings
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Dec 8, 2023
1 parent 561fc18 commit dee8999
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 205 deletions.
32 changes: 32 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# Licensed 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.
#
# SPDX-License-Identifier: Apache-2.0

---
# Labels for action/labeler

######################################
# Label area/xxx

area/helm:
- changed-files:
- any-glob-to-any-file: charts/**

area/github:
- changed-files:
- any-glob-to-any-file: .github/**/*

######################################
# Label kind/xxx
205 changes: 0 additions & 205 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,113 +26,8 @@ repository:

labels:

## CLOUD PROVIDERS

- name: "cloud/gcp"
description: "Cloud Provider / Google Cloud Provider"
color: "068082"

- name: "cloud/aws"
description: "Cloud Provider / Amazon AWS"
color: "068082"

- name: "cloud/azure"
description: "Cloud Provider / Microsoft Azure"
color: "068082"

- name: "cloud/scaleway"
description: "Cloud Provider / Scaleway"
color: "068082"

- name: "cloud/digitalocean"
description: "Cloud Provider / Digital Ocean"
color: "068082"

- name: "cloud/alicloud"
description: "Cloud Provider / Alicloud"
color: "068082"

- name: "cloud/exoscale"
description: "Cloud Provider / Exoscale"
color: "068082"

- name: "cloud/homelab"
description: "Cloud Provider / Homelab"
color: "068082"

- name: "cloud/cicd"
description: "Cloud Provider / CICD"
color: "068082"

- name: "cloud/vultr"
description: "Cloud Provider / Vultr"
color: "068082"

- name: "cloud/civo"
description: "Cloud Provider / Civo"
color: "068082"

- name: "cloud/oci"
description: "Cloud Provider / OCI"
color: "068082"

- name: "cloud/ibmcloud"
description: "Cloud Provider / IBMCloud"
color: "068082"

## NEED

- name: "needs/triage"
description: "Indicates an issue or PR lacks a `triage/foo` label and requires one."
color: "D669BE"

- name: "needs/priority"
description: "Indicates a PR lacks a `priority/foo` label and requires one."
color: "D669BE"

- name: "needs/kind"
description: "Indicates a PR lacks a `kind/foo` label and requires one."
color: "D669BE"

- name: "needs/lifecycle"
description: "Indicates a PR lacks a `lifecycle/foo` label and requires one."
color: "D669BE"

- name: "needs/area"
description: "Indicates an issue or PR lacks a `area/foo` label and requires one."
color: "D669BE"

- name: "needs/size"
description: "Indicates an issue or PR lacks a `size/foo` label and requires one."
color: "D669BE"

- name: "needs/status"
description: "Indicates an issue or PR lacks a `status/foo` label and requires one."
color: "D669BE"

- name: "needs/cloud"
description: "Indicates a PR lacks a `cloud/foo` label and requires one."
color: "D669BE"


## AREA

- name: "area/kubernetes"
description: "Kubernetes"
color: "cc317c"

- name: "area/terraform"
description: "Terraform"
color: "cc317c"

- name: "area/inspec"
description: "Inspec"
color: "cc317c"

- name: "area/ansible"
description: "Ansible"
color: "cc317c"

- name: "area/github"
description: "Github"
color: "cc317c"
Expand All @@ -143,10 +38,6 @@ labels:

## DEPENDENCY

- name: "dependency/terraform"
description: "Dependency Terraform"
color: "6fcb70"

- name: "dependency/docker"
description: "Dependency Docker"
color: "6fcb70"
Expand All @@ -162,99 +53,3 @@ labels:
- name: "dependency/github"
description: "Dependency Github Actions"
color: "6fcb70"

## SIZE

- name: "size/xs"
description: "Size XS"
color: "ededed"

- name: "size/s"
description: "Size S"
color: "ededed"

- name: "size/m"
description: "Size M"
color: "ededed"

- name: "size/l"
description: "Size L"
color: "ededed"

- name: "size/xl"
description: "Size XL"
color: "ededed"

## LIFECYCLE

- name: "lifecycle/waiting"
description: "Indicates that an issue or PR is waiting a contributor."
color: "75CA20"

- name: "lifecycle/active"
description: "Indicates that an issue or PR is actively being worked on by a contributor."
color: "75CA20"

- name: "lifecycle/frozen"
description: "Indicates that an issue or PR should not be auto-closed due to staleness."
color: "10D3EE"

- name: "lifecycle/stale"
description: "Denotes an issue or PR has remained open with no activity and has become stale."
color: "616F6C"

- name: "lifecycle/rotten"
description: "Denotes an issue or PR that has aged beyond stale and will be auto-closed."
color: "212F3D"

## STATUS

- name: "status/abandoned"
description: "This issue or PR is no longer important"
color: "000000"

- name: "status/available"
description: "No one has claimed responsibility for resolving this issue"
color: "c2e0c6"

- name: "status/blocked"
description: "There is another issue or PR that needs to be resolved first"
color: "ee0701"

- name: "status/in_progress"
description: "This issue or PR is being worked on, and has someone assigned"
color: "cccccc"

- name: "status/on_hold"
description: "Similar to blocked, but is assigned to someone"
color: "e99695"

- name: "status/proposal"
description: "A new propoal"
color: "d4c5f9"

- name: "status/review_needed"
description: "The issue or PR needs to be reviewed"
color: "fbca04"

## PRIORITY

- name: "priority/critical"
description: "Highest priority. This should be dealt with ASAP"
color: "ee0701"

- name: "priority/high"
description: "After critical issues are fixed, these should be dealt with before any further issues"
color: "d93f0b"

- name: "priority/medium"
description: "This issue or PR may be useful, and needs some attention"
color: "fbca04"

- name: "priority/low"
description: "This issue can probably be picked up by anyone looking to contribute to the project, as an entry fix"
color: "0e8a16"

- name: "priority/backlog"
description: "Possibly useful, but not yet enough support to actually get it done"
color: "fbca04"
48 changes: 48 additions & 0 deletions .github/workflows/project-pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# Licensed 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.
#
# SPDX-License-Identifier: Apache-2.0

# name: "Label PRs from globs"
# on:
# schedule:
# - cron: "0 * * * *"

# jobs:
# execute:
# runs-on: ubuntu-latest
# steps:
# - uses: jpmcb/[email protected]
# with:
# jobs: 'pr-labeler'
# github-token: "${{ secrets.GITHUB_TOKEN }}"

---
name: Project / Pull Request Labeler

on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, reopened, edited]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Monitor Actions
uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit dee8999

Please sign in to comment.