Skip to content

Commit

Permalink
Don't prefix feature_flag_called
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Jun 3, 2024
1 parent 7d5dbad commit c22367f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,12 @@ export abstract class DetSysAction {
}

recordEvent(eventName: string, context: Record<string, unknown> = {}): void {
const prefixedName =
eventName === "$feature_flag_called"
? eventName
: `${this.actionOptions.eventPrefix}${eventName}`;
this.events.push({
event_name: `${this.actionOptions.eventPrefix}${eventName}`,
event_name: prefixedName,
context,
correlation: this.identity,
facts: this.facts,
Expand Down Expand Up @@ -473,7 +477,7 @@ export abstract class DetSysAction {
if (summaries.length > 0) {
actionsCore.info(
// Bright red, Bold, Underline
`${"\u001b[38;2;255;0;0m"}${"\u001b[1m"}${"\u001b[4m"}${checkin.status.page.name} Status`,
`${"\u001b[0;31m"}${"\u001b[1m"}${"\u001b[4m"}${checkin.status.page.name} Status`,
);
for (const notice of summaries) {
actionsCore.info(notice);
Expand Down

0 comments on commit c22367f

Please sign in to comment.