mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
Status-API (#1332)
This commit is contained in:
parent
52627032bc
commit
4bea219128
8 changed files with 529 additions and 0 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue