mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 10:48:12 +02:00
Labels migration pipeline
This commit is contained in:
parent
3bb642697a
commit
a66170c1f6
3 changed files with 70 additions and 23 deletions
|
|
@ -59,11 +59,11 @@ variables:
|
||||||
#
|
#
|
||||||
# This is done by running `ci-fairy generate-template` and possibly bumping
|
# This is done by running `ci-fairy generate-template` and possibly bumping
|
||||||
# ".default_tag".
|
# ".default_tag".
|
||||||
ALPINE_TAG: 'tag-75ecbb5bcef4'
|
ALPINE_TAG: 'tag-50aefcd4346d'
|
||||||
CENTOS_TAG: 'tag-0de3c2e2d9ed'
|
CENTOS_TAG: 'tag-16f41fa4814a'
|
||||||
DEBIAN_TAG: 'tag-1ccef04c657b'
|
DEBIAN_TAG: 'tag-5f85698f8fae'
|
||||||
FEDORA_TAG: 'tag-0de3c2e2d9ed'
|
FEDORA_TAG: 'tag-16f41fa4814a'
|
||||||
UBUNTU_TAG: 'tag-1ccef04c657b'
|
UBUNTU_TAG: 'tag-5f85698f8fae'
|
||||||
|
|
||||||
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
|
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
|
||||||
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
|
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
|
||||||
|
|
@ -654,14 +654,14 @@ pages:
|
||||||
needs:
|
needs:
|
||||||
- "t_fedora:40: [autotools+gcc+docs+valgrind]"
|
- "t_fedora:40: [autotools+gcc+docs+valgrind]"
|
||||||
|
|
||||||
# triage:issues:
|
triage:issues:
|
||||||
# stage: triage
|
stage: triage
|
||||||
# image: ruby:2.7
|
image: ruby:3
|
||||||
# script:
|
rules:
|
||||||
# - gem install gitlab-triage
|
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "oneshot"
|
||||||
# - gitlab-triage -d --token $API_TOKEN --source-id $SOURCE_ID
|
script:
|
||||||
# only:
|
- gem install gitlab-triage
|
||||||
# - schedules
|
- gitlab-triage --debug --token $API_TOKEN --source-id $CI_PROJECT_ID -f $CI_PROJECT_DIR/.labels-migration.yml
|
||||||
|
|
||||||
# Clean the generated images periodically to get updated snapshots of the distribution images.
|
# Clean the generated images periodically to get updated snapshots of the distribution images.
|
||||||
# Create an scheduled pipeline to run it, passing an AUTHFILE environment variable of type
|
# Create an scheduled pipeline to run it, passing an AUTHFILE environment variable of type
|
||||||
|
|
@ -671,7 +671,7 @@ clean-images:
|
||||||
- .fdo.ci-fairy
|
- .fdo.ci-fairy
|
||||||
stage: prep
|
stage: prep
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly"
|
||||||
script:
|
script:
|
||||||
- ci-fairy -v --authfile $AUTHFILE delete-image --project NetworkManager/NetworkManager --all
|
- ci-fairy -v --authfile $AUTHFILE delete-image --project NetworkManager/NetworkManager --all
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -241,14 +241,14 @@ pages:
|
||||||
needs:
|
needs:
|
||||||
- "t_{{default_distro.name}}:{{default_distro.versions[0]}}: [autotools+gcc+docs+valgrind]"
|
- "t_{{default_distro.name}}:{{default_distro.versions[0]}}: [autotools+gcc+docs+valgrind]"
|
||||||
|
|
||||||
# triage:issues:
|
triage:issues:
|
||||||
# stage: triage
|
stage: triage
|
||||||
# image: ruby:2.7
|
image: ruby:3
|
||||||
# script:
|
rules:
|
||||||
# - gem install gitlab-triage
|
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "oneshot"
|
||||||
# - gitlab-triage -d --token $API_TOKEN --source-id $SOURCE_ID
|
script:
|
||||||
# only:
|
- gem install gitlab-triage
|
||||||
# - schedules
|
- gitlab-triage --debug --token $API_TOKEN --source-id $CI_PROJECT_ID -f $CI_PROJECT_DIR/.labels-migration.yml
|
||||||
|
|
||||||
# Clean the generated images periodically to get updated snapshots of the distribution images.
|
# Clean the generated images periodically to get updated snapshots of the distribution images.
|
||||||
# Create an scheduled pipeline to run it, passing an AUTHFILE environment variable of type
|
# Create an scheduled pipeline to run it, passing an AUTHFILE environment variable of type
|
||||||
|
|
@ -258,7 +258,7 @@ clean-images:
|
||||||
- .fdo.ci-fairy
|
- .fdo.ci-fairy
|
||||||
stage: prep
|
stage: prep
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly"
|
||||||
script:
|
script:
|
||||||
- ci-fairy -v --authfile $AUTHFILE delete-image --project NetworkManager/NetworkManager --all
|
- ci-fairy -v --authfile $AUTHFILE delete-image --project NetworkManager/NetworkManager --all
|
||||||
|
|
||||||
|
|
|
||||||
47
.labels-migration.yml
Normal file
47
.labels-migration.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
host_url: https://gitlab.freedesktop.org
|
||||||
|
|
||||||
|
resource_rules:
|
||||||
|
issues:
|
||||||
|
rules:
|
||||||
|
- name: Set investigation if it was triaged
|
||||||
|
conditions:
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- '{triaged, bug, RFE}'
|
||||||
|
actions:
|
||||||
|
labels:
|
||||||
|
- workflow::investigation
|
||||||
|
remove_labels:
|
||||||
|
- triaged
|
||||||
|
|
||||||
|
- name: Set type of issue for bugs
|
||||||
|
conditions:
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- bug
|
||||||
|
actions:
|
||||||
|
labels:
|
||||||
|
- triaged::bug
|
||||||
|
remove_labels:
|
||||||
|
- bug
|
||||||
|
|
||||||
|
- name: Set type of issue for RFEs
|
||||||
|
conditions:
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- RFE
|
||||||
|
actions:
|
||||||
|
labels:
|
||||||
|
- triaged::RFE
|
||||||
|
remove_labels:
|
||||||
|
- RFE
|
||||||
|
|
||||||
|
- name: Remove labels not used anymore
|
||||||
|
conditions:
|
||||||
|
state: opened
|
||||||
|
labels:
|
||||||
|
- '{help-needed, work-in-progress}'
|
||||||
|
actions:
|
||||||
|
remove_labels:
|
||||||
|
- help-needed
|
||||||
|
- work-in-progress
|
||||||
Loading…
Add table
Reference in a new issue