mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 22:08:47 +00:00
tests: move github-labels to main repo
Move tool as part of static checks migration. Fixes #8187 Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com> Signed-off-by: Derek Lee <derlee@redhat.com> Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com> Signed-off-by: Graham Whaley <graham.whaley@intel.com> Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com> Signed-off-by: Marco Vedovati <mvedovati@suse.com> Signed-off-by: Peng Tao <bergwolf@hyper.sh> Signed-off-by: Shiming Zhang <wzshiming@foxmail.com> Signed-off-by: Snir Sheriber <ssheribe@redhat.com> Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
50
tests/cmd/github-labels/archive/README.md
Normal file
50
tests/cmd/github-labels/archive/README.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# GitHub labels archive
|
||||
|
||||
## Overview
|
||||
|
||||
This directory contains one YAML file per repository containing the original
|
||||
set of GitHub labels before the
|
||||
[new ones were applied on 2019-06-04](../labels.yaml.in).
|
||||
|
||||
## How the YAML files were created
|
||||
|
||||
This section explains how the YAML files were created.
|
||||
|
||||
The [`labeler`](https://github.com/tonglil/labeler) tool was used to read
|
||||
the labels and write them to a YAML file.
|
||||
|
||||
### Install and patch the `labeler` tool
|
||||
|
||||
This isn't ideal but our [labels database](../labels.yaml.in) mandates
|
||||
descriptions for every label. However, at the time of writing, the `labeler`
|
||||
tool does not support descriptions. But,
|
||||
[there is a PR](https://github.com/tonglil/labeler/pull/37)
|
||||
to add in description support.
|
||||
|
||||
To enable description support:
|
||||
|
||||
```sh
|
||||
$ go get -u github.com/tonglil/labeler
|
||||
$ cd $GOPATH/src/github.com/tonglil/labeler
|
||||
$ pr=37
|
||||
$ pr_branch="PR${pr}"
|
||||
$ git fetch origin "refs/pull/${pr}/head:{pr_branch}"
|
||||
$ git checkout "${pr_branch}"
|
||||
$ go install -v ./...
|
||||
```
|
||||
|
||||
### Save GitHub labels for a repository
|
||||
|
||||
Run the following for reach repository:
|
||||
|
||||
```sh
|
||||
$ labeler scan -r ${github_repo_slug} ${output_file}
|
||||
```
|
||||
|
||||
For example, to save the labels for the `tests` repository:
|
||||
|
||||
```sh
|
||||
$ labeler scan -r kata-containers/tests tests.yaml
|
||||
|
||||
```
|
||||
|
@@ -0,0 +1,58 @@
|
||||
# Scanned and autogenerated by https://github.com/tonglil/labeler
|
||||
---
|
||||
repo: kata-containers/ci
|
||||
labels:
|
||||
- name: P1
|
||||
color: b60205
|
||||
description: Highest priority issue (Critical)
|
||||
- name: P2
|
||||
color: d93f0b
|
||||
description: Urgent issue
|
||||
- name: P3
|
||||
color: fbca04
|
||||
description: Important issue
|
||||
- name: P4
|
||||
color: fef2c0
|
||||
description: Noteworthy issue
|
||||
- name: backlog
|
||||
color: ededed
|
||||
- name: bitesize
|
||||
color: d4c5f9
|
||||
description: small/easy task
|
||||
- name: bug
|
||||
color: d73a4a
|
||||
description: Something isn't working
|
||||
- name: do-not-merge
|
||||
color: b60205
|
||||
- name: duplicate
|
||||
color: cfd3d7
|
||||
description: This issue or pull request already exists
|
||||
- name: enhancement
|
||||
color: a2eeef
|
||||
description: New feature or request
|
||||
- name: good first issue
|
||||
color: 7057ff
|
||||
description: Good for newcomers
|
||||
- name: help wanted
|
||||
color: "008672"
|
||||
description: Extra attention is needed
|
||||
- name: in progress
|
||||
color: ededed
|
||||
- name: invalid
|
||||
color: e4e669
|
||||
description: This doesn't seem right
|
||||
- name: next
|
||||
color: ededed
|
||||
- name: question
|
||||
color: d876e3
|
||||
description: Further information is requested
|
||||
- name: review
|
||||
color: ededed
|
||||
- name: security
|
||||
color: fbca04
|
||||
- name: wip
|
||||
color: b60205
|
||||
description: Work In Progress
|
||||
- name: wontfix
|
||||
color: ffffff
|
||||
description: This will not be worked on
|
@@ -0,0 +1,27 @@
|
||||
# Scanned and autogenerated by https://github.com/tonglil/labeler
|
||||
---
|
||||
repo: kata-containers/community
|
||||
labels:
|
||||
- name: WIP
|
||||
color: b60205
|
||||
- name: bitesize
|
||||
color: d4c5f9
|
||||
description: small/easy task
|
||||
- name: bug
|
||||
color: ee0701
|
||||
- name: do-not-merge
|
||||
color: b60205
|
||||
- name: duplicate
|
||||
color: cccccc
|
||||
- name: enhancement
|
||||
color: 84b6eb
|
||||
- name: good first issue
|
||||
color: 7057ff
|
||||
- name: help wanted
|
||||
color: 33aa3f
|
||||
- name: invalid
|
||||
color: e6e6e6
|
||||
- name: question
|
||||
color: cc317c
|
||||
- name: wontfix
|
||||
color: ffffff
|
@@ -0,0 +1,44 @@
|
||||
# Scanned and autogenerated by https://github.com/tonglil/labeler
|
||||
---
|
||||
repo: kata-containers/kata-containers
|
||||
labels:
|
||||
- name: P1
|
||||
color: b60205
|
||||
description: Highest priority issue (Critical)
|
||||
- name: P2
|
||||
color: d93f0b
|
||||
description: Urgent issue
|
||||
- name: P3
|
||||
color: fbca04
|
||||
description: Important issue
|
||||
- name: P4
|
||||
color: fef2c0
|
||||
description: Noteworthy issue
|
||||
- name: bitesize
|
||||
color: d4c5f9
|
||||
description: small/easy task
|
||||
- name: bug
|
||||
color: ee0701
|
||||
- name: devices
|
||||
color: 006b75
|
||||
description: direct device support
|
||||
- name: duplicate
|
||||
color: cccccc
|
||||
- name: enhancement
|
||||
color: 84b6eb
|
||||
- name: feature
|
||||
color: ef70a3
|
||||
- name: good first issue
|
||||
color: 7057ff
|
||||
- name: help wanted
|
||||
color: 33aa3f
|
||||
- name: invalid
|
||||
color: e6e6e6
|
||||
- name: limitation
|
||||
color: c2e0c6
|
||||
- name: question
|
||||
color: cc317c
|
||||
- name: security
|
||||
color: fbca04
|
||||
- name: wontfix
|
||||
color: ffffff
|
@@ -0,0 +1,60 @@
|
||||
# Scanned and autogenerated by https://github.com/tonglil/labeler
|
||||
---
|
||||
repo: kata-containers/tests
|
||||
labels:
|
||||
- name: CI
|
||||
color: 0052cc
|
||||
description: Continuous Integration
|
||||
- name: P1
|
||||
color: b60205
|
||||
description: Highest priority issue (Critical)
|
||||
- name: P2
|
||||
color: d93f0b
|
||||
description: Urgent issue
|
||||
- name: P3
|
||||
color: fbca04
|
||||
description: Important issue
|
||||
- name: P4
|
||||
color: fef2c0
|
||||
description: Noteworthy issue
|
||||
- name: backlog
|
||||
color: ededed
|
||||
- name: bitesize
|
||||
color: d4c5f9
|
||||
description: small/easy task
|
||||
- name: bug
|
||||
color: ee0701
|
||||
- name: do-not-merge
|
||||
color: b60205
|
||||
- name: duplicate
|
||||
color: cccccc
|
||||
- name: enhancement
|
||||
color: 84b6eb
|
||||
- name: good first issue
|
||||
color: 7057ff
|
||||
- name: hackathon
|
||||
color: 35bfa1
|
||||
description: PR/Issues in hackathon events
|
||||
- name: help wanted
|
||||
color: 33aa3f
|
||||
- name: in progress
|
||||
color: ededed
|
||||
- name: invalid
|
||||
color: e6e6e6
|
||||
- name: limitation
|
||||
color: c2e0c6
|
||||
- name: next
|
||||
color: ededed
|
||||
- name: question
|
||||
color: cc317c
|
||||
- name: review
|
||||
color: ededed
|
||||
- name: security
|
||||
color: fbca04
|
||||
- name: stable-candidate
|
||||
color: bfdadc
|
||||
description: Candidate to backport to stable branches
|
||||
- name: wip
|
||||
color: b60205
|
||||
- name: wontfix
|
||||
color: ffffff
|
Reference in New Issue
Block a user