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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"type": "module",
"description": "",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"test": "NODE_ENV=test node --test test/*.test.js",
"typecheck": "tsc --noEmit -p jsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion src/deploy-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function deployCommands({ REST, Routes, SlashCommandBuilder }, log
.setDescription('Erstelle einen aussagekräftigen Titel für das Issue')
.setRequired(true))
.addStringOption(opt => opt.setName('beschreibung')
.setDescription('Beschreibe das Problem oder Feature ausführlich, beschriebe Schritte zum Reproduzieren.')
.setDescription('Beschreibe das Problem oder Feature ausführlich, beschreibe Schritte zum Reproduzieren.')
.setRequired(false))
.toJSON(),
];
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function handleIssueInteraction(interaction) {
if (interaction.commandName !== 'issue')
return;
const title = interaction.options.getString('titel');
const body = interaction.options.getString('beschreibung');
const body = interaction.options.getString('beschreibung') ?? '';
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
try {
const { data } = await axios.post(`https://api.github.com/repos/${process.env.GITHUB_REPO}/issues`, {
Expand Down