Github Issues
Title
Github Issues
Description
The url of site
https://github.com/hoothin/UserScripts/issues
https://github.com/hoothin/UserScripts/issues?q=is%3Aopen+is%3Aissue
https://github.com/hoothin/UserScripts/issues/
Is your request related to a problem? Please describe. Yes — I'm trying to create a rule that matches GitHub Issue listing pages across any repository. The rule should work whether the URL includes a query string, a trailing slash, or neither. My attempts result in either a JSON error or a rule that doesn't match valid URLs.
Describe the result you'd like with the rule I want the rule to match all issue listing pages under any GitHub repository, such as:
/owner/repo/issues/owner/repo/issues//owner/repo/issues?some=query
...but not subpaths like /issues/new or /issues/123.
Custom rule you've tried
"^https:\\/\\/github\\.com\\/[^\\/]+\\/[^\\/]+\\/issues(?:\\/|\\?.*|$)"
But Pagetual throws a JSON error or fails to match all the cases above.
Additional context This rule is intended to generalize across repositories. I suspect the error may be due to improper escaping expectations or the way Pagetual parses input. If there's a specific expected format (e.g. raw regex, stringified JSON, etc.), please clarify. Screenshots available if needed.
You can use in other repositories' Issues sections, but not in this one.
I don't seem to be able to use it in other repositories' Issues sections. can you provide me the rule you are using?
https://pagetual.hoothin.com/rules/nextLinkByUrl.html
{
"name": "Github issues and pulls",
"url": "^https:\\/\\/github\\.com\\/[^/]+\\/[^/]+\\/(?:issues|pulls)",
"pageElement": "ul[role='list']",
"nextLinkByUrl": [
"(&page=(\\d+))?$",
"&page={$2+1}"
],
"pinUrl": true,
"action": 0
}
That rule is not completely working for me, though it indicates it is loading: "Shojo Now Loading", but without ever loading anything.
This is a page I have tried it on: https://github.com/gdm-settings/gdm-settings/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen
The example you provided only has 23 issues in total, so no page numbers were generated. Please refer to the rules I've given and use the third stop marker.
I added that rule to pagetual's main rules and it's still not working for me, even on https://github.com/microsoft/vscode/issues