You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/developer-reference.adoc
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -419,6 +419,39 @@ public class MyGitHubCustomizer implements GitHubCustomizer {
419
419
}
420
420
----
421
421
422
+
This will apply the customizations to both the application clients and the installation clients.
423
+
424
+
However, some customizations can't be applied to the application clients such as configuring a rate limit checker.
425
+
You may customize the application clients differently by implementing `customizeApplicationClient(GitHubBuilder)`:
426
+
427
+
[source,java]
428
+
----
429
+
@Singleton
430
+
public class MyGitHubCustomizer implements GitHubCustomizer {
431
+
432
+
@Override
433
+
public void customize(GitHubBuilder builder) { <1>
434
+
// call methods of the builder
435
+
}
436
+
437
+
@Override
438
+
public void customizeApplicationClient(GitHubBuilder builder) { <2>
439
+
// call methods of the builder
440
+
}
441
+
}
442
+
----
443
+
<1> Customize the installation clients.
444
+
<2> Customize the application clients.
445
+
446
+
[NOTE]
447
+
.About application and installation clients
448
+
====
449
+
A GitHub App relies on two types of GitHub clients:
450
+
451
+
- The application client: it is authenticated as the application, it has very few permissions and is mostly used to create installation-specific tokens.
452
+
- The installation client: it is created specifically for an installation of the application (i.e. it is tied where the application is installed) and it is the client you consume in your GitHub App code. It has the permissions you defined for your GitHub App.
453
+
====
454
+
422
455
== Configuration Reference
423
456
424
457
The Quarkus GitHub App extension exposes the following configuration properties:
0 commit comments