Fixed Git links

This commit is contained in:
Eduard Urbach 2024-03-12 12:40:01 +01:00
parent bd5360c79b
commit 8a90743416
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
9 changed files with 10 additions and 112 deletions

View File

@ -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

View File

@ -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

2
.github/FUNDING.yml vendored
View File

@ -1,2 +0,0 @@
github: akyoto
patreon: eduardurbach

View File

@ -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

21
LICENSE
View File

@ -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.

View File

@ -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

View File

@ -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.

View File

@ -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())

View File

@ -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?