Skip to content

Commit

Permalink
Rename optional fields for publishing todos
Browse files Browse the repository at this point in the history
  • Loading branch information
tjazerzen committed Sep 26, 2023
1 parent 8c0ee93 commit 23f7a4e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .autopr/triggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ triggers:
- branch_name: main
run: publish_todos
parameters:
TASK_DIFFICULTY_CHOICES:
ISSUE_LABEL_CHOICES:
- "easy"
- "medium"
- "hard"
TASK_DIFFICULTY_PROMPT: |
ISSUE_LABEL_PROMPT: |
How hard is this task?
TODO_RESOLVE_PROMPT: |
ISSUE_DESCRIPTION_PROMPT: |
What tips can you give to someone that's resolving this TODO?
TODO_RESOLVE_INSTRUCTIONS: |
ISSUE_DESCRIPTION_INSTRUCTIONS: |
Respond in 1-3 sentences.
# - branch_name: main
Expand Down
10 changes: 4 additions & 6 deletions autopr/tests/workflow_resources/list_and_publish_todos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ build_and_publish_todo_test:
- "easy"
- "medium"
- "hard"
name: TASK_DIFFICULTY_CHOICES
name: ISSUE_LABEL_CHOICES
prompt_context:
- var: todo.task
heading: "Task"
prompt:
param:
default: "How hard is this task?"
name: TASK_DIFFICULTY_PROMPT
name: ISSUE_LABEL_PROMPT
outputs:
choice: task_difficulty

Expand All @@ -55,11 +55,11 @@ build_and_publish_todo_test:
prompt:
param:
default: "What tips can you give to someone that's resolving this TODO?"
name: TODO_RESOLVE_PROMPT
name: ISSUE_DESCRIPTION_PROMPT
instructions:
param:
default: "Respond in 1-3 sentences."
name: TODO_RESOLVE_INSTRUCTIONS
name: ISSUE_DESCRIPTION_INSTRUCTIONS
outputs:
result: prompt_suggestions

Expand All @@ -76,8 +76,6 @@ build_and_publish_todo_test:
{% for todo_location in todo.locations %}
{{ todo_location.url }}
{% endfor %}
### Suggestions for resolving this TODO:
{{ prompt_suggestions }}
label_list:
Expand Down
10 changes: 4 additions & 6 deletions autopr/workflows/list_and_publish_todos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ build_and_publish_todo:
- "easy"
- "medium"
- "hard"
name: TASK_DIFFICULTY_CHOICES
name: ISSUE_LABEL_CHOICES
prompt_context:
- var: todo.task
heading: "Task"
prompt:
param:
default: "How hard is this task?"
name: TASK_DIFFICULTY_PROMPT
name: ISSUE_LABEL_PROMPT
outputs:
choice: task_difficulty

Expand All @@ -55,11 +55,11 @@ build_and_publish_todo:
prompt:
param:
default: "What tips can you give to someone that's resolving this TODO?"
name: TODO_RESOLVE_PROMPT
name: ISSUE_DESCRIPTION_PROMPT
instructions:
param:
default: "Respond in 1-3 sentences."
name: TODO_RESOLVE_INSTRUCTIONS
name: ISSUE_DESCRIPTION_INSTRUCTIONS
outputs:
result: prompt_suggestions

Expand All @@ -77,8 +77,6 @@ build_and_publish_todo:
{{ todo_location.url }}
{% endfor %}
### Suggestions for resolving this TODO:
{{ prompt_suggestions }}
label_list:
lambda: |
Expand Down

0 comments on commit 23f7a4e

Please sign in to comment.