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: remodling EventDelete to resemble EventTag #348

Merged
merged 10 commits into from
Jan 22, 2024
Merged

Conversation

claire1618
Copy link
Contributor

Every time a tag or branch are deleted in GitHub, both a delete and push webhook are sent out. Previously I used the delete webhook and had EventDelete modeled off of EventPush, EventPR, EventDeploy, and EventComment in how they are their own event not related to the others. However, the push webhook that is sent out with the delete webhook contains more relevant information that can solve some of the issues that were found with only having the delete webhook data (such as missing a commit and not being able to properly set the BUILD_TAG environment variable).

Therefore, EventDelete has been lumped in with push events, in the same way that EventTag has been.

@claire1618 claire1618 requested a review from a team as a code owner January 19, 2024 17:20
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

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

Comparison is base (8a6ef2d) 96.58% compared to head (eca89f1) 96.45%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
- Coverage   96.58%   96.45%   -0.13%     
==========================================
  Files          70       69       -1     
  Lines        7494     7476      -18     
==========================================
- Hits         7238     7211      -27     
- Misses        185      193       +8     
- Partials       71       72       +1     
Files Coverage Δ
library/actions/comment.go 92.30% <ø> (ø)
library/actions/deploy.go 100.00% <ø> (ø)
library/actions/pull.go 95.77% <ø> (ø)
library/actions/push.go 100.00% <100.00%> (ø)
library/actions/schedule.go 100.00% <ø> (ø)
library/events.go 100.00% <100.00%> (ø)
webhook.go 100.00% <ø> (ø)
library/build.go 98.55% <0.00%> (-1.45%) ⬇️

library/actions/push.go Outdated Show resolved Hide resolved
library/actions/push.go Outdated Show resolved Hide resolved
library/actions/push.go Outdated Show resolved Hide resolved
Copy link
Member

@wass3rw3rk wass3rw3rk left a comment

Choose a reason for hiding this comment

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

sorry, i missed these in the first go

library/actions/push.go Outdated Show resolved Hide resolved
library/actions/push.go Outdated Show resolved Hide resolved
Copy link
Member

@wass3rw3rk wass3rw3rk left a comment

Choose a reason for hiding this comment

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

i think it's looking good; just one more request to provide more detail. see within.

library/build.go Outdated Show resolved Hide resolved
@claire1618 claire1618 merged commit d058de2 into main Jan 22, 2024
11 checks passed
@claire1618 claire1618 deleted the feat/deleteEvent3 branch January 22, 2024 17:57
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