diff options
| -rw-r--r-- | .github/workflows/update-instances.yml | 12 | ||||
| -rw-r--r-- | lib/farside.ex | 2 | ||||
| -rw-r--r-- | services-full.json | 14 | ||||
| -rw-r--r-- | services.json | 13 |
4 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 2c043ab..829583b 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -217,6 +217,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 # ============================================================== diff --git a/lib/farside.ex b/lib/farside.ex index e92db93..ca96a4a 100644 --- a/lib/farside.ex +++ b/lib/farside.ex @@ -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"] } diff --git a/services-full.json b/services-full.json index 85d9a8d..928ec9f 100644 --- a/services-full.json +++ b/services-full.json @@ -565,6 +565,20 @@ ] }, { + "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", "fallback": "https://code.whatever.social", diff --git a/services.json b/services.json index e58bd84..a015306 100644 --- a/services.json +++ b/services.json @@ -521,6 +521,19 @@ ] }, { + "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", "fallback": "https://code.whatever.social", |
