Note: This script requires at least Scriptable version 1.6!
This is a simple GitLab status widget for Scriptable by @simonbs. You can quickly see:
- Number of issues assinged to you
- Number of merge requests assigned to you
- Number of todos for your account
- Number of contributions you made today
Supports different color configurations for light ☀️ and dark 🕶️ mode
A tap on one of the items direclty* opens GitLab at the corrosponding location 🚀
*Caveat: The standard limitation with iOS 14 applies here: any URLs opened through a widget will require its host app to launch first before the URL can be opened.
*Caveat 2: Tap targets in widgets are only supported for medium and large widgets. Small widgets can currently not have tap targets.
The widget can easily be adopted to any homescreen design with simple color configuration options.
- Download and extract
gitlab-stats.js
into the Scriptable folder located in your iCloud Drive. - Launch Scriptable and make sure that
gitlab-stats
is listed in the scripts view. - Configure your gitlab connection information
- If you like, configure your color settings in the
colorConfig()
function to match the widget to your homescreen 🎨 - Once everything is configured, run the script and verify that everything is working correctly.
- Go back to your home screen and add a medium or small Scriptable widget.
- Edit the Scriptable widget and choose
gitlab-stats
as the script. Next, set "When Interacting" to "Run Script" and you should be all set and ready to go. If you use a small size widget configure it to open a website when interacting and configure your GitLab URL there.
- Right now the widget only supports the medium and small widget size. A Large sized version may follow in the future
The script is authored by @thartwi (me) on an ongoing quest to create productive homescreen pages. Since GitLab still offers no native app which could provide such features Scriptable is here to fill the gap!
Thanks to @andyngo for some code to load the images from your iCloud Drive folder and the project template!
Thanks to @simonbs for making an awesome app!
Thanks to @gitlab for a nice API and the nice icons 🙂