| 1 | import { Injectable } from '@nestjs/common'; |
| 2 | |
| 3 | @Injectable() |
| 4 | export class MetaService |
| 5 | /** gh reads only the X-OAuth-Scopes header the root carries. */ |
| 6 | root() { |
| 7 | return {}; |
| 8 | } |
| 9 | |
| 10 | /** `installed_version` decides which search syntax gh uses. */ |
| 11 | meta() { |
| 12 | return { |
| 13 | installed_version: '3.17.0', |
| 14 | verifiable_password_authentication: false, |
| 15 | }; |
| 16 | } |
| 17 | } |