Merge pull request #12257 from jrfnl/feature/vcs-github-funding-support-thanksdev
Fix failing Packagist updates / GitHubDriver::getFundingInfo(): add support for thanks.dev and polar.shpull/12247/head
commit
2645d080b5
|
@ -257,36 +257,42 @@ class GitHubDriver extends VcsDriver
|
|||
|
||||
foreach ($result as $key => $item) {
|
||||
switch ($item['type']) {
|
||||
case 'tidelift':
|
||||
$result[$key]['url'] = 'https://tidelift.com/funding/github/' . $item['url'];
|
||||
case 'community_bridge':
|
||||
$result[$key]['url'] = 'https://funding.communitybridge.org/projects/' . basename($item['url']);
|
||||
break;
|
||||
case 'github':
|
||||
$result[$key]['url'] = 'https://github.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'patreon':
|
||||
$result[$key]['url'] = 'https://www.patreon.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'otechie':
|
||||
$result[$key]['url'] = 'https://otechie.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'open_collective':
|
||||
$result[$key]['url'] = 'https://opencollective.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'liberapay':
|
||||
$result[$key]['url'] = 'https://liberapay.com/' . basename($item['url']);
|
||||
case 'issuehunt':
|
||||
$result[$key]['url'] = 'https://issuehunt.io/r/' . $item['url'];
|
||||
break;
|
||||
case 'ko_fi':
|
||||
$result[$key]['url'] = 'https://ko-fi.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'issuehunt':
|
||||
$result[$key]['url'] = 'https://issuehunt.io/r/' . $item['url'];
|
||||
case 'liberapay':
|
||||
$result[$key]['url'] = 'https://liberapay.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'community_bridge':
|
||||
$result[$key]['url'] = 'https://funding.communitybridge.org/projects/' . basename($item['url']);
|
||||
case 'open_collective':
|
||||
$result[$key]['url'] = 'https://opencollective.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'patreon':
|
||||
$result[$key]['url'] = 'https://www.patreon.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'tidelift':
|
||||
$result[$key]['url'] = 'https://tidelift.com/funding/github/' . $item['url'];
|
||||
break;
|
||||
case 'polar':
|
||||
$result[$key]['url'] = 'https://polar.sh/' . basename($item['url']);
|
||||
break;
|
||||
case 'buy_me_a_coffee':
|
||||
$result[$key]['url'] = 'https://www.buymeacoffee.com/' . basename($item['url']);
|
||||
break;
|
||||
case 'thanks_dev':
|
||||
$result[$key]['url'] = 'https://thanks.dev/' . basename($item['url']);
|
||||
break;
|
||||
case 'otechie':
|
||||
$result[$key]['url'] = 'https://otechie.com/' . basename($item['url']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue