mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
Status-API (#1332)
This commit is contained in:
committed by
Lunny Xiao
parent
52627032bc
commit
4bea219128
@@ -412,6 +412,13 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
})
|
||||
|
||||
}, mustAllowPulls, context.ReferencesGitRepo())
|
||||
m.Group("/statuses", func() {
|
||||
m.Combo("/:sha").Get(repo.GetCommitStatuses).Post(reqRepoWriter(), bind(api.CreateStatusOption{}), repo.NewCommitStatus)
|
||||
})
|
||||
m.Group("/commits/:ref", func() {
|
||||
m.Get("/status", repo.GetCombinedCommitStatus)
|
||||
m.Get("/statuses", repo.GetCommitStatuses)
|
||||
})
|
||||
}, repoAssignment())
|
||||
}, reqToken())
|
||||
|
||||
|
Reference in New Issue
Block a user