refine coding task to make it more simple

This commit is contained in:
Robin Olsen
2026-03-24 11:06:48 +01:00
parent 0b7bef37b9
commit a998a6bfd9

View File

@@ -13,17 +13,19 @@ import (
const codingDescription = `You are tasked with fixing a logical error in the code. const codingDescription = `You are tasked with fixing a logical error in the code.
Your task: Your task:
1. A text file will appear in the this directory: 1. A text file will appear in this directory(your desktop):
- Open it and follow the instructions inside. - Open it and follow the instructions inside.
- Save the file after you are done. - Save the file after you are done.
2. When you are done, mark this task as "Closed".` 2. Change status of the Issue "Fix major error" to Closed.`
const desc = `There is a major logical error in this code, you need to fix it.
Change the function logic so that it correctly adds two numbers together instead of subtracting them.`
var textFileDescription = ` var textFileDescription = `
# Instructions for the coding task # Instructions for the coding task
There is a major logical error in this code, you need to fix it. ` + desc + `
Change the function logic so that it correctly adds two numbers together instead of subtracting them.
############################################################` ############################################################`
var code = ` var code = `
@@ -89,7 +91,7 @@ func (t *CodingTask) Setup(ctx context.Context) error {
t.issue = NewIssueBuilder(). t.issue = NewIssueBuilder().
WithTitle("Fix major error"). WithTitle("Fix major error").
WithDescription(codingDescription). WithDescription(desc).
WithStatus(models.StatusInProgress). WithStatus(models.StatusInProgress).
WithPriority(4). WithPriority(4).
Build() Build()