From d9ce9e4aae602ac4cc7cdecb96fd251640336a41 Mon Sep 17 00:00:00 2001 From: nocode Date: Sun, 13 Sep 2026 12:19:12 +0200 Subject: [PATCH] feat(gitea): add activity and release command skeleton Refs: #48 --- src/commands/gitea/gitea.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/commands/gitea/gitea.js diff --git a/src/commands/gitea/gitea.js b/src/commands/gitea/gitea.js new file mode 100644 index 0000000..d41d20d --- /dev/null +++ b/src/commands/gitea/gitea.js @@ -0,0 +1,16 @@ +import { SlashCommandBuilder } from 'discord.js'; +import { ACCESS_LEVELS } from '../../config/constants.js'; +import { notImplementedEmbed } from '../../ui/embeds.js'; + +export const access = ACCESS_LEVELS.USER; + +export const data = new SlashCommandBuilder() + .setName('gitea') + .setDescription('Activité Gitea de FWS Arch') + .addSubcommand((sub) => sub.setName('activity').setDescription('Commits, issues et PR récents')) + .addSubcommand((sub) => sub.setName('release').setDescription('Releases disponibles')); + +// TODO(M5-T06 / M5-T07): implement with services/gitea/gitea-client.js. +export async function execute(interaction) { + await interaction.reply({ embeds: [notImplementedEmbed(`/gitea ${interaction.options.getSubcommand()}`)] }); +}