MCPcopy Index your code
hub / github.com/github/github-mcp-server / issueNumberFromIssueURL

Function issueNumberFromIssueURL

pkg/github/issues.go:1291–1298  ·  view source on GitHub ↗
(issueURL string)

Source from the content-addressed store, hash-verified

1289}
1290
1291func issueNumberFromIssueURL(issueURL string) (int, error) {
1292 issueNumberString := issueURL[strings.LastIndex(issueURL, "/")+1:]
1293 issueNumber, err := strconv.Atoi(issueNumberString)
1294 if err != nil {
1295 return 0, fmt.Errorf("invalid issue URL %q: %w", issueURL, err)
1296 }
1297 return issueNumber, nil
1298}
1299
1300// SubIssueWrite creates a tool to add a sub-issue to a parent issue.
1301func SubIssueWrite(t translations.TranslationHelperFunc) inventory.ServerTool {

Callers 1

AddIssueCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected