{"record":{"id":"f129333556f4471e","repo":"projectdiscovery/nuclei","slug":"error-closing-issue-d-s","errorCode":null,"errorMessage":"error closing issue %d: %s","messagePattern":"error closing issue (.+?): (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/reporting/trackers/github/github.go","lineNumber":164,"sourceCode":"}\n\nfunc (i *Integration) CloseIssue(event *output.ResultEvent) error {\n\tctx := context.Background()\n\tsummary := format.Summary(event)\n\n\texistingIssue, err := i.findIssueByTitle(ctx, summary)\n\tif err != nil && !errors.Is(err, io.EOF) {\n\t\treturn err\n\t}\n\tif existingIssue == nil {\n\t\treturn nil\n\t}\n\n\tstateClosed := \"closed\"\n\tif _, _, err := i.client.Issues.Edit(ctx, i.options.Owner, i.options.ProjectName, *existingIssue.Number, &github.IssueRequest{\n\t\tState: &stateClosed,\n\t}); err != nil {\n\t\treturn fmt.Errorf(\"error closing issue %d: %s\", *existingIssue.Number, err)\n\t}\n\treturn nil\n}\n\nfunc (i *Integration) Name() string {\n\treturn \"github\"\n}\n\n// ShouldFilter determines if an issue should be logged to this tracker\nfunc (i *Integration) ShouldFilter(event *output.ResultEvent) bool {\n\tif i.options.AllowList != nil && !i.options.AllowList.GetMatch(event) {\n\t\treturn false\n\t}\n\n\tif i.options.DenyList != nil && i.options.DenyList.GetMatch(event) {\n\t\treturn false\n\t}\n","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/reporting/trackers/github/github.go#L146-L182","documentation":"Error \"error closing issue %d: %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/reporting/trackers/github/github.go:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}