ArunKumar-Wesley-Doddi/gh-app-org-install ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Node.js server that listens for GitHub Enterprise Server global webhooks and automatically installs one GitHub App into every brand new organization.

When GitHub sends an organization created event, the server should verify the webhook secret, log the new org name, then use my installer app credentials to install the target app into that org without any manual clicking. It should respond fast with 202 right away, then do the install in the background so GitHub does not time out.

Please make it easy to configure with a .env file for the webhook secret, the enterprise name, the installer app client ID, the installer app installation ID, the target app client ID, and the path to the installer private key. Include a simple README style setup flow and an example env file. If there are any current GitHub API details that might have changed, look up the latest docs online and use the right approach.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab