Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ COPY --from=builder /app/prisma ./prisma

# Create app directory structure and copy files
COPY api ./api
COPY compliance-checks ./compliance-checks
COPY commands ./commands
COPY compliance-checks ./compliance-checks
COPY handlers ./handlers
COPY prisma ./prisma
COPY public ./public
COPY scripts ./scripts
COPY utils ./utils
COPY commands ./commands

# Copy configuration files
COPY app.yml db.js main.js index.js ./
Expand Down
10 changes: 8 additions & 2 deletions bot/commands/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ export async function reRenderDashboard(context, owner, repository, issueBody) {
}),
]);

const license = !!licenseResponse?.license_id;
// Build license object that matches what renderIssues/applyLicenseTemplate expects
const license = {
status: !!licenseResponse?.contains_license,
content: licenseResponse?.license_content || "",
spdx_id: licenseResponse?.license_id || null,
path: "LICENSE",
};
const citation = !!metadataResponse?.contains_citation;
const codemeta = !!metadataResponse?.contains_codemeta;
const cwl = !!cwlResponse?.contains_cwl_files;
Expand All @@ -83,7 +89,7 @@ export async function reRenderDashboard(context, owner, repository, issueBody) {
content: readmeResponse?.readme_content,
};
const contributing = !!contributingResponse?.contains_contrib;
const cofc = !!cofcResponse?.contains_code;
const cofc = !!cofcResponse?.contains_cofc;

const cwlObject = {
contains_cwl_files: cwl,
Expand Down
Loading