1 | <?php declare(strict_types=1); |
||
5 | final class AcceptHeader |
||
6 | { |
||
7 | const PRESET_DEFAULT = [ |
||
8 | self::CHECK_RUNS, |
||
9 | self::LICENSE, |
||
10 | self::TOPICS, |
||
11 | self::DEFAULT, |
||
12 | ]; |
||
13 | |||
14 | const PRESET_COMMUNITY_HEALTH = [ |
||
15 | self::COMMUNITY_HEALTH, |
||
16 | self::DEFAULT, |
||
17 | ]; |
||
18 | |||
19 | // Community Health: https://developer.github.com/v3/repos/community/#community-health |
||
20 | const COMMUNITY_HEALTH = 'application/vnd.github.black-panther-preview+json'; |
||
21 | |||
22 | // Default header: https://developer.github.com/v3/#current-version |
||
23 | const DEFAULT = 'application/vnd.github.v3+json'; |
||
24 | |||
25 | // License on repository object: https://developer.github.com/v3/licenses/#licenses |
||
26 | const LICENSE = 'application/vnd.github.drax-preview+json'; |
||
27 | |||
28 | // Topics on repository object: https://developer.github.com/v3/repos/#repositories |
||
29 | const TOPICS = 'application/vnd.github.mercy-preview+json'; |
||
30 | 3 | ||
31 | // Topics on repository object: https://developer.github.com/v3/repos/#repositories |
||
32 | 3 | const CHECK_RUNS = 'application/vnd.github.antiope-preview+json'; |
|
33 | |||
34 | public static function getHeader(array $chunks): string |
||
38 | } |
||
39 |