Skip to content

Commit

Permalink
🐛 fix: Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 8, 2023
1 parent d9a78d4 commit 573dbb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/autoSubmit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AutoSubmit {
this.gitCommit(filePath, agent, agentName);
consola.info('Commit to', `agent/${agentName}`);

await this.createPullRequest(agentName, [comment,`resolve #${this.issueNumber}`].join("\n"));
await this.createPullRequest(agentName, agent.meta.author, [comment,`resolve #${this.issueNumber}`, `[@${agent.meta.author}](${agent.meta.homepage})`].join("\n"));
consola.success('Create PR');
}

Expand Down Expand Up @@ -87,12 +87,12 @@ class AutoSubmit {
].join('\n');
}

async createPullRequest(agentName, body) {
async createPullRequest(agentName, author, body) {
const { owner, repo, octokit, issueNumber } = this;
const pr = await octokit.pulls.create({
owner: owner,
repo: repo,
title: `[AgentSubmit] ${agentName} (#${issueNumber})`,
title: `[AgentSubmit] ${agentName} @${author}`,
head: `agent/${agentName}`,
base: 'main',
body,
Expand Down

0 comments on commit 573dbb1

Please sign in to comment.