Add GotHub support (#116)
Adds support for GotHub, an alternative frontend for GitHub --------- Co-authored-by: Ben Busby <contact@benbusby.com>
This commit is contained in:
parent
46c9b66478
commit
9104650cfe
4 changed files with 41 additions and 0 deletions
12
.github/workflows/update-instances.yml
vendored
12
.github/workflows/update-instances.yml
vendored
|
@ -216,6 +216,18 @@ jobs:
|
|||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# GotHub update
|
||||
# ==============================================================
|
||||
|
||||
curl -s https://codeberg.org/gothub/gothub-instances/raw/branch/master/instances.json | \
|
||||
jq '[.[] | .link]' > gothub-tmp.json
|
||||
jq --slurpfile gothub-tmp.json \
|
||||
'(.[] | select(.type == "gothub") )
|
||||
.instances |= $gothub[0]' services-full.json > services-tmp.json
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# TODO: Update instances for other services
|
||||
# ==============================================================
|
||||
|
|
|
@ -20,6 +20,7 @@ defmodule Farside do
|
|||
@quora_regex ~r/quora.com|quetre/
|
||||
@gsearch_regex ~r/google.com\/search|whoogle/
|
||||
@fandom_regex ~r/fandom.com|breezewiki/
|
||||
@github_regex ~r/github.com|gothub/
|
||||
@stackoverflow_regex ~r/stackoverflow.com|anonymousoverflow/
|
||||
|
||||
@parent_services %{
|
||||
|
@ -37,6 +38,7 @@ defmodule Farside do
|
|||
@quora_regex => ["quetre"],
|
||||
@gsearch_regex => ["whoogle"],
|
||||
@fandom_regex => ["breezewiki"],
|
||||
@github_regex => ["gothub"],
|
||||
@stackoverflow_regex => ["anonymousoverflow"]
|
||||
}
|
||||
|
||||
|
|
|
@ -564,6 +564,20 @@
|
|||
"https://breeze.whateveritworks.org"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "gothub",
|
||||
"test_url": "/benbusby/farside",
|
||||
"fallback": "https://gothub.projectsegfau.lt",
|
||||
"instances": [
|
||||
"https://gh.bloatcat.tk",
|
||||
"https://gothub.lunar.icu",
|
||||
"https://gothub.no-logs.com",
|
||||
"https://gh.owo.si",
|
||||
"https://gothub.projectsegfau.lt",
|
||||
"https://gh.whateveritworks.org",
|
||||
"https://gothub.dev.projectsegfau.lt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "anonymousoverflow",
|
||||
"test_url": "/questions/6591213/how-do-i-rename-a-local-git-branch",
|
||||
|
|
|
@ -520,6 +520,19 @@
|
|||
"https://breeze.nohost.network"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "gothub",
|
||||
"test_url": "/benbusby/farside",
|
||||
"fallback": "https://gothub.projectsegfau.lt",
|
||||
"instances": [
|
||||
"https://gh.bloatcat.tk",
|
||||
"https://gothub.lunar.icu",
|
||||
"https://gothub.no-logs.com",
|
||||
"https://gh.owo.si",
|
||||
"https://gothub.projectsegfau.lt",
|
||||
"https://gothub.dev.projectsegfau.lt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "anonymousoverflow",
|
||||
"test_url": "/questions/6591213/how-do-i-rename-a-local-git-branch",
|
||||
|
|
Loading…
Add table
Reference in a new issue