diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b0e8977445..827ff73201 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,11 +59,11 @@ variables: # # This is done by running `ci-fairy generate-template` and possibly bumping # ".default_tag". - ALPINE_TAG: 'tag-75ecbb5bcef4' - CENTOS_TAG: 'tag-0de3c2e2d9ed' - DEBIAN_TAG: 'tag-1ccef04c657b' - FEDORA_TAG: 'tag-0de3c2e2d9ed' - UBUNTU_TAG: 'tag-1ccef04c657b' + ALPINE_TAG: 'tag-50aefcd4346d' + CENTOS_TAG: 'tag-16f41fa4814a' + DEBIAN_TAG: 'tag-5f85698f8fae' + FEDORA_TAG: 'tag-16f41fa4814a' + UBUNTU_TAG: 'tag-5f85698f8fae' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' @@ -654,14 +654,14 @@ pages: needs: - "t_fedora:40: [autotools+gcc+docs+valgrind]" -# triage:issues: -# stage: triage -# image: ruby:2.7 -# script: -# - gem install gitlab-triage -# - gitlab-triage -d --token $API_TOKEN --source-id $SOURCE_ID -# only: -# - schedules +triage:issues: + stage: triage + image: ruby:3 + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "oneshot" + script: + - gem install gitlab-triage + - 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. # Create an scheduled pipeline to run it, passing an AUTHFILE environment variable of type @@ -671,7 +671,7 @@ clean-images: - .fdo.ci-fairy stage: prep rules: - - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly" script: - ci-fairy -v --authfile $AUTHFILE delete-image --project NetworkManager/NetworkManager --all diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 85b3601850..0ff44a7c88 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -241,14 +241,14 @@ pages: needs: - "t_{{default_distro.name}}:{{default_distro.versions[0]}}: [autotools+gcc+docs+valgrind]" -# triage:issues: -# stage: triage -# image: ruby:2.7 -# script: -# - gem install gitlab-triage -# - gitlab-triage -d --token $API_TOKEN --source-id $SOURCE_ID -# only: -# - schedules +triage:issues: + stage: triage + image: ruby:3 + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "oneshot" + script: + - gem install gitlab-triage + - 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. # Create an scheduled pipeline to run it, passing an AUTHFILE environment variable of type @@ -258,7 +258,7 @@ clean-images: - .fdo.ci-fairy stage: prep rules: - - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly" script: - ci-fairy -v --authfile $AUTHFILE delete-image --project NetworkManager/NetworkManager --all diff --git a/.labels-migration.yml b/.labels-migration.yml new file mode 100644 index 0000000000..bfee6fec63 --- /dev/null +++ b/.labels-migration.yml @@ -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 \ No newline at end of file