getGithubIssue

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGithubIssue

func GetGithubIssue(ctx context.Context, m kymapubsub.MessagePayload) error

GetGithubIssue is triggered by pubsub message with failing test instance details. It will check if received pubsub message data payload has github issue number and create new issue when missing. Created github issue number is added to failing test instance document in firestore and pubsub message data payload. If github issue is found in a message, it will check if it's status in github is open. If closed github issue detected, corresponding failing test instance in firestore will be closed and removed from pubsub message data payload. Function then will publish pubsub message back to topic creating new failing test instance in firestore. If new github issue was created or existing one is still open, function will publish message for further enriching failing test instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL