prow icon indicating copy to clipboard operation
prow copied to clipboard

plugins: add new plugin for linking and unlinking issues to a PR

Open Amulyam24 opened this issue 2 weeks ago • 5 comments

This PR adds a new plugin issue-management which has commands for linking and unlinking issues to a PR. Ref - https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue

  • The commands can be used to link an issue to a PR in the current repository or in a different repository as well as handle multiple issues
  • This is done by adding the supported keyword Fixes to the body of the PR if it doesn't already exist or by appending the issue to the existing Fixes line
  • Supported formats are issue-number and org/repo-name#issue-number

A new plugin has been added to accommodate any existing issue commands or provide flexibility to support more issue commands in the future.

Fixes #359

Amulyam24 avatar Nov 25 '25 14:11 Amulyam24

Deploy Preview for k8s-prow ready!

Name Link
Latest commit c65a580f76d5d102ae7ca0f5b5f3723f2484857d
Latest deploy log https://app.netlify.com/projects/k8s-prow/deploys/692d60b9defd3a000813d3a3
Deploy Preview https://deploy-preview-556--k8s-prow.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 25 '25 14:11 netlify[bot]

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Amulyam24 Once this PR has been reviewed and has the lgtm label, please assign cjwagner for approval. For more information see the Code Review Process.

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

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

k8s-ci-robot avatar Nov 25 '25 14:11 k8s-ci-robot

@Amulyam24: The label(s) `/label do-not-merge/work-in-progress

cannot be applied. These labels are supported:api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor, ci-short, ci-extended, ci-full. Is this label configured under labels -> additional_labelsorlabels -> restricted_labelsinplugin.yaml`?

In response to this:

/label do-not-merge/work-in-progress

Adding UT

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-sigs/prow repository.

k8s-ci-robot avatar Nov 27 '25 14:11 k8s-ci-robot

/hold

WIP: Adding UT

Amulyam24 avatar Nov 27 '25 14:11 Amulyam24

/unhold

Amulyam24 avatar Dec 01 '25 09:12 Amulyam24

I think this is pretty close, I appreciate the test coverage. Left some comment about the code structure.

petr-muller avatar Dec 01 '25 18:12 petr-muller