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
Hello developers! I am new with using probot and my experience till now is great, but I am facing problems with something,
So I am trying to read the contents of the github repo, to be more specific the .md files in .github directory of some repository,
For this I am using context.github.repos.getContents() with the path
/home/ayush/Desktop/Dev/badging-bot-test/src/postWelcome.js:2
const applicantWelcome = await context.github.repos.getContents(
^
TypeError: Cannot read properties of undefined (reading 'repos')
at postWelcome (/home/ayush/Desktop/Dev/badging-bot-test/src/postWelcome.js:2:49)
at /home/ayush/Desktop/Dev/badging-bot-test/index.js:14:7
at /home/ayush/Desktop/Dev/badging-bot-test/node_modules/@octokit/webhooks/dist-node/index.js:177:14
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
at async middleware (/home/ayush/Desktop/Dev/badging-bot-test/node_modules/@octokit/webhooks/dist-node/index.js:355:5)
I would be grateful if anyone could help me with this
The text was updated successfully, but these errors were encountered:
Hello developers! I am new with using probot and my experience till now is great, but I am facing problems with something,
So I am trying to read the contents of the github repo, to be more specific the .md files in .github directory of some repository,
For this I am using context.github.repos.getContents() with the path
Code:
Error:
I would be grateful if anyone could help me with this
The text was updated successfully, but these errors were encountered: