Skip to content

Commit

Permalink
reverting back to 0d4512d, the quotation around the ticket is needed …
Browse files Browse the repository at this point in the history
…for the exists function, removed by mistake earlier
  • Loading branch information
laijasmine committed Feb 18, 2021
1 parent 1f7e463 commit 8165bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/RT_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ create_ticket <- function(award, requestor) {
rt_base = 'https://support.nceas.ucsb.edu/rt')

#check to see if the object ticket is created successfully
if(!exists(ticket)) {
if(!exists("ticket")) {
out <- sprintf('I failed to create a ticket for award: %s, from requestor: %s', award, requestor)
slackr::slackr_bot(out)
return('rt_ticket_create_error')
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Every 24 hours the bot queries NSF's award [API](https://www.research.gov/common
AON_RECURRING_INTERVAL=6 # Number of months to send recurring emails for AON data due
```

- If you have issues logging in you might need to install the development branch of rt `remotes::install_github("nceas/rt@develop")`
- If you are running locally you might need to set up slackbot `slackr::slackr_setup(channel = "#awardbot",incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"))`

**Note** - please contact Chris for set up in Linux
Expand Down

0 comments on commit 8165bba

Please sign in to comment.