Skip to content

Commit

Permalink
First version of the script
Browse files Browse the repository at this point in the history
  • Loading branch information
coorasse committed Jul 20, 2018
1 parent 56140cf commit 65b451b
Show file tree
Hide file tree
Showing 38 changed files with 6,374 additions and 0 deletions.
Empty file added .gitignore
Empty file.
Binary file added 13B27ECF-46AA-426A-A93B-8F4085F2F630.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 8256C27F-E95A-4E03-B205-674155C0E420.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# semaphoreci-workflow
An Alfred3 Workflow for SemaphoreCI

# Usage

Configure auth token

1. Run `ci-auth`.
1. Press Enter.
1. Paste your `auth_token` you retrieve from https://semaphoreci.com/users/edit

Search your repos

1. Type `ci`, optionally followed by the name of the project you are looking for
1. Press `cmd`+`Enter` to open the relative SemaphoreCI page or...
1. Press `Enter` to see the list of builds and servers and their status.

![Demo](http://g.recordit.co/9LhgHy3Om6.gif)

## Contributing

Bug reports and pull requests are welcome on GitHub.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Copyright

Coypright 2018 [Renuo AG](https://www.renuo.ch/)
17 changes: 17 additions & 0 deletions auth.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/python
# encoding: utf-8

import sys
import os
import re

from workflow import Workflow3, web

def main(wf):
query = wf.args[0]
wf.save_password('semaphoreci-auth-token', query)
wf.send_feedback()

if __name__ == '__main__':
wf = Workflow3()
sys.exit(wf.run(main))
Binary file added failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
294 changes: 294 additions & 0 deletions info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string></string>
<key>connections</key>
<dict>
<key>13B27ECF-46AA-426A-A93B-8F4085F2F630</key>
<array>
<dict>
<key>destinationuid</key>
<string>8256C27F-E95A-4E03-B205-674155C0E420</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>74BFD9A4-96CF-46AA-9A9D-0F4544164A86</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>643EA774-BE5C-465A-9B51-814C38B96E04</key>
<array>
<dict>
<key>destinationuid</key>
<string>68D40A57-DE4B-45ED-8FCB-3FEABF6D8117</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>8256C27F-E95A-4E03-B205-674155C0E420</key>
<array>
<dict>
<key>destinationuid</key>
<string>8FA5AC9A-FC0F-4FC0-979F-E77F4C4474C9</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Alessandro Rodi</string>
<key>description</key>
<string>Lists SemaphoreCI projects and status</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>SemaphoreCI</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>2</integer>
<key>escaping</key>
<integer>0</integer>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string></string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string>semaphore.py</string>
<key>subtext</key>
<string></string>
<key>title</key>
<string>App actions</string>
<key>type</key>
<integer>8</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>8256C27F-E95A-4E03-B205-674155C0E420</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<true/>
<key>alfredfiltersresultsmatchmode</key>
<integer>2</integer>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>0</integer>
<key>keyword</key>
<string>ci</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string>Loading the projects list...</string>
<key>script</key>
<string></string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string>semaphore.py</string>
<key>subtext</key>
<string></string>
<key>title</key>
<string>Semaphore Projects List</string>
<key>type</key>
<integer>8</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>13B27ECF-46AA-426A-A93B-8F4085F2F630</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>spaces</key>
<string></string>
<key>url</key>
<string>{query}</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>8FA5AC9A-FC0F-4FC0-979F-E77F4C4474C9</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>spaces</key>
<string></string>
<key>url</key>
<string>{var:html_url}</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>74BFD9A4-96CF-46AA-9A9D-0F4544164A86</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>keyword</key>
<string>ci-auth</string>
<key>subtext</key>
<string></string>
<key>text</key>
<string>Set your auth key</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>643EA774-BE5C-465A-9B51-814C38B96E04</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>0</integer>
<key>script</key>
<string></string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string>auth.py</string>
<key>type</key>
<integer>8</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>68D40A57-DE4B-45ED-8FCB-3FEABF6D8117</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<key>uidata</key>
<dict>
<key>13B27ECF-46AA-426A-A93B-8F4085F2F630</key>
<dict>
<key>xpos</key>
<integer>110</integer>
<key>ypos</key>
<integer>120</integer>
</dict>
<key>643EA774-BE5C-465A-9B51-814C38B96E04</key>
<dict>
<key>xpos</key>
<integer>210</integer>
<key>ypos</key>
<integer>470</integer>
</dict>
<key>68D40A57-DE4B-45ED-8FCB-3FEABF6D8117</key>
<dict>
<key>xpos</key>
<integer>520</integer>
<key>ypos</key>
<integer>500</integer>
</dict>
<key>74BFD9A4-96CF-46AA-9A9D-0F4544164A86</key>
<dict>
<key>xpos</key>
<integer>460</integer>
<key>ypos</key>
<integer>350</integer>
</dict>
<key>8256C27F-E95A-4E03-B205-674155C0E420</key>
<dict>
<key>xpos</key>
<integer>460</integer>
<key>ypos</key>
<integer>70</integer>
</dict>
<key>8FA5AC9A-FC0F-4FC0-979F-E77F4C4474C9</key>
<dict>
<key>xpos</key>
<integer>760</integer>
<key>ypos</key>
<integer>250</integer>
</dict>
</dict>
<key>webaddress</key>
<string></string>
</dict>
</plist>
Binary file added passed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added semaphore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 65b451b

Please sign in to comment.