Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue URL in job log #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fnkr
Copy link

@fnkr fnkr commented Dec 22, 2023

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",
  // ...
}

@philn-delphia
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants