Skip to content

Commit 24391fe

Browse files
GitHub Reference feature is in wrong package #1019 (#1040)
* GitHub Reference feature wrong package #1019 * GitHub Command wrong package also indentation fix #1019 --------- Co-authored-by: Tanish Azad <tanishazad03@gmail.com>
1 parent b0d77ae commit 24391fe

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

application/src/main/java/org/togetherjava/tjbot/features/Features.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import net.dv8tion.jda.api.JDA;
44

5-
import org.togetherjava.tjbot.commands.github.GitHubCommand;
6-
import org.togetherjava.tjbot.commands.github.GitHubReference;
75
import org.togetherjava.tjbot.config.Config;
86
import org.togetherjava.tjbot.config.FeatureBlacklist;
97
import org.togetherjava.tjbot.config.FeatureBlacklistConfig;
@@ -23,6 +21,8 @@
2321
import org.togetherjava.tjbot.features.code.CodeMessageHandler;
2422
import org.togetherjava.tjbot.features.code.CodeMessageManualDetection;
2523
import org.togetherjava.tjbot.features.filesharing.FileSharingMessageListener;
24+
import org.togetherjava.tjbot.features.github.GitHubCommand;
25+
import org.togetherjava.tjbot.features.github.GitHubReference;
2626
import org.togetherjava.tjbot.features.help.*;
2727
import org.togetherjava.tjbot.features.jshell.JShellCommand;
2828
import org.togetherjava.tjbot.features.jshell.JShellEval;

application/src/main/java/org/togetherjava/tjbot/commands/github/GitHubCommand.java renamed to application/src/main/java/org/togetherjava/tjbot/features/github/GitHubCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.togetherjava.tjbot.commands.github;
1+
package org.togetherjava.tjbot.features.github;
22

33
import net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent;
44
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;

application/src/main/java/org/togetherjava/tjbot/commands/github/GitHubReference.java renamed to application/src/main/java/org/togetherjava/tjbot/features/github/GitHubReference.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.togetherjava.tjbot.commands.github;
1+
package org.togetherjava.tjbot.features.github;
22

33
import net.dv8tion.jda.api.EmbedBuilder;
44
import net.dv8tion.jda.api.entities.Message;
@@ -35,8 +35,8 @@
3535
* the bot replies with an embed that contains info on the issue/PR.
3636
*/
3737
public final class GitHubReference extends MessageReceiverAdapter {
38-
static final String ID_GROUP = "id";
3938
private static final Logger logger = LoggerFactory.getLogger(GitHubReference.class);
39+
static final String ID_GROUP = "id";
4040

4141
/**
4242
* The pattern(#123) used to determine whether a message is referencing an issue.

application/src/main/java/org/togetherjava/tjbot/commands/github/package-info.java renamed to application/src/main/java/org/togetherjava/tjbot/features/github/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
@MethodsReturnNonnullByDefault
55
@ParametersAreNonnullByDefault
6-
package org.togetherjava.tjbot.commands.github;
6+
package org.togetherjava.tjbot.features.github;
77

88
import org.togetherjava.tjbot.annotations.MethodsReturnNonnullByDefault;
99

0 commit comments

Comments
 (0)