Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

p0fi/gitlab-stats-for-scribtable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab Stats for Scriptable

cover

Note: This script requires at least Scriptable version 1.6!

What's this?

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

Features

Dark Mode Support

Supports different color configurations for light ☀️ and dark 🕶️ mode

Tap Targets

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.

Customizable

The widget can easily be adopted to any homescreen design with simple color configuration options.

customizable

Instructions

  1. Download and extract gitlab-stats.js into the Scriptable folder located in your iCloud Drive.
  2. Launch Scriptable and make sure that gitlab-stats is listed in the scripts view.
  3. Configure your gitlab connection information
  4. If you like, configure your color settings in the colorConfig() function to match the widget to your homescreen 🎨
  5. Once everything is configured, run the script and verify that everything is working correctly.
  6. Go back to your home screen and add a medium or small Scriptable widget.
  7. 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.

Known Issues

  • Right now the widget only supports the medium and small widget size. A Large sized version may follow in the future

About this project

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 🙏

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 🙂

About

Simple GitLab status widget for Scriptable

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published