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

Add delete webhook via id functionality. #1237

Merged
merged 2 commits into from
Sep 24, 2021
Merged

Conversation

bloslo
Copy link
Contributor

@bloslo bloslo commented Sep 22, 2021

Description

Add delete webhook via id functionality. Closes #1231

@codecov
Copy link

codecov bot commented Sep 22, 2021

Codecov Report

Merging #1237 (1e580da) into main (bcb71a3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1237      +/-   ##
============================================
+ Coverage     76.90%   76.92%   +0.02%     
- Complexity     1885     1887       +2     
============================================
  Files           188      188              
  Lines          5958     5964       +6     
  Branches        328      328              
============================================
+ Hits           4582     4588       +6     
  Misses         1176     1176              
  Partials        200      200              
Impacted Files Coverage Δ
src/main/java/org/kohsuke/github/GHHooks.java 81.39% <100.00%> (+0.90%) ⬆️
...c/main/java/org/kohsuke/github/GHOrganization.java 64.74% <100.00%> (+0.51%) ⬆️
src/main/java/org/kohsuke/github/GHRepository.java 67.96% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcb71a3...1e580da. Read the comment docs.

@@ -653,7 +653,7 @@ public void tryHook() throws Exception {
assertThat(hook2.getConfig().size(), equalTo(3));
assertThat(hook2.isActive(), equalTo(true));
hook2.ping();
hook2.delete();
Copy link
Member

Choose a reason for hiding this comment

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

We still need to test both pathways of hook2.delete().

@bitwiseman
Copy link
Member

@bloslo
I went ahead and updated to test the new method without removing tests for the existing methods.

@bitwiseman bitwiseman merged commit dae92fc into hub4j:main Sep 24, 2021
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.

Feature request - Delete webhook via id
2 participants