Skip to content

Add workflow to sync issue types based on kind/* labels#3089

Merged
tekton-robot merged 1 commit intotektoncd:mainfrom
vdemeester:sync-issue-types
Mar 12, 2026
Merged

Add workflow to sync issue types based on kind/* labels#3089
tekton-robot merged 1 commit intotektoncd:mainfrom
vdemeester:sync-issue-types

Conversation

@vdemeester
Copy link
Member

@vdemeester vdemeester commented Feb 3, 2026

Changes

Add a new workflow that syncs GitHub's native Issue Types based on kind/* labels. Labels are the source of truth.

Label → Type Mapping:

Label Issue Type
kind/bug Bug
kind/feature Feature
kind/* (other) Task
(no kind/* label) (type cleared)

Features:

  • Runs daily at 7am UTC
  • Can be triggered manually with dry_run option
  • Skips issues that already have the correct type set
  • Clears the type if an issue has a type but no kind/* label (labels are source of truth)
  • Uses SHA-pinned actions (actions/create-github-app-token@29824e69...)
  • Rate-limit friendly with 0.3s delay between updates
  • Handles pagination automatically for large result sets

Scope: All open issues across all tektoncd repos.

/kind feature

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 3, 2026
@tekton-robot tekton-robot requested review from dibyom and jerop February 3, 2026 10:34
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 3, 2026
@anithapriyanatarajan
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2026
Copy link
Member

@waveywaves waveywaves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot
Copy link
Contributor

@waveywaves: changing LGTM is restricted to collaborators

Details

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Maps GitHub Issue Types based on labels:
- kind/bug → Bug
- kind/feature → Feature
- kind/* (other) → Task

Runs daily and can be triggered manually with dry_run option.
Skips issues that already have the correct type set.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 11, 2026
@anithapriyanatarajan
Copy link
Contributor

/approve

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 11, 2026
Comment on lines +24 to +28
env:
# Issue Type IDs for tektoncd org
TYPE_TASK: "IT_kwDOAtZbZc4Almgp"
TYPE_BUG: "IT_kwDOAtZbZc4Almgr"
TYPE_FEATURE: "IT_kwDOAtZbZc4Almgt"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anithapriyanatarajan, waveywaves

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [anithapriyanatarajan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@anithapriyanatarajan
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 12, 2026
@tekton-robot tekton-robot merged commit 48b6fc7 into tektoncd:main Mar 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants