format_history_entry: Format the slack message

Description Usage Arguments Value Examples

View source: R/RT_check_correspondence.R

Description

Format the slack message

Usage

1
format_history_entry(msg, trunc_at = 200)

Arguments

msg

(character) an rt_api object with the response

trunc_at

(numeric) the length of the correspondence to include in the slack message

Value

(character) formatted slack message text

Examples

1
2
3
4
5
## Not run: 
response <- rt::rt_ticket_history_entry("21866", "520747")
format_history_entry(response)

## End(Not run)

NCEAS/awards-bot documentation built on Sept. 6, 2021, 1:47 a.m.