Skip to content

Commit

Permalink
Merge pull request #64 from xushiwei/q
Browse files Browse the repository at this point in the history
githubisstask.URL: support fullURL as input
  • Loading branch information
xushiwei authored Aug 7, 2024
2 parents 96c7d33 + 1f7b958 commit 46440fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fetcher/githubisstask/github_issue_task.gop
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func New(input any, doc hdq.NodeSet) Result {
// URL returns the input URL for the given name.
func URL(input any) string {
issue := input.(string)
if strings.hasPrefix(issue, "https://github.com/") {
return issue
}
return "https://github.com/" + strings.Replace(issue, "#", "/issues/", 1)
}

Expand Down
9 changes: 7 additions & 2 deletions fetcher/githubisstask/gop_autogen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46440fb

Please sign in to comment.