mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 18:33:15 +00:00
feat: Add auth access callout in open swe app url comment
This commit is contained in:
parent
bc1549032f
commit
4e52be54f8
1 changed files with 4 additions and 1 deletions
|
|
@ -151,13 +151,16 @@ webhooks.on("issues.labeled", async ({ payload }) => {
|
|||
|
||||
logger.info("Creating comment...");
|
||||
const appUrl = getOpenSweAppUrl(threadId);
|
||||
const appUrlCommentText = appUrl
|
||||
? `View run in Open SWE [here](${appUrl}) (this URL will only work for @${issueData.userLogin})`
|
||||
: "";
|
||||
await octokit.request(
|
||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
||||
{
|
||||
owner: issueData.owner,
|
||||
repo: issueData.repo,
|
||||
issue_number: issueData.issueNumber,
|
||||
body: `🤖 Open SWE has been triggered for this issue. Processing...\n\n${appUrl ? `View run in Open SWE [here](${appUrl})` : ""}`,
|
||||
body: `🤖 Open SWE has been triggered for this issue. Processing...\n\n${appUrlCommentText}`,
|
||||
},
|
||||
);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue