SailHub is an inoffical native GitHub app for Sailfish OS using GitHub GraphQL API (v4).
I made this app to familiarize myself with GraphQL API concepts. GitHub API is well documented and ideal for this purpose.
The development is in an early state at the moment.
Lot of functionality is missing.
To authenticate with GitHub API a personal access token is necessary. You can create one in developer settings on GitHub profile settings page.
This package depends on an emoji pack I released on OpenRepos using the emojis from Twitter Emoji project.
You can implement an option to add a star to a GitHub repository via a DBus interface inside your own app. SailHub must be installed on the user device for this to work. You need to provide username of the owner and the repository name.
...
import Nemo.DBus 2.0
DBusInterface {
id: sailHubInterface
service: "org.nubecula.sailhub"
iface: "org.nubecula.sailhub"
path: "/"
}
Button {
visible: sailHubInterface.Available
text: "Give Star"
onClicked: sailHubInterface.call("addStar", ["black-sheep-dev", "harbour-sailhub"])
}
...
For an example you can take a look to the code of the SailHub AboutPage.qml
Function description: [C]reate, [R]read, [U]pdate, [D]elete, [S]earch
Available translations:
If you missing your native language you are welcome to support this project with your translation.
https://weblate.nubecula.org/engage/harbour-sailhub/
If you like to test the functionality you can use my dummy repository:
This projects uses the emoji from Twitter Emoji (twemoji) - Graphics licensed under CC-BY 4.0
If you like my work, you can buy me a beer!