Back

Connecting Github repo to Multiple Projects

  • 0
  • Functions
SenZi
7 Sep, 2023, 01:49

When linking github to the first project, i selected a repo to link to that project. In the 2nd project, if i try to link github and go to the github page i can no longer select the same repo because its already selected on github.

TL;DR
The user is having trouble connecting a GitHub repo to multiple projects. They have tried fixing a line break issue with the key and reinstalling the GitHub app but the problem persists. They have also attempted to make the GitHub app public but it does not solve the issue. They are looking for a solution to be able to save the repository link in the second project after it has already been linked in the first project. No explicit solution is provided in the support thread.
Drake
7 Sep, 2023, 01:50

Did you give access to all repos when connecting to GitHub?

SenZi
7 Sep, 2023, 01:50

nope, i gave access to just one repository.

Drake
7 Sep, 2023, 01:50

Maybe you should try again but give full access

SenZi
7 Sep, 2023, 01:50

and it works in the 1st project as well.

SenZi
7 Sep, 2023, 01:52

also btw is it not possible to disconnect or unlink github? in case i want to use another account after linking a github account

Drake
7 Sep, 2023, 01:53

You can uninstall/disconnect... maybe in the function...maybe in project settings

SenZi
7 Sep, 2023, 01:53

got it, its there in the project settings not in the function settings ig

SenZi
7 Sep, 2023, 01:54

well this doesnt work either

SenZi
7 Sep, 2023, 01:55

because if i give all repository permission in the 1st project, when i try to connect in the 2nd project it doesnt give an option to save in github

SenZi
7 Sep, 2023, 01:55

it just takes you to this page and you can't press save or anything

Drake
7 Sep, 2023, 01:56

i see okay. let me talk with the team

Drake
8 Sep, 2023, 15:15

@SenZi can you try updating your github app in https://github.com/settings/apps go to the Advanced page > Danger zone > and Make this application public

SenZi
8 Sep, 2023, 20:58

well then it just gives an option to select organisation or personal account first nothing else changes.

Drake
8 Sep, 2023, 21:15

yep, select whichever

SenZi
8 Sep, 2023, 22:08

I did, and it just takes me to the same page.

SenZi
8 Sep, 2023, 22:08

this page

Drake
8 Sep, 2023, 23:19

After you made your GitHub app public?

Drake
8 Sep, 2023, 23:19

once you get to that page, you should be able to click save

SenZi
8 Sep, 2023, 23:22

yes

SenZi
8 Sep, 2023, 23:23

it's still greyed out, i tried removing the already linked repository and link again but your suggestion to replace line breaks with \n doesnt seem to work https://discord.com/channels/564160730845151244/1147708406849876079/1147757861561176144

SenZi
8 Sep, 2023, 23:24
Drake
8 Sep, 2023, 23:46

have you tried uninstalling the github app and re-installing?

Drake
8 Sep, 2023, 23:47

something is malformed with your key

SenZi
8 Sep, 2023, 23:50

it's the same key but the line break is replaced with \n, i'll try to fix it and check the greyed out issue.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more