-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.ts
More file actions
52 lines (48 loc) · 1.93 KB
/
config.ts
File metadata and controls
52 lines (48 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Global configuration for GitHub organization and repositories
*/
import type { ProjectConfig } from "./lib/types";
/**
* Main configuration object for the project board.
* Customize the values below to fit your GitHub organization and preferences.
*/
export const config: ProjectConfig = {
organization: 'withstudiocms',
githubToken: process.env.GITHUB_TOKEN,
allowedRepositories: ['studiocms', 'cfetch', 'bots', 'docs', 'ui', 'expressive-code-twoslash', 'studiocms.dev'],
maxItemsPerPage: 100,
enableDiscussions: true,
excludedUsers: ['renovate[bot]'], // Add usernames to filter out (e.g., ['dependabot', 'renovate-bot', 'github-actions[bot]'])
defaultRepository: 'studiocms', // Optional: Set default selected repository
roadmapRepository: 'roadmap',
roadmapCategoryLabels: {
discussions: 'Stage 1: Proposals',
issues: 'Stage 2: Accepted Proposals',
pullRequests: 'Stage 3: RFC & Development'
},
openGraph: {
index: {
titleTemplate: `{{org}} Project Board`,
descriptionTemplate: `A project board for {{org}} GitHub issues, pull requests, and discussions.`
},
roadmap: {
titleTemplate: `{{org}} Project Roadmap`,
descriptionTemplate: `A roadmap for upcoming features and improvements. Stay tuned for what's next!`
}
},
// Sort repositories alphabetically (a-z)
repositorySort: (a, b) => a.localeCompare(b),
// Alternative sorting examples:
// Reverse alphabetical: (a, b) => b.localeCompare(a)
// Case-insensitive: (a, b) => a.toLowerCase().localeCompare(b.toLowerCase())
// Custom priority order:
// repositorySort: (a, b) => {
// const priority = ['studiocms', 'docs', 'ui'];
// const aIndex = priority.indexOf(a);
// const bIndex = priority.indexOf(b);
// if (aIndex !== -1 && bIndex !== -1) return aIndex - bIndex;
// if (aIndex !== -1) return -1;
// if (bIndex !== -1) return 1;
// return a.localeCompare(b);
// },
};