Skip to content

gotoeveryone/notify-contributions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

177 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify Contributions

CI Status

Requirements

  • Golang 1.26.0
  • Slack Account (Optional)
  • Twitter Account (Optional)

Setup

$ go mod download

Run

$ cp .env.example .env # please edit values
$ DEBUG=1 go run src/cmd/main.go

Run with AWS SAM (scheduled Lambda)

$ sam build
$ sam deploy --guided

template.yaml では GitHub Actions と同じく毎日 15:00 UTC に実行するよう設定しています。

template.yaml は Secrets Manager を前提にしています。少なくとも以下のキーを持つ Secret を作成してください。

{
  "GITHUB_TOKEN": "xxx",
  "GITLAB_TOKEN": "xxx",
  "SLACK_WEBHOOK_URL": "xxx"
}

CI からは sam deploy 実行時に次のようにパラメータを渡します。

$ sam deploy \
  --parameter-overrides \
  AppSecretArn=$APP_SECRET_ARN \
  GithubUserName=$GITHUB_USER_NAME \
  GitlabUserId=$GITLAB_USER_ID

Code check and format

$ # Code check
$ go vet ./...
$ # Format
$ go fmt ./...

Test

$ go test ./...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors