Skip to content

Commit de259f4

Browse files
committed
Enhance GitHub issue template for verification failures with additional user input sections and context prompts
1 parent 79ce0c6 commit de259f4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

app/utils/githubIssue.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export function generateGitHubIssueUrl(
1414

1515
const title = `Verification Failed: ${jobData.error.customCode || 'Unknown Error'} - ${chainName} (${jobData.contract.chainId}) ${shortAddress}`;
1616

17-
const body = `## Verification Job Failed
17+
const body = `<!--- Please fill the section in the end of this issue and explain why you expect this job to not fail. If possible, please provide the JSON input you used. --->
18+
19+
## Verification Job Failed
1820
1921
**Job ID:** \`${jobData.verificationId}\`
2022
**Chain:** ${getChainName(chains, parseInt(jobData.contract.chainId))} (${jobData.contract.chainId})
@@ -40,6 +42,19 @@ ${jobData.error.errorData.compilerErrors.length > 3 ? `\n... and ${jobData.error
4042
${jobData.jobFinishTime ? `- **Job Finished:** ${new Date(jobData.jobFinishTime).toISOString()}` : ''}
4143
${jobData.compilationTime ? `- **Compilation Time:** ${jobData.compilationTime}ms` : ''}
4244
45+
### User Input and Expectation
46+
**Why do you expect this verification to succeed?**
47+
<!-- Please explain why you believe this verification should work -->
48+
49+
**Files Used:**
50+
<!-- Please upload the files you submitted for verification (source code, metadata, etc.) by dragging and dropping them here or sharing them via a link -->
51+
\`\`\`
52+
<!-- Upload files directly to this issue -->
53+
\`\`\`
54+
55+
**Additional Context:**
56+
<!-- Any other relevant information -->
57+
4358
---
4459
*This issue was automatically generated from the Sourcify verification UI.*`;
4560

0 commit comments

Comments
 (0)