Skip to content

Commit c4217f2

Browse files
committed
Feature: update project version to 0.2.4.1-SNAPSHOT, implement singleton pattern in MCSupport, and adjust work-jar.yml for branch permissions
1 parent 153b2a4 commit c4217f2

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/work-jar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- fix/mcs
67
permissions:
78
contents: write
89
pages: write

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'fr.sandro642.github'
8-
version = '0.2.4-STABLE'
8+
version = '0.2.4.1-SNAPSHOT'
99

1010
tasks.register('printVersion') {
1111
doLast {

src/main/java/fr/sandro642/github/hook/MCSupport.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public void resetPlugin() {
114114
* @return The singleton instance of MCSupport.
115115
*/
116116
public static MCSupport getInstance() {
117+
if (instance == null) {
118+
instance = new MCSupport();
119+
}
117120
return instance;
118121
}
119122
}

0 commit comments

Comments
 (0)