Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an optional description to Issue #21

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/kotlin/slack/cli/exec/Issue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ import com.squareup.moshi.JsonClass
* @property matchingText the matching text to look for in the log.
* @property groupingHash grouping hash for reporting to bugsnag. This should usually be unique, but
* can also be reused across issues that are part of the same general issue.
* @property retrySignal the [RetrySignal] to use when this issue is found.
* @property description an optional description of the issue. Not used in the CLI, just there for
* documentation in the config.
*/
@JsonClass(generateAdapter = true)
internal data class Issue(
val message: String,
@Json(name = "log_message") val logMessage: String,
@Json(name = "matching_text") val matchingText: String,
@Json(name = "grouping_hash") val groupingHash: String,
@Json(name = "retry_signal") val retrySignal: RetrySignal
@Json(name = "retry_signal") val retrySignal: RetrySignal,
val description: String? = null,
) {

private fun List<String>.checkContains(errorText: String): Boolean {
Expand Down