Skip to content

Commit

Permalink
feat(backend): support automatic bumps for packages depending on Arch…
Browse files Browse the repository at this point in the history
… pkg
  • Loading branch information
dr460nf1r3 committed Nov 4, 2024
1 parent 5d9704c commit 950e10b
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 108 deletions.
3 changes: 3 additions & 0 deletions backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import { TelegramModule } from "./telegram/telegram.module";
BuilderModule,
ConfigModule.forRoot({ envFilePath: ".env", isGlobal: true, load: [appConfig] }),
LoggerModule.forRoot({
pinoHttp: {
level: process.env.LOG_LEVEL || "info",
},
// By default, off, but can be enabled by setting HTTP_LOGGING=true
forRoutes: process.env.HTTP_LOGGING === "true" ? undefined : [],
}),
Expand Down
1 change: 1 addition & 0 deletions backend/src/builder/builder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ export class BuilderDatabaseService extends Service {
lastUpdated: new Date().toISOString(),
});
}
Logger.log(`Removed ${pkgbase} from the database active records`, "BuilderDatabaseService");
}
} catch (err: unknown) {
Logger.error(err, "BuilderDatabaseService");
Expand Down
3 changes: 3 additions & 0 deletions backend/src/repo-manager/repo-manager.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export class ArchlinuxPackage {

@Column({ type: "varchar", nullable: true })
previousVersion: string;

@Column({ type: "jsonb", nullable: true })
metadata: string;
}

@Entity()
Expand Down
Loading

0 comments on commit 950e10b

Please sign in to comment.