kube-tarian / git-bridge

Documentation of an exported function should start with the function’s name GO-D5001
Documentation
Minor
10 months ago10 months old
comment on exported method PostGithub should be of the form "PostGithub ..."
27	app.conn.Publish(jsonData, repo)
28}
29
30// githubHandler handles the github webhooks post requests.31func (app *Application) PostGithub(c *gin.Context) {
32	repo := "Github"
33	jsonData, err := c.GetRawData()
comment on exported method PostGitlab should be of the form "PostGitlab ..."
37	app.conn.Publish(jsonData, repo)
38}
39
40// gitlabHandler handles the github webhooks post requests.41func (app *Application) PostGitlab(c *gin.Context) {
42	repo := "Gitlab"
43	jsonData, err := c.GetRawData()
comment on exported method PostBitbucket should be of the form "PostBitbucket ..."
47	app.conn.Publish(jsonData, repo)
48}
49
50// bitBucketHandler handles the github webhooks post requests.51func (app *Application) PostBitbucket(c *gin.Context) {
52	repo := "BitBucket"
53	jsonData, err := c.GetRawData()