mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
chore: new attempt
This commit is contained in:
parent
83d071ea63
commit
c3c73c5f02
11
.github/workflows/ai-flag-cleanup-pr.yml
vendored
11
.github/workflows/ai-flag-cleanup-pr.yml
vendored
@ -168,8 +168,9 @@ jobs:
|
||||
- name: Create prompt
|
||||
id: create_prompt
|
||||
run: |
|
||||
const body = `${{ fromJson(steps.get_issue.outputs.result).body }}`;
|
||||
return `Based on the issue description below, refactor the codebase to permanently apply the desired outcome for this feature flag (e.g. enable, keep variant, or discard), by removing all conditional checks and dead branches, preserving only the correct code path.
|
||||
ISSUE_BODY="${{ fromJson(steps.get_issue.outputs.result).body }}"
|
||||
cat <<EOF > cleanup_prompt.txt
|
||||
Based on the issue description below, refactor the codebase to permanently apply the desired outcome for this feature flag (e.g. enable, keep variant, or discard), by removing all conditional checks and dead branches, preserving only the correct code path.
|
||||
|
||||
After making the changes, provide a **Markdown summary** of what was changed, written for a developer reviewing the PR. Keep it clear, focused, and readable. Use the exact following format (including start & end separator lines, headings, bullets, emojis):
|
||||
|
||||
@ -196,9 +197,11 @@ jobs:
|
||||
=== AI Flag Cleanup Summary End ===
|
||||
\`\`\`
|
||||
|
||||
|
||||
--- Issue Description ---
|
||||
${body}`;
|
||||
$ISSUE_BODY
|
||||
EOF
|
||||
|
||||
echo "prompt-file=cleanup_prompt.txt" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Write prompt
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user