diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index c3a3bc15..00000000 --- a/.drone.yml +++ /dev/null @@ -1,30 +0,0 @@ -kind: pipeline -name: default - -steps: -- name: test - image: golang - environment: - CGO_ENABLED: 0 - ARN_ROOT: /drone/src - commands: - - apt-get update - - apt-get -y install nodejs npm make - - npm install -g typescript - - go version - - go mod download - - make tools - - make assets - - make server - - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0 - - golangci-lint run - - make db - - go test -v -coverprofile=coverage.txt . - -- name: coverage - image: plugins/codecov - settings: - token: - from_secret: codecov-token - files: - - coverage.txt diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 27e412ea..00000000 --- a/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 4 -indent_style = tab -insert_final_newline = true -trim_trailing_whitespace = true - -[*.pixy] -trim_trailing_whitespace = false - -[*.yml] -indent_style = space diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 67a7c131..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: akyoto -patreon: eduardurbach \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index d85cac81..00000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,21 +0,0 @@ -## 📢 Type of change - -* [ ] Bugfix -* [ ] New feature -* [ ] Enhancement -* [ ] Refactoring - -## 📜 Description - -## 💡 Motivation and Context - -## 💚 How did you test it? - -## 📝 Checklist - -* [ ] I compiled before submitting the PR -* [ ] I reviewed the submitted code - -## 🔮 Next steps - -## 📸 Screenshots / GIFs diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 40bf372a..00000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Eduard Urbach - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 7746d53e..9790b5f7 100644 --- a/README.md +++ b/README.md @@ -32,26 +32,13 @@ make db * Import the file `security/default/root.crt` as a trusted Root authority * Open `https://beta.notify.moe` -## What now? +## License -* Try the [example task for newcomers](docs/new-contributor-task.md). -* Make some changes and upload them to a new branch on your fork. -* Create a pull request on this repository. +Please see the [license documentation](https://akyoto.dev/license). -## Contributing +## Copyright -Please read [CONTRIBUTING.md](docs/contributing.md) for details on how to contribute to this project. - -## Statistics - -![Uptime (30 days)](https://img.shields.io/uptimerobot/ratio/m777678498-177cb6b2990056768877bc2a.svg) -![Mozilla Observatory](https://img.shields.io/mozilla-observatory/grade/notify.moe.svg?publish) -![Chrome Extension](https://img.shields.io/chrome-web-store/users/hajchfikckiofgilinkpifobdbiajfch.svg?label=chrome%20users) -![Firefox Extension](https://img.shields.io/amo/users/anime-notifier.svg?label=firefox%20users) - -## Style - -Please take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request. +© 2016 Eduard Urbach [godoc-image]: https://godoc.org/github.com/animenotifier/notify.moe?status.svg [godoc-url]: https://godoc.org/github.com/animenotifier/notify.moe diff --git a/arn/autodocs/Type.go b/arn/autodocs/Type.go index d4bea7de..305e903b 100644 --- a/arn/autodocs/Type.go +++ b/arn/autodocs/Type.go @@ -19,9 +19,9 @@ func (typ *Type) Endpoint() string { return "/api/" + strings.ToLower(typ.Name) } -// GitHubLink returns link to display the type in GitHub. -func (typ *Type) GitHubLink() string { - return fmt.Sprintf("https://git.akyoto.dev/web/notify.moe/blob/go/arn/%s.go#L%d", typ.Name, typ.LineNumber) +// GitLink returns link to display the type in Git. +func (typ *Type) GitLink() string { + return fmt.Sprintf("https://git.akyoto.dev/web/notify.moe/src/branch/main/arn/%s.go#L%d", typ.Name, typ.LineNumber) } // GetTypeDocumentation tries to gather documentation about the given type. diff --git a/bots/discord/commands/Source.go b/bots/discord/commands/Source.go index 2b9ffd54..b340e9f1 100644 --- a/bots/discord/commands/Source.go +++ b/bots/discord/commands/Source.go @@ -11,7 +11,7 @@ func Source(s *discordgo.Session, msg *discordgo.MessageCreate) bool { return false } - _, err := s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" B-baaaaaaaka! Y..you...you want to...TOUCH MY CODE?!\n\nhttps://git.akyoto.dev/web/notify.moe/tree/go/bots/discord") + _, err := s.ChannelMessageSend(msg.ChannelID, msg.Author.Mention()+" B-baaaaaaaka! Y..you...you want to...TOUCH MY CODE?!\n\nhttps://git.akyoto.dev/web/notify.moe/src/branch/main/bots/discord") if err != nil { color.Red(err.Error()) diff --git a/docs/contributing.md b/docs/contributing.md index 101c204a..78bd06d8 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -5,8 +5,8 @@ You do not need to be a developer to contribute. There are multiple ways to help our project: - [Database Editing](https://notify.moe/users/editors) -- [Donations](https://github.com/users/akyoto/sponsorship) -- [Pull Requests](https://git.akyoto.dev/web/notify.moe/pulls) +- [Donations](https://ko-fi.com/akyoto) +- [Pull Requests](https://git.akyoto.dev/pulls) ## How do I make a proper pull request?