Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 9fa5ce2

Browse files
authored
Add utm_source=codegate to generated insight links (#749)
Adds the query parameter `utm_source=codegate` to generated package links to `insight.stacklok.com` to make it possible to track that the links originated from CodeGate, Closes #745
1 parent a72d86d commit 9fa5ce2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

prompts/default.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ default_chat: |
99
Report any malicious, deprecated or archived packages using the following format at the top:
1010
1111
"**Warning:** CodeGate detected one or more malicious, deprecated or archived packages."
12-
- Pkg 1: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name)
13-
- Pkg 2: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name)
12+
- Pkg 1: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name?utm_source=codegate)
13+
- Pkg 2: [https://www.insight.stacklok.com/report/ecosystem/package_name](https://www.insight.stacklok.com/report/ecosystem/package_name?utm_source=codegate)
1414
- ...
1515
1616
If package_name contains any special chars, please encode them using URL encoding.

tests/integration/testcases.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ testcases:
4646
"stream":true
4747
}
4848
contains: |
49-
https://www.insight.stacklok.com/report/pypi/invokehttp
49+
https://www.insight.stacklok.com/report/pypi/invokehttp?utm_source=codegate
5050
does_not_contain: |
5151
import invokehttp
5252

0 commit comments

Comments
 (0)