manual-approval icon indicating copy to clipboard operation
manual-approval copied to clipboard

Fix issue URL in job log

Open fnkr opened this issue 2 years ago • 1 comments

GetURL returns the API URL of the issue, e.g.:

Issue created: https://api.github.com/repos/user/repo/issues/123456

It would be more useful to put the HTML URL (for human use) in the job log:

Issue created: https://github.com/user/repo/issues/123456

API docs: https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#get-an-issue

{
  // ...
  "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
  // ...
  "html_url": "https://github.com/octocat/Hello-World/issues/1347",
  // ...
}

fnkr avatar Dec 22 '23 10:12 fnkr

There's a similar issue with the link to the run created in the Issue body. runURL() is generating an API url instead of one for human use.

philn-delphia avatar Feb 23 '24 23:02 philn-delphia

Thanks for your contribution!

trstringer avatar Jun 19 '24 21:06 trstringer

@trstringer Can you create a new release/tag for this? I cannot pin to the tag version to use the HTML URL fix. The only way is to use the master/commit id directly. so if you create a new tag it will be helpful.

rathinasabapathim avatar Feb 10 '25 18:02 rathinasabapathim