From 0a3387f19918bc1012ad2ee3db7bc6771caa9624 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 20 Sep 2021 14:49:55 +0530 Subject: fix: Remove extra validation for serviceUrl for github since the url doesn't seem to be valid any more. --- recipes/github/index.js | 17 ----------------- recipes/github/package.json | 4 ++-- 2 files changed, 2 insertions(+), 19 deletions(-) (limited to 'recipes') diff --git a/recipes/github/index.js b/recipes/github/index.js index dfcd7d1..a84e54a 100644 --- a/recipes/github/index.js +++ b/recipes/github/index.js @@ -1,19 +1,2 @@ module.exports = Ferdi => class GitHub extends Ferdi { - async validateUrl(url) { - try { - const resp = await window.fetch(`${url}/api/v3`, { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/vnd.github.v3+json', - }, - }); - // doc: https://developer.github.com/enterprise/2.17/v3/#current-version - return resp.status.toString().startsWith('2'); - } catch (err) { - console.error(err); - } - - return false; - } }; diff --git a/recipes/github/package.json b/recipes/github/package.json index 0f9bb51..5a35240 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,11 +1,11 @@ { "id": "github", "name": "GitHub", - "version": "2.2.1", + "version": "2.3.0", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", - "hasCustomUrl": true, + "hasHostedOption": true, "hasIndirectMessages": true } } -- cgit v1.2.3-70-g09d2