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: adding a delete event #1038

Merged
merged 21 commits into from
Jan 24, 2024
Merged

feat: adding a delete event #1038

merged 21 commits into from
Jan 24, 2024

Conversation

claire1618
Copy link
Contributor

@claire1618 claire1618 commented Jan 15, 2024

Similar to the pull_request and push events, it would be beneficial if Vela could recognize the delete event. So the users would have the option to have Vela set off builds when a branch or tag are deleted in their repo.

The code added here takes the new changes I made in the types repo and takes in a delete webhook event to trigger a build.

@claire1618 claire1618 requested a review from a team as a code owner January 15, 2024 21:15
api/repo/create.go Outdated Show resolved Hide resolved
scm/github/webhook.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (dbe8bce) 67.16% compared to head (5a55c01) 67.30%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1038      +/-   ##
==========================================
+ Coverage   67.16%   67.30%   +0.14%     
==========================================
  Files         330      330              
  Lines       14091    14118      +27     
==========================================
+ Hits         9464     9502      +38     
+ Misses       4148     4139       -9     
+ Partials      479      477       -2     
Files Coverage Δ
scm/github/webhook.go 89.82% <100.00%> (+3.64%) ⬆️
api/build/list_org.go 0.00% <0.00%> (ø)
api/build/list_repo.go 0.00% <0.00%> (ø)

@claire1618 claire1618 closed this Jan 15, 2024
@claire1618 claire1618 reopened this Jan 16, 2024
@claire1618 claire1618 marked this pull request as draft January 16, 2024 21:51
@claire1618 claire1618 marked this pull request as ready for review January 18, 2024 17:49
@claire1618 claire1618 changed the title Feat: adding a delete event feat(allow_delete): adding a delete event Jan 18, 2024
@claire1618 claire1618 changed the title feat(allow_delete): adding a delete event feat: adding a delete event Jan 18, 2024
go.mod Outdated Show resolved Hide resolved
scm/github/webhook.go Outdated Show resolved Hide resolved
scm/github/webhook.go Outdated Show resolved Hide resolved
scm/github/webhook.go Show resolved Hide resolved
Copy link
Contributor

@ecrupper ecrupper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things... good work

scm/github/testdata/hooks/delete_tag.json Outdated Show resolved Hide resolved
scm/github/webhook.go Outdated Show resolved Hide resolved
scm/github/webhook.go Outdated Show resolved Hide resolved
api/webhook/post.go Outdated Show resolved Hide resolved
scm/github/webhook.go Outdated Show resolved Hide resolved
scm/github/testdata/hooks/delete.json Outdated Show resolved Hide resolved
compiler/template/native/testdata/step/loop_map/want.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@ecrupper ecrupper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link
Contributor

@KellyMerrick KellyMerrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@claire1618 claire1618 merged commit 136cd54 into main Jan 24, 2024
14 of 16 checks passed
@claire1618 claire1618 deleted the enhance/deleteEvent branch January 24, 2024 16:41
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