diff --git a/.gitignore b/.gitignore index b5b01a9..173222b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -conf.json -session_id +src/conf.json +src/session_id dist/ \ No newline at end of file diff --git a/.release-please/.release-please-manifast.json b/.release-please/.release-please-manifast.json new file mode 100644 index 0000000..f7febeb --- /dev/null +++ b/.release-please/.release-please-manifast.json @@ -0,0 +1,3 @@ +{ + "src": "0.1.10" +} \ No newline at end of file diff --git a/.release-please/release-please-config.json b/.release-please/release-please-config.json new file mode 100644 index 0000000..7e981fc --- /dev/null +++ b/.release-please/release-please-config.json @@ -0,0 +1,10 @@ +{ + "release-type": "simple", + "pull-request-title-pattern": "chore${scope}: 🔖 release${component} ${version}", + "separate-pull-requests": true, + "packages": { + "src": { + "package-name": "kook-go" + } + } +} \ No newline at end of file diff --git a/.goreleaser.yml b/src/.goreleaser.yml similarity index 97% rename from .goreleaser.yml rename to src/.goreleaser.yml index 213cd27..25c2f19 100644 --- a/.goreleaser.yml +++ b/src/.goreleaser.yml @@ -7,7 +7,7 @@ release: draft: true discussion_category_name: General builds: - - main: ./example/example.go + - main: example/example.go id: kook-go env: - CGO_ENABLED=0 diff --git a/common/config.go b/src/common/config.go similarity index 100% rename from common/config.go rename to src/common/config.go diff --git a/common/logrus.go b/src/common/logrus.go similarity index 100% rename from common/logrus.go rename to src/common/logrus.go diff --git a/common/url_consts.go b/src/common/url_consts.go similarity index 100% rename from common/url_consts.go rename to src/common/url_consts.go diff --git a/core/action/action_test.go b/src/core/action/action_test.go similarity index 100% rename from core/action/action_test.go rename to src/core/action/action_test.go diff --git a/core/action/base.go b/src/core/action/base.go similarity index 100% rename from core/action/base.go rename to src/core/action/base.go diff --git a/core/action/channel.go b/src/core/action/channel.go similarity index 100% rename from core/action/channel.go rename to src/core/action/channel.go diff --git a/core/action/guild.go b/src/core/action/guild.go similarity index 100% rename from core/action/guild.go rename to src/core/action/guild.go diff --git a/core/action/message.go b/src/core/action/message.go similarity index 100% rename from core/action/message.go rename to src/core/action/message.go diff --git a/core/event/handler.go b/src/core/event/handler.go similarity index 100% rename from core/event/handler.go rename to src/core/event/handler.go diff --git a/core/event/manager.go b/src/core/event/manager.go similarity index 100% rename from core/event/manager.go rename to src/core/event/manager.go diff --git a/core/event/queue.go b/src/core/event/queue.go similarity index 100% rename from core/event/queue.go rename to src/core/event/queue.go diff --git a/core/helper/fun_helper.go b/src/core/helper/fun_helper.go similarity index 100% rename from core/helper/fun_helper.go rename to src/core/helper/fun_helper.go diff --git a/core/helper/http_helper.go b/src/core/helper/http_helper.go similarity index 100% rename from core/helper/http_helper.go rename to src/core/helper/http_helper.go diff --git a/core/helper/session_helper.go b/src/core/helper/session_helper.go similarity index 100% rename from core/helper/session_helper.go rename to src/core/helper/session_helper.go diff --git a/core/model/base.go b/src/core/model/base.go similarity index 100% rename from core/model/base.go rename to src/core/model/base.go diff --git a/core/model/dto.go b/src/core/model/dto.go similarity index 100% rename from core/model/dto.go rename to src/core/model/dto.go diff --git a/core/model/event.go b/src/core/model/event.go similarity index 100% rename from core/model/event.go rename to src/core/model/event.go diff --git a/core/model/pack.go b/src/core/model/pack.go similarity index 100% rename from core/model/pack.go rename to src/core/model/pack.go diff --git a/core/model/signal.go b/src/core/model/signal.go similarity index 100% rename from core/model/signal.go rename to src/core/model/signal.go diff --git a/core/model/user.go b/src/core/model/user.go similarity index 100% rename from core/model/user.go rename to src/core/model/user.go diff --git a/core/session/handler.go b/src/core/session/handler.go similarity index 100% rename from core/session/handler.go rename to src/core/session/handler.go diff --git a/core/session/session.go b/src/core/session/session.go similarity index 100% rename from core/session/session.go rename to src/core/session/session.go diff --git a/core/session/session_handle.go b/src/core/session/session_handle.go similarity index 100% rename from core/session/session_handle.go rename to src/core/session/session_handle.go diff --git a/core/session/state.go b/src/core/session/state.go similarity index 100% rename from core/session/state.go rename to src/core/session/state.go diff --git a/example/example.go b/src/example/example.go similarity index 100% rename from example/example.go rename to src/example/example.go diff --git a/go.mod b/src/go.mod similarity index 100% rename from go.mod rename to src/go.mod diff --git a/go.sum b/src/go.sum similarity index 100% rename from go.sum rename to src/go.sum