server
server copied to clipboard
enhance(scm/webhook): handle default branch change and archived repo
Closes https://github.com/go-vela/community/issues/325
Closes https://github.com/go-vela/community/issues/659
Building off the work done in https://github.com/go-vela/server/pull/556, using repository events can help maintain parity between GitHub repos and their Vela equivalent.
Codecov Report
Merging #706 (af8988b) into main (9aa91f7) will decrease coverage by
0.13%. The diff coverage is1.92%.
@@ Coverage Diff @@
## main #706 +/- ##
==========================================
- Coverage 54.79% 54.66% -0.14%
==========================================
Files 216 216
Lines 16046 16086 +40
==========================================
+ Hits 8793 8794 +1
- Misses 6869 6908 +39
Partials 384 384
| Impacted Files | Coverage Δ | |
|---|---|---|
| api/webhook.go | 0.00% <0.00%> (ø) |
|
| scm/github/webhook.go | 86.10% <100.00%> (+0.03%) |
:arrow_up: |