I’m following the steps in the documentation:
I’ve done Step-1: Login to GitHub as popout-apps, located Flathub/flathub, clicked Fork.
Step-2:
$ git clone --branch=new-pr git@github.com:popout-apps/flathub.git
Cloning into ‘flathub’…
Warning: Permanently added the RSA host key for IP address ‘blah-blah’ to the list of known hosts. git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
N
Nelson Ben
#2
You need to generate a SSH key locally and add that to your github account. Check out the following tutorial from github:
Clone the fork: git clone --branch=new-pr git@github.com:your_github_username/flathub.git
Create a new branch with your app’s name: git checkout -b your_app_name
Add your app’s manifest to the branch, commit it and push the commit
Open a pull request against the new-pr branch on Github
Your pull request will then be reviewed by the Flathub admins
Looks like the instructions are missing the essential Step-0 “Create SSH Key”. I’ve followed the instructions in your link to do that.
Okay up to Step-4 Add your app’s manifest to the branch, commit it and push the commit
Found this on Stackoverflow:
In order to add files in specific branch follow the below instructions :
To create custom branch
git branch branchname
To switch into custom branch
git checkout branchname Covered in the instructions
To initialize in the custom branch
git init
To add files in the custom branch
git add file name
To commit the changes made in the custom branch
git commit -m “your message” Done
To make changes in your GitHub repo
git push
I need to understand the basic principle of what I am trying to achieve:
I want to get my manifest onto Flathub. That can’t be done directly though, since only administrators have access to it, because manifests have to be approved.
Therefore I make a fork of the main branch which then exists in my GitHub account and which I do have access to, so I can upload the manifest to that. I then ask the Administrators to check the manifest then if they approve it, to Pull my fork into the main branch. Is that correct?
If so - I have created the Flathub fork. If I now cut and paste the manifest into that in my GitHub account, commit it, then click “Compare & pull request” won’t that achieve what is required?
It appears to work…
In my repository, make a fork of the main branch which then exists in my GitHub account and which I do have access to, so I can upload the manifest to that. Then make a “Pull Request” which requests the administrators to review it, check it can be built then include it in Flathub.