Open 0x4007 opened 1 year ago
what about refactoring getOpenedPullrequestForAnissue using gitLinkedPrParser on https://github.com/ubiquity/ubiquibot/pull/657 ?
even it is depending on the dom elements on the page, I'm not too sure about what chatGPT said, lol
This relies on the "closing keywords" notation in the opening comment, but a more robust way (not everybody uses closing keywords) would be to check any "link" events in the timeline
https://github.com/ubiquity/ubiquibot/blob/879d066391146229b8fcbf81c324dd5c7a59df4b/src/helpers/issue.ts#L596-L609
ChatGPT
Just be sure to monitor unlink events.