| @@ 915-930 (lines=16) @@ | ||
| 912 | ||
| 913 | $options = new JRegistry; |
|
| 914 | ||
| 915 | if (!empty($gh_token)) |
|
| 916 | { |
|
| 917 | $options->set('gh.token', $gh_token); |
|
| 918 | $github = new Github($options); |
|
| 919 | } |
|
| 920 | else |
|
| 921 | { |
|
| 922 | // Without a token runs fatal. |
|
| 923 | // $github = new JGithub; |
|
| 924 | ||
| 925 | // Trying with a 'read only' public repositories token |
|
| 926 | // But base 64 encoded to avoid Github alarms sharing it. |
|
| 927 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
| 928 | $options->set('gh.token', $gh_token); |
|
| 929 | $github = new Github($options); |
|
| 930 | } |
|
| 931 | ||
| 932 | try |
|
| 933 | { |
|
| @@ 1078-1093 (lines=16) @@ | ||
| 1075 | ||
| 1076 | $options = new JRegistry; |
|
| 1077 | ||
| 1078 | if (!empty($gh_token)) |
|
| 1079 | { |
|
| 1080 | $options->set('gh.token', $gh_token); |
|
| 1081 | $github = new Github($options); |
|
| 1082 | } |
|
| 1083 | else |
|
| 1084 | { |
|
| 1085 | // Without a token runs fatal. |
|
| 1086 | // $github = new JGithub; |
|
| 1087 | ||
| 1088 | // Trying with a 'read only' public repositories token |
|
| 1089 | // But base 64 encoded to avoid Github alarms sharing it. |
|
| 1090 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
| 1091 | $options->set('gh.token', $gh_token); |
|
| 1092 | $github = new Github($options); |
|
| 1093 | } |
|
| 1094 | ||
| 1095 | try |
|
| 1096 | { |
|
| @@ 1538-1553 (lines=16) @@ | ||
| 1535 | ||
| 1536 | $options = new JRegistry; |
|
| 1537 | ||
| 1538 | if (!empty($gh_token)) |
|
| 1539 | { |
|
| 1540 | $options->set('gh.token', $gh_token); |
|
| 1541 | $github = new Github($options); |
|
| 1542 | } |
|
| 1543 | else |
|
| 1544 | { |
|
| 1545 | // Without a token runs fatal. |
|
| 1546 | // $github = new JGithub; |
|
| 1547 | ||
| 1548 | // Trying with a 'read only' public repositories token |
|
| 1549 | // But base 64 encoded to avoid Github alarms sharing it. |
|
| 1550 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
| 1551 | $options->set('gh.token', $gh_token); |
|
| 1552 | $github = new Github($options); |
|
| 1553 | } |
|
| 1554 | ||
| 1555 | try |
|
| 1556 | { |
|
| @@ 62-77 (lines=16) @@ | ||
| 59 | ||
| 60 | $options = new JRegistry; |
|
| 61 | ||
| 62 | if (!empty($gh_token)) |
|
| 63 | { |
|
| 64 | $options->set('gh.token', $gh_token); |
|
| 65 | $github = new Github($options); |
|
| 66 | } |
|
| 67 | else |
|
| 68 | { |
|
| 69 | // Without a token runs fatal. |
|
| 70 | // $github = new JGithub; |
|
| 71 | ||
| 72 | // Trying with a 'read only' public repositories token |
|
| 73 | // But base 64 encoded to avoid Github alarms sharing it. |
|
| 74 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
| 75 | $options->set('gh.token', $gh_token); |
|
| 76 | $github = new Github($options); |
|
| 77 | } |
|
| 78 | ||
| 79 | try |
|
| 80 | { |
|