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 repository dispatch event #1248

Merged
merged 4 commits into from
Oct 4, 2021

Conversation

mxandeco
Copy link
Contributor

Description

The changes here will expose the "create dispatch event" on the repository object, as describe on the github api:

https://docs.github.com/en/rest/reference/repos#create-a-repository-dispatch-event

The main usage of the api is to trigger an action or webhook from outside github, github has no apis to retrieve dispatches from a repo, and the ack we get from the api in case of success is a 204 status response.

Covers the issue #1246

@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #1248 (aefe8d3) into main (b92c060) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1248      +/-   ##
============================================
+ Coverage     77.42%   77.45%   +0.02%     
- Complexity     1899     1900       +1     
============================================
  Files           189      189              
  Lines          5972     5979       +7     
  Branches        327      327              
============================================
+ Hits           4624     4631       +7     
  Misses         1150     1150              
  Partials        198      198              
Impacted Files Coverage Δ
src/main/java/org/kohsuke/github/GHRepository.java 68.42% <100.00%> (+0.34%) ⬆️

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 b92c060...aefe8d3. Read the comment docs.

@bitwiseman bitwiseman merged commit 8f3a100 into hub4j:main Oct 4, 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.

2 participants