SpotiFlyer/maintenance-tasks/src/main/kotlin/analytics_html_img/Common.kt

19 lines
585 B
Kotlin
Raw Normal View History

2021-05-18 16:57:33 +02:00
@file:Suppress("FunctionName")
package analytics_html_img
import utils.byProperty
internal object Common {
const val GITHUB_API = "https://api.github.com"
val GITHUB_TOKEN get() = "GITHUB_TOKEN".byProperty
fun START_SECTION(tagName: String = "HTI") = "<!--START_SECTION:$tagName-->"
fun END_SECTION(tagName: String = "HTI") = "<!--END_SECTION:$tagName-->"
const val USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0"
}
internal data class GithubFileContent(
val decryptedContent: String,
val sha: String
)