Skip to content

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

Open
vdemeester wants to merge 1 commit intotektoncd:mainfrom
vdemeester:sync-issue-types
Open

Add workflow to sync issue types based on kind/* labels#3089
vdemeester wants to merge 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
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>
@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.

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: waveywaves
To complete the pull request process, please ask for approval from anithapriyanatarajan after the PR has been reviewed.

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

Details Needs approval from an approver in each of these files:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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