Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(repo)!: support allow_events struct #1023

Merged
merged 8 commits into from
Dec 11, 2023
Merged

Conversation

ecrupper
Copy link
Contributor

Keeping all the legacy fields (AllowPush, AllowPull, AllowTag, AllowDeploy, AllowComment) in order to preserve data for now with the intent of dropping the columns in a later release.

Otherwise, all logic in the core path has been migrated to use the new AllowEvents struct in this PR. I also threw in the optional VELA_DEFAULT_REPO_EVENTS_MASK, which allows admins to further customize those default events if they so choose.

@ecrupper ecrupper requested a review from a team as a code owner December 11, 2023 03:30
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Merging #1023 (4c8ed98) into main (5fc317f) will decrease coverage by 0.10%.
The diff coverage is 68.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1023      +/-   ##
==========================================
- Coverage   67.89%   67.79%   -0.10%     
==========================================
  Files         318      318              
  Lines       13738    13754      +16     
==========================================
- Hits         9327     9325       -2     
- Misses       3944     3956      +12     
- Partials      467      473       +6     
Files Coverage Δ
database/repo/table.go 100.00% <ø> (ø)
router/middleware/default_repo_events.go 100.00% <100.00%> (ø)
scm/github/webhook.go 85.64% <100.00%> (+0.03%) ⬆️
scm/github/repo.go 73.01% <55.55%> (-3.56%) ⬇️

api/webhook/post.go Show resolved Hide resolved
api/repo/update.go Outdated Show resolved Hide resolved
api/repo/update.go Show resolved Hide resolved
@ecrupper ecrupper merged commit 6fcde86 into main Dec 11, 2023
13 of 15 checks passed
@ecrupper ecrupper deleted the feat/allow-events-support branch December 11, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants