mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-13 19:34:54 +00:00
Add workflow run link to external plugin intake comments (#1915)
* Add workflow run link to external plugin intake comments - Include a link to the GitHub Actions workflow run in intake comment - Helps users trace which action run generated the intake report - Works for both initial intake and re-run intake flows - Link appears at bottom of comment for all intake states (passed/failed/quality gates) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Address PR review feedback on intake comment formatting - Remove leading spaces from runLink construction to preserve markdown formatting - Remove unnecessary newline prefix before runLink in quality gates section - Move workflow run link to the very end of all comment types (after warnings) - For merged intake comments, append link as final element - Remove unused runId parameter from applyExternalPluginIntakeEvaluation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
result=$(node ./eng/external-plugin-intake.mjs "$GITHUB_EVENT_PATH")
|
||||
result=$(node ./eng/external-plugin-intake.mjs "$GITHUB_EVENT_PATH" "${{ github.run_id }}" "${{ github.repository_owner }}" "${{ github.event.repository.name }}")
|
||||
{
|
||||
echo 'result<<EOF'
|
||||
echo "$result"
|
||||
@@ -130,7 +130,7 @@ jobs:
|
||||
};
|
||||
}
|
||||
|
||||
finalResult = intake.applyQualityGateResult(baseResult, qualityResult);
|
||||
finalResult = intake.applyQualityGateResult(baseResult, qualityResult, context.runId, context.repo.owner, context.repo.repo);
|
||||
}
|
||||
|
||||
await intakeState.applyExternalPluginIntakeEvaluation({
|
||||
|
||||
@@ -102,7 +102,10 @@ jobs:
|
||||
|
||||
const baseResult = await intake.evaluateExternalPluginIssue({
|
||||
issue: currentIssue,
|
||||
token: process.env.GITHUB_TOKEN
|
||||
token: process.env.GITHUB_TOKEN,
|
||||
runId: context.runId,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo
|
||||
});
|
||||
|
||||
core.setOutput('should-run', 'true');
|
||||
@@ -173,7 +176,7 @@ jobs:
|
||||
};
|
||||
}
|
||||
|
||||
finalResult = intake.applyQualityGateResult(baseResult, qualityResult);
|
||||
finalResult = intake.applyQualityGateResult(baseResult, qualityResult, context.runId, context.repo.owner, context.repo.repo);
|
||||
}
|
||||
|
||||
await intakeState.applyExternalPluginIntakeEvaluation({
|
||||
|
||||
Reference in New Issue
Block a user