| 30 | |
| 31 | declare namespace Gitalk { |
| 32 | interface GitalkOptions { |
| 33 | /** |
| 34 | * GitHub Application Client ID. |
| 35 | */ |
| 36 | clientID: string; |
| 37 | |
| 38 | /** |
| 39 | * GitHub Application Client Secret. |
| 40 | */ |
| 41 | clientSecret: string; |
| 42 | |
| 43 | /** |
| 44 | * Name of Github repository. |
| 45 | */ |
| 46 | repo: string; |
| 47 | |
| 48 | /** |
| 49 | * GitHub repository owner. |
| 50 | * Can be personal user or organization. |
| 51 | */ |
| 52 | owner: string; |
| 53 | |
| 54 | /** |
| 55 | * GitHub repository owner and collaborators. |
| 56 | * (Users who having write access to this repository) |
| 57 | */ |
| 58 | admin: string[]; |
| 59 | |
| 60 | /** |
| 61 | * The unique id of the page. |
| 62 | * Length must less than 50. |
| 63 | * |
| 64 | * @default location.href |
| 65 | */ |
| 66 | id?: string; |
| 67 | |
| 68 | /** |
| 69 | * The issue ID of the page. |
| 70 | * If the number attribute is not defined, issue will be located using id. |
| 71 | * |
| 72 | * @default -1 |
| 73 | */ |
| 74 | number?: number; |
| 75 | |
| 76 | /** |
| 77 | * GitHub issue labels. |
| 78 | * |
| 79 | * @default ['Gitalk'] |
| 80 | */ |
| 81 | labels?: string[]; |
| 82 | |
| 83 | /** |
| 84 | * GitHub issue title. |
| 85 | * |
| 86 | * @default document.title |
| 87 | */ |
| 88 | title?: string; |
| 89 |
nothing calls this directly
no outgoing calls
no test coverage detected