Title: Add GitHub App webhook delivery support by Copilot · Pull Request #3 · Haarolean/github-api · GitHub
Open Graph Title: Add GitHub App webhook delivery support by Copilot · Pull Request #3 · Haarolean/github-api
X Title: Add GitHub App webhook delivery support by Copilot · Pull Request #3 · Haarolean/github-api
Description: Description Implements GitHub App webhook delivery APIs per hub4j/github-api#1404. New classes: GHAppHookDelivery - Webhook delivery with redeliver() method GHAppHookDeliveryRequest - Request headers and payload GHAppHookDeliveryResponse - Response headers and payload New methods on GHApp: listDeliveries() - List deliveries for an app webhook getDelivery(long) - Get a delivery for an app webhook Usage: GHApp app = github.getApp(); // List all deliveries for (GHAppHookDelivery delivery : app.listDeliveries()) { System.out.println(delivery.getEvent() + " - " + delivery.getStatus()); } // Get specific delivery with full request/response details GHAppHookDelivery delivery = app.getDelivery(12345678); System.out.println(delivery.getRequest().getPayload()); // Redeliver delivery.redeliver(); Before submitting a PR: Changes must not break binary backwards compatibility. If you are unclear on how to make the change you think is needed while maintaining backward compatibility, CONTRIBUTING.md for details. Add JavaDocs and other comments explaining the behavior. When adding or updating methods that fetch entities, add @link JavaDoc entries to the relevant documentation on https://docs.github.com/en/rest . Add tests that cover any added or changed code. This generally requires capturing snapshot test data. See CONTRIBUTING.md for details. Run mvn -D enable-ci clean install site "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED" locally. If this command doesn't succeed, your change will not pass CI. Push your changes to a branch other than main. You will create your PR from that branch. When creating a PR: Fill in the "Description" above with clear summary of the changes. This includes: If this PR fixes one or more issues, include "Fixes #" lines for each issue. Provide links to relevant documentation on https://docs.github.com/en/rest where possible. If not including links, explain why not. All lines of new code should be covered by tests as reported by code coverage. Any lines that are not covered must have PR comments explaining why they cannot be covered. For example, "Reaching this particular exception is hard and is not a particular common scenario." Enable "Allow edits from maintainers". Warning Firewall rules blocked me from connecting to one or more addresses (expand for details) I tried to connect to the following addresses, but was blocked by firewall rules: jitpack.io Triggering command: /usr/bin/curl curl -s REDACTED (dns block) repo.jenkins-ci.org Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/github-api/github-api org.codehaus.plexus.classworlds.launcher.Launcher compile -q -DskipTests (dns block) Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/github-api/github-api org.codehaus.plexus.classworlds.launcher.Launcher dependency:resolve -DexcludeGroupIds=com.infradna.tool (dns block) Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/github-api/github-api org.codehaus.plexus.classworlds.launcher.Launcher compile -q -DskipTests -Prepo.jenkins-ci.org=REDACTED (dns block) repository.sonatype.org Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/github-api/github-api org.codehaus.plexus.classworlds.launcher.Launcher compile -q -DskipTests (dns block) If you need me to access, download, or install something from one of these locations, you can either: Configure Actions setup steps to set up my environment, which run before the firewall is enabled Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only) Original prompt implement this: hub4j#1404 ✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Open Graph Description: Description Implements GitHub App webhook delivery APIs per hub4j/github-api#1404. New classes: GHAppHookDelivery - Webhook delivery with redeliver() method GHAppHookDeliveryRequest - Request head...
X Description: Description Implements GitHub App webhook delivery APIs per hub4j/github-api#1404. New classes: GHAppHookDelivery - Webhook delivery with redeliver() method GHAppHookDeliveryRequest - Request head...
Opengraph URL: https://github.com/Haarolean/github-api/pull/3
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:470104ad-6476-4306-240e-5db6b1d35140 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BA22:F4C68:1693970:1D344D5:697F988F |
| html-safe-nonce | 91f975414b03289ea8104500a771623eb64e1ef60836bcdb7799d1ea32e059af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTIyOkY0QzY4OjE2OTM5NzA6MUQzNDRENTo2OTdGOTg4RiIsInZpc2l0b3JfaWQiOiIzMzQ2NDA0NzU5NjcyOTc2NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70de0e22f89756a5e36aa7f2cabb51e2a7ddc8a41749e17f4fbe29410f750b93 |
| hovercard-subject-tag | pull_request:3094693478 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Haarolean/github-api/pull/3/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Description Implements GitHub App webhook delivery APIs per hub4j/github-api#1404. New classes: GHAppHookDelivery - Webhook delivery with redeliver() method GHAppHookDeliveryRequest - Request head... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Haarolean/github-api git https://github.com/Haarolean/github-api.git |
| octolytics-dimension-user_id | 1494347 |
| octolytics-dimension-user_login | Haarolean |
| octolytics-dimension-repository_id | 633253194 |
| octolytics-dimension-repository_nwo | Haarolean/github-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 617210 |
| octolytics-dimension-repository_parent_nwo | hub4j/github-api |
| octolytics-dimension-repository_network_root_id | 617210 |
| octolytics-dimension-repository_network_root_nwo | hub4j/github-api |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width