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

PR adds Jira as an option #61

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
add todos
  • Loading branch information
mattdough committed Oct 30, 2021
commit 810a2eff18045d12c74b0997f3e8600f44010cef
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
rev: 21.9b0
hooks:
- id: black
11 changes: 8 additions & 3 deletions actions/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
vers = "vers: 0.1.0, date: Apr 2, 2020"
logger.debug(vers)

snow = SnowAPI()
# TODO read helpdesk service from endpoints.yml
localmode = snow.localmode
# TODO instantiante either snow or jira or nothing for local
snow = SnowAPI()

logger.debug(f"Local mode: {snow.localmode}")


Expand All @@ -28,7 +31,9 @@ def run(
domain: Dict[Text, Any],
) -> List[Dict]:
if tracker.get_slot("previous_email"):
dispatcher.utter_message(template=f"utter_ask_use_previous_email",)
dispatcher.utter_message(
template=f"utter_ask_use_previous_email",
)
else:
dispatcher.utter_message(template=f"utter_ask_email")
return []
Expand Down Expand Up @@ -177,7 +182,7 @@ def run(
domain: Dict[Text, Any],
) -> List[Dict]:
"""Look up all incidents associated with email address
and return status of each"""
and return status of each"""

email = tracker.get_slot("email")

Expand Down