在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:MartinHeinz/go-github-app开源软件地址:https://github.com/MartinHeinz/go-github-app开源编程语言:Go 53.9%开源软件介绍:Template for GitHub Apps built with GolangBlog Posts - More Information About This RepoYou can find more information about this project/repository and how to use it in following blog post: Building GitHub Apps with Golang Quick StartTo use this repository as starter for your project you can run configure_project.sh script, which sets up all variables and file names. This way you can avoid configuring and renaming things yourself: ./configure_project.sh \
APP_ID="54321" \
INSTALLATION_ID="987654321" \
WEBHOOK_SECRET="verysecret" \
KEY_PATH="./github_key.pem" \
REGISTRY="ghcr.io/<GITHUB_USERNAME>/go-github-app" Runningmake container # Builds containerized application
make run # Runs container at localhost
# From another terminal:
curl http://localhost:8080/api/v1/github/pullrequests/octocat/hello-world TestingTest are run inside container image, equivalent to the container in which the application runs. To run tests: make test
Running tests:
? github.com/MartinHeinz/go-github-app/cmd/app [no test files]
ok github.com/MartinHeinz/go-github-app/cmd/app/apis 0.010s
? github.com/MartinHeinz/go-github-app/cmd/app/config [no test files]
? github.com/MartinHeinz/go-github-app/cmd/app/httputil [no test files]
? github.com/MartinHeinz/go-github-app/cmd/app/test_data [no test files]
? github.com/MartinHeinz/go-github-app/cmd/app/utils [no test files]
ok github.com/MartinHeinz/go-github-app/cmd/app/webhooks 0.006s
? github.com/MartinHeinz/go-github-app/pkg [no test files]
Checking gofmt: PASS
Checking go vet: PASS CI/CDPredefined CI/CD uses GitHub Actions:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论