Skip to content

Commit 4f6de88

Browse files
committed
fix: Refine job summary name generation logic for better clarity in reports
1 parent 312540e commit 4f6de88

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141125,7 +141125,7 @@ const run = async () => {
141125141125
(0,core.info)(`Fetched Copilot usage data for ${data.length} days (${data[0].day} to ${data[data.length - 1].day})`);
141126141126
if (input.jobSummary) {
141127141127
setJobSummaryTimeZone(input.timeZone);
141128-
const name = input.enterprise || input.organization || `${input.organization} / ${input.team}`;
141128+
const name = input.enterprise || (input.team && input.organization) ? `${input.organization} / ${input.team}` : input.organization;
141129141129
await createJobSummaryUsage(data, name).write();
141130141130
if (input.organization && !input.team) {
141131141131
(0,core.info)(`Fetching Copilot details for organization ${input.organization}`);

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/run.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/run.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const run = async (): Promise<void> => {
128128

129129
if (input.jobSummary) {
130130
setJobSummaryTimeZone(input.timeZone);
131-
const name = input.enterprise || input.organization || `${input.organization} / ${input.team}`;
131+
const name = input.enterprise || (input.team && input.organization) ? `${input.organization} / ${input.team}` : input.organization;
132132
await createJobSummaryUsage(data, name).write();
133133

134134
if (input.organization && !input.team) { // refuse to fetch organization seat info if looking for team usage

0 commit comments

Comments
 (0)