updatecli icon indicating copy to clipboard operation
updatecli copied to clipboard

Feature Request: support for github issue creation/commenting

Open smerle33 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem?

While working on https://github.com/jenkins-infra/docker-openvpn/pull/354 I decided to automate the issue generation for CRL cert renewal. Which lead me to use GH, but this could have been embedded within updatecli as a target (not action as for this example there is no target to provide, and target is mandatory to use action)

Solution you'd like

targets:
  createIssue:
    kind: github/issue
  scmid: default
  title: Bump CRL cert as will expire soon {{ source "previousendate" }}
    body: |
      "follow https://github.com/jenkins-infra/docker-openvpn?tab=readme-ov-file#howto-renew-certificate-revocation-list \
        See https://github.com/jenkins-infra/helpdesk/issues/4266 for details."
  spec:
    labels:
      - crl
      - updatecli

Alternatives you've considered

using gh but then I needed to check on already openned issue

Anything else?

No response

smerle33 avatar Sep 03 '24 13:09 smerle33

Interesting request, I had similar needs for JIRA and GitHub issues :D IMHO it would make sense to have a new plugin for this

olblak avatar Sep 05 '24 06:09 olblak

I have a similar use case / feature request.

When running the updatecli apply command, you get the follow logged to the stdout (source code):

Pull Request available at:

	https://github.com/Org/Repo/pull/58

I would like to be able to grab this URL and then use it to make a comment on the PR that triggered updatecli to run, saying something like:

"This PR caused the creation of the following downstream PRs: <PullRequest.URI>"

MattHodge avatar Feb 04 '25 11:02 MattHodge