-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Given the following code I would expect it creates a function
- in europe-west1
- With only one instance
- With access to the environment secret GITLAB_PERSONAL_ACCESS_TOKEN
None of them seem to be true
Either I am doing something terribly wrong but in that case docs are wrong...
from firebase_functions import params
from firebase_functions.alerts import crashlytics_fn
import gitlab
GITLAB_PERSONAL_ACCESS_TOKEN = params.SecretParam("GITLAB_PERSONAL_ACCESS_TOKEN")
def post_issue_to_gitlab(crash_type, event) -> None:
# Some code ...
@crashlytics_fn.on_new_fatal_issue_published(secrets=[GITLAB_PERSONAL_ACCESS_TOKEN], region="europe-west1", max_instances=1)
def post_fatal_issue_to_gitlab(event: crashlytics_fn.CrashlyticsNewFatalIssueEvent) -> None:
post_issue_to_gitlab("Crashlytics - Fatal Crash", event)
Metadata
Metadata
Assignees
Labels
No labels