Skip to content

Commit

Permalink
Merge pull request #168 from con/decoupled-ingestion
Browse files Browse the repository at this point in the history
Add "Decoupled Ingestion System" as pipeline trigger type
  • Loading branch information
yarikoptic authored May 11, 2023
2 parents 6e4256d + ae0c9e4 commit 78f21fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/inception-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }}
APPVEYOR_TOKEN: ${{ secrets.APPVEYOR_TOKEN }}
CIRCLECI_CLI_TOKEN: ${{ secrets.CIRCLECI_CLI_TOKEN }}

- name: Coverage report
run: |
Expand Down
5 changes: 5 additions & 0 deletions src/tinuous/circleci.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ class TriggerType(Enum):
EXPLICIT = "explicit"
API = "api"
WEBHOOK = "webhook"
# Seen in the wild; I have no idea what this is:
DECOUPLED_INGESTION_SYSTEM = "Decoupled Ingestion System"

def as_event_type(self) -> EventType:
if self is TriggerType.SCHEDULED:
Expand All @@ -332,6 +334,9 @@ def as_event_type(self) -> EventType:
elif self is TriggerType.WEBHOOK:
# CircleCI only runs jobs for pushes, not for PR creation
return EventType.PUSH
elif self is TriggerType.DECOUPLED_INGESTION_SYSTEM:
# Just a guess
return EventType.PUSH
else:
raise AssertionError(f"Unexpected TriggerType {self!r}")

Expand Down

0 comments on commit 78f21fe

Please sign in to comment.