Skip to content

Commit

Permalink
feat: treat category as a record
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev committed Nov 6, 2023
1 parent 96b4a3a commit cdcdfd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import _projects from './projects.json';

interface Projects{
urls: string[];
category?: { projectUrl: string}
category?: Record<string, string>
}

const projects = _projects as Projects;
Expand Down Expand Up @@ -255,7 +255,7 @@ function getDevpoolIssueLabels(
}

// if project category for the project is defined, add its category label
if (projects.category && projectUrl in projects.category) devpoolIssueLabels.push(projects.category.projectUrl);
if (projects.category && projectUrl in projects.category) devpoolIssueLabels.push(projects.category[projectUrl]);

return devpoolIssueLabels;
}
Expand Down

0 comments on commit cdcdfd0

Please sign in to comment.