forked from PrefectHQ/marvin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prefect.yaml
47 lines (42 loc) · 1.34 KB
/
prefect.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: marvin
prefect-version: 2.14.15
build: null
push: null
pull:
- prefect.deployments.steps.git_clone:
repository: https://github.com/PrefectHQ/marvin.git
- prefect.deployments.steps.run_shell_script:
script: pip install git+https://github.com/PrefectHQ/marvin.git prefect-gcp
deployments:
- name: github-repo-digest
tags: ['internal-tools', 'LLM']
description: Summarize a repo's activity over a given time period
schedule:
cron: '0 18 * * 1-5'
timezone: America/Chicago
entrypoint: cookbook/flows/github_digest/repo_activity.py:daily_github_digest
parameters:
post_story_to_slack: true
work_pool:
name: kubernetes-prd-internal-tools
job_variables:
env:
OPENAI_API_KEY: '{{ prefect.blocks.secret.openai-api-key }}'
- name: label-issues
tags: ['internal-tools', 'LLM']
description: Label issues based on their content
triggers:
- enabled: true
expect:
- marvin.issue.opened
- marvin.issue.reopened
parameters:
event_body_str: "{{ event.payload.body }}"
entrypoint: cookbook/flows/label_issues.py:label_issues
work_pool:
name: kubernetes-prd-internal-tools
job_variables:
env:
OPENAI_API_KEY: '{{ prefect.blocks.secret.openai-api-key }}'
GH_UTIL_TOKEN: '{{ prefect.blocks.secret.gh-token }}'
EXTRA_PIP_PACKAGES: 'gh-util'