phubme v0.4.1 API Reference

Modules

Struct that is use just after comment parsed :

  • comment: The full github comment
  • nicknames: Nicknames in the comment. They will be filtered to exclude no-matching nicknames.
  • sender: The nickname of the sender
  • source: The source of the comment (url)

Parse comment and detect if they contains nicknames. Every word that start with @ will be included into nicknames. process_comment returns a struct

Replace nicknames found in the comment with nicknames that match ENV defined nicknames

Send message to slack. With nicknames, it takes the %IssueComment struct :

  • It sends a message to each nicknames then log “All procceed”