Skip to content

Commit 078c03a

Browse files
committed
feedback
1 parent 2391040 commit 078c03a

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

modules/dynamic-plugins/proc-configuring-events-module-for-github.adoc

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,12 @@ For more information about the support scope of Red Hat Developer Preview featur
1616
====
1717

1818
.Prerequisites
19-
* For GitHub Discovery only: you have enabled {product-docs-link}/html-single/integrating_red_hat_developer_hub_with_github/index#enabling-github-repository-discovery[GitHub Discovery].
20-
* For GitHub Organizational Data only: you have enabled {product-docs-link}/html-single/authentication_in_red_hat_developer_hub/index#enabling-user-authentication-with-github [Github Authentication with user ingestion].
19+
* You have added your GitHub integration credentials in the `app-config.yaml` file.
20+
* You have defined the `schedule.frequency` in the `app-config.yaml` file as longer time period, such as 24 hours.
21+
* For GitHub Discovery only: You have enabled {product-docs-link}/html-single/integrating_red_hat_developer_hub_with_github/index#enabling-github-repository-discovery[GitHub Discovery].
22+
* For GitHub Organizational Data only: You have enabled {product-docs-link}/html-single/authentication_in_red_hat_developer_hub/index#enabling-user-authentication-with-github [Github Authentication with user ingestion].
2123

2224
.Procedure
23-
24-
. Add your GitHub integration credentials in the `app-config.yaml` file:
25-
+
26-
[source,yaml]
27-
----
28-
integrations:
29-
github:
30-
- host: github.com
31-
token: ${GITHUB_PAT_TOKEN}
32-
----
33-
. Create a GitHub webhook with the following specifications:
34-
** *For Github Discovery Events*: push, repository
35-
** *For Github Organizational Data Events*: organization,team and membership
36-
** *Content Type*: application/json
37-
** *Payload URL*: https://<your_instance_name>/api/events/http/github
38-
3925
. Add the GitHub Events Module to your `dynamic-plugins.yaml` configuration file:
4026
+
4127
[source,yaml]
@@ -48,7 +34,6 @@ plugins:
4834
- package: oci://redhat-developer/rhdh-plugin-export-overlays/backstage-plugin-events-backend-module-github:bs_1.42.5__0.4.3!backstage-plugin-events-backend-module-github
4935
disabled: false
5036
----
51-
5237
. Add the following HTTP events configuration to the `app-config.yaml` file:
5338
+
5439
[source,yaml]
@@ -58,17 +43,34 @@ events:
5843
github:
5944
webhookSecret: ${GITHUB_WEBHOOK_SECRET}
6045
----
46+
. Create a GitHub webhook with the following specifications:
47+
** *For Github Discovery Events*: push, repository
48+
** *For Github Organizational Data Events*: organization,team and membership
49+
** *Content Type*: application/json
50+
** *Payload URL*: https://<your_instance_name>/api/events/http/github
6151

6252
.Verification
63-
* Github Discovery:
53+
* Check the log for an entry that confirms that http endpoint was set up successfully to receive events from the GitHub webhook.
54+
+
55+
Example of a log of successfully set up http endpoint::
56+
+
57+
[source,code]
58+
----
59+
{"level":"\u001b[32minfo\u001b[39m","message":"Registered /api/events/http/github to receive events","plugin":"events","service":"backstage","timestamp":"2025-11-03 02:19:12"}
60+
----
61+
* For GitHub Discovery only:
6462
** Trigger a GitHub push event by adding,
6563
modifying or deleting the `catalog-info.yaml` file in the repository where you set up your webhook.
6664
A record of this event should appear in the pod logs of your {product-very-short} instance.
6765
+
6866
Example of a log with changes to `catalog-info.yaml` file::
67+
+
6968
[source,code]
7069
----
7170
{"level":"\u001b[32minfo\u001b[39m","message":"Processed Github push event: added 0 - removed 0 - modified 1","plugin":"catalog","service":"backstage","span_id":"47534b96c4afc654","target":"github-provider:providerId","timestamp":"2025-06-15 21:33:14","trace_flags":"01","trace_id":"ecc782deb86aed2027da0ae6b1999e5c"}
7271
----
7372

73+
* For GitHub Organizationl Data only:
74+
** Newly added users and teams appear in the {product-very-short} catalog.
75+
7476

0 commit comments

Comments
 (0)