2023-01-04 02:38:07 +01:00
|
|
|
import define from '../define.js';
|
|
|
|
|
|
|
|
export const meta = {
|
|
|
|
tags: ['meta'],
|
|
|
|
description: 'Get release notes from Codeberg',
|
|
|
|
|
|
|
|
requireCredential: false,
|
|
|
|
requireCredentialPrivateMode: false,
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const paramDef = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {},
|
|
|
|
required: [],
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
|
|
export default define(meta, paramDef, async () => {
|
2023-01-04 02:43:12 +01:00
|
|
|
let release;
|
|
|
|
|
2023-01-04 02:38:07 +01:00
|
|
|
await fetch('https://codeberg.org/calckey/calckey/raw/branch/develop/release.json')
|
|
|
|
.then((response) => response.json())
|
|
|
|
.then((data) => {
|
2023-01-04 02:43:12 +01:00
|
|
|
release = data;
|
2023-01-04 02:38:07 +01:00
|
|
|
});
|
2023-01-04 02:43:12 +01:00
|
|
|
return release;
|
2023-01-04 02:38:07 +01:00
|
|
|
});
|