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: README.md
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,53 @@ from .env file, Otherwise app will not work locally.
79
79
80
80
## Installing the bot on a repository
81
81
82
-
You'll need to identify a target repository and install the bot by clicking the **Install** button on the settings page of your app, e.g `https://github.com/settings/apps/my-oppiabot-testing-app/installations`. In the `.env` file put your github account name in`WHITELISTED_ACCOUNTS` and also add your repository (name in small caps) in the `constants.js` file locally.
82
+
Example Scenario
83
+
84
+
Suppose you have a GitHub account with the username johndoe, and you want to install a bot on a repository named my-cool-project.
85
+
86
+
Step-by-Step Guide
87
+
1) Select and Install the Bot on Your Repository
88
+
89
+
a) Visit the settings page for your bot at https://github.com/settings/apps/your-bot-name/installations (replace your-bot-name with your bot's actual name).
90
+
b) Here, you’ll see an Install button next to each available repository.
91
+
c) Click on Install for your target repository. For example, if my-cool-project is the repository where you want to install the bot, click Install next to it.
92
+
93
+
2) Add Your Account to the .env File
94
+
95
+
a) Open the .env file in your project’s local directory. This file stores environment variables needed by your bot.
96
+
b) Add your GitHub account name (in this example, johndoe) to the WHITELISTED_ACCOUNTS entry. This allows the bot to recognize and interact with your account.
97
+
For example :- WHITELISTED_ACCOUNTS=johndoe
98
+
99
+
3) Specify Your Repository in constants.js
100
+
101
+
a) Open constants.js, which stores the bot’s configuration for each repository. Locate the checksWhitelist object, where each repository has its own configuration.
102
+
b) Add a new entry foryour repositoryin lowercase (e.g., my-cool-project). Define the specific events and checks the bot should monitor for this repository.
103
+
Here’s how you can add my-cool-project to checksWhitelist:
0 commit comments