Jump to content

Alfred Gitlab dashboard workflow


Recommended Posts

Posted (edited)

Alfred Gitlab Tool

Alfred Gitlab dashboard workflow. Navigate projects, issues, merges and todos quickly.

Install

Configure

  • glurl: Set Gitlab url.

glurl.png

 

  • gltoken: Set Gitlab token.

gltoken.png

Feature

  • glp: Fuzzy search Gitlab projects.

glp.png

 

  • glm: Navigate Gitlab merge requests assigned to you.

glm.png

 

  • gli: Search Gitlab issues via API.

gli.png

 

  • gltodo: Open Gitlab todos in browser.

gltodo.png

 

Question

All pull requests, issues and ideas are welcome.

License

MIT @ github/wangshub

 

 

 

Github repo https://github.com/wangshub/Alfred-Gitlab-Tool

Edited by wangshub
  • 4 weeks later...
Posted

Ive wanted this for a long time, thanks. Does the API work if you want to use your hosted account? Is there a way to specify your username?

Posted

@piggah

  •  I have test it on our self-host gitlab GitLab version: Community Edition 11.2.3 1d55bc2
  •  There are little difference between two versions

 

 

Posted (edited)

I couldn't access my account with your workflow.

I'm a new gitlab user. Could you explain where is I can take gitLab token? 

 

1. (if it from the User Settings => Access Tokens) it must be Feed token or Personal Access Tokens? (what is the option of scopes I should pick up?)

 

2.What is the correct base URL of API should look like? I can't find this info in https://docs.gitlab.com/ce/api

 

StackOverflow: Can't find out base GitLab API base url - Neither one of the options from here is not working in my case.

 

http://example.com/api/v4 so.. <example.com>, as I understood, is my own server (host)? And:

3. Is this going to work with <gitlab.com>/api/v4?

 

 

4. By this <query> I got [ERROR: action.script]

 

2018409727_Screenshot2018-11-11at10_54_13.png.4d7a5240a413ecc9c8acd0384c17be55.png

 

Starting debug for 'GitLab-Tool'

[2018-11-11 10:54:23][input.keyword] Processing output of 'action.script' with arg 'https://gitlab.com/api/v4'
[2018-11-11 10:54:24][ERROR: action.script] .
10:54:23 workflow.py:2055 DEBUG    ---------- GitLab-Tool (1.2.0) ----------
10:54:23 main.py:151 INFO     Namespace(issue=None, merge=False, query=None, repo=None, todo=False, token=None, url=u'https://gitlab.com/api/v4')
10:54:23 main.py:40 INFO     Setting gitlab url https://gitlab.com/api/v4
10:54:23 workflow.py:2411 DEBUG    password exists : :gitlab_url
10:54:24 workflow.py:2458 DEBUG    got password : :gitlab_url
10:54:24 workflow.py:2415 DEBUG    password unchanged
10:54:24 workflow.py:1462 DEBUG    reading settings from /Users/bikenik/Library/Application Support/Alfred 3/Workflow Data/settings.json
10:54:24 workflow.py:2248 DEBUG    set last run version: 1.2.0
10:54:24 workflow.py:2097 DEBUG    ---------- finished in 0.155s ----------
[2018-11-11 10:54:24][action.script] Processing output of 'output.notification' with arg ''

5. By this <query> I got [ERROR: action.script]

 

1277705306_Screenshot2018-11-11at11_02_20.png.1cf1fa435c6666d13c69163cd66425fe.png

 

[2018-11-11 11:02:23][input.keyword] Processing output of 'action.script' with arg 'oP1536ESz_AEvdMrfEbd'
[2018-11-11 11:02:24][ERROR: action.script] .
11:02:23 workflow.py:2055 DEBUG    ---------- GitLab-Tool (1.2.0) ----------
11:02:24 main.py:151 INFO     Namespace(issue=None, merge=False, query=None, repo=None, todo=False, token=u'oP1536ESz_AEvdMrfEbd', url=None)
11:02:24 main.py:29 INFO     Setting gitlab token oP1536ESz_AEvdMrfEbd
11:02:24 workflow.py:2411 DEBUG    password exists : :gitlab_token
11:02:24 workflow.py:2458 DEBUG    got password : :gitlab_token
11:02:24 workflow.py:2415 DEBUG    password unchanged
11:02:24 workflow.py:1462 DEBUG    reading settings from /Users/bikenik/Library/Application Support/Alfred 3/Workflow Data/settings.json
11:02:24 workflow.py:2248 DEBUG    set last run version: 1.2.0
11:02:24 workflow.py:2097 DEBUG    ---------- finished in 0.160s ----------
[2018-11-11 11:02:24][action.script] Processing output of 'output.notification' with arg ''

 

Thanks in advance.

Edited by bikeNik
additional info
Posted (edited)

Ok. With my previous questions (1-3) are clear for me now.

I'll make my own workflow using node.js

Edited by bikeNik
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...