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
8 changes: 8 additions & 0 deletions .github/scripts/generate-category.json-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,23 @@ async function main() {
const subfolderName = filePath.split('/').pop();
cleanApp.slug = `${owner}/${repo}/${subfolderName}`;

// Add shortened field names while keeping originals
cleanApp.n = cleanApp.name; // name -> n
cleanApp.d = cleanApp.description; // description -> d
cleanApp.v = cleanApp.version; // version -> v
cleanApp.s = cleanApp.slug; // slug -> s

// Include supported-devices if present (apps/scripts only, not themes)
const isTheme = app.category === 'Themes';
if (app['supported-devices'] && !isTheme) {
cleanApp['supported-devices'] = app['supported-devices'];
cleanApp['sd'] = app['supported-devices'];
}

// Include supported-screen-size if present (themes only)
if (app['supported-screen-size'] && isTheme) {
cleanApp['supported-screen-size'] = app['supported-screen-size'];
cleanApp['sss'] = app['supported-screen-size'];
}

return cleanApp;
Expand Down
7 changes: 7 additions & 0 deletions .github/scripts/validate-pull-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,19 @@ async function postPRComment(validationSuccess, individualAppDetails, summary, m
JSON.parse(fs.readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8')).number :
null);

console.log('Environment variables for PR comment:');
console.log(` GITHUB_TOKEN: ${token ? 'present' : 'missing'}`);
console.log(` GITHUB_REPOSITORY: ${repository}`);
console.log(` PR_NUMBER: ${issueNumber}`);
console.log(` GITHUB_EVENT_NAME: ${process.env.GITHUB_EVENT_NAME}`);

if (!token || !repository || !issueNumber) {
console.log('Missing required environment variables for PR comment');
return;
}

const [owner, repo] = repository.split('/');
console.log(`Attempting to post comment to ${owner}/${repo}#${issueNumber}`);

// Build individual app sections
let appDetailsSection = '';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (GIF)",
"slug-name": "GIF-240x135px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (GIF)",
"slug-name": "GIF-320x170px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (GIF)",
"slug-name": "GIF-320x240px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (GIF)",
"slug-name": "GIF-480x222px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (PNG)",
"slug-name": "PNG-240x135px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (PNG)",
"slug-name": "PNG-320x170px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (PNG)",
"slug-name": "PNG-320x240px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Bruce Theme (PNG)",
"slug-name": "PNG-480x222px",
"description": "A bold, glowing upgrade for your Bruce device with neon energy and shark power.",
"category": "Themes",
"version": "1.3.0",
Expand Down
Loading