Jump to content

RevellNL

Member
  • Posts

    15
  • Joined

  • Last visited

Posts posted by RevellNL

  1. Just pushed a minor update, ability to list watched repositories is now added.

     

    Depending on the amount of repositories you own and have starred/watched the initial listing might take a while since the Github API doesn't respond that fast. After the initial call the repolists will be cached for 5 minutes by default.

  2.  

    That’s also how I’ve set it up to work in PinAdd. Another advantage of it is that it’s also easier to update, since every time you want to push a new version you simply remove that file from the directory, instead of having to manually remove the key from the script.

    You don't have to remove the key at all if you want to push a new version. I'm storing it in the non-volatile workflow directory (~/Library/Application Support/Alfred 2/Workflow Data/nl.jeroenseegers.Alfred.Github) so it will remain after updates as well and it won't get pushed with a new version!

  3. This crossed my mind as well. Another way I thought of this is to store the OAuth token in a separate file so it will be remembered after an update as well (currently it isn't), this way I can also check if that file is present, with content, and if so, I wont show the 'auth' command.

  4. Had a quick look at integrating OAuth into the worklflow and it seems to be pretty simple, only thing is that you'll need to perform some manual steps in order to get the workflow to properly communicate with Github.
     
    You'd have to authenticate via a github webpage after which you'll get redirected to a page under my control where a OAuth consumer key will be shown, this key would then have to be pasted into the Alfred workflow after which everything should work.
     
    I don't really see this as a huge step, but I'm wondering what you guys think about this. Would you prefer to see the authentication go through OAuth (and perform the above steps once?), or would you prefer to just enter your credentials as it is now, in plain-text?

  5. Github workflow for Alfred v2

    A configurable workflow for Alfred v2.

    screenshot-repo-list.png

    Installation

    You can install this workflow by dowloading the Github.alfredworkflow file and either double-clicking it, or dragging it onto the Alfred Workflow screen.

    After adding it to your workflow collection, when you run the gh command in Alfred you will be presented with only two options; auth and token.

    screenshot-no-auth.png

    First, you'll need to choose for the auth option, this will generate an OAuth token for you which will be used by all subsequent calls to the Github API.

    Once you get the OAuth token, copy it from the website, run gh token and paste the OAuth token in the Alfred window.

    gh token thisisthetokenwhichcamefromthewebsite

     

    Now you're all set to start using this workflow!

     

    Usage

    The initial command for starting this workflow is gh.

    The commands currently supported by this workflow are:

    • repo
      This returns a list of options for listing your repositories screenshot-repo.png

    You can filter the results show by typing (part of) the repositoryname after the workflow command, f.e.: screenshot-repo-list-filtered.png

     

    If there's anything you run into which isn't working as you expect, or not working at all for some reason. Please, do let me know!

     

    Also, be sure to check out the repository and maybe make some additions yourself!

  6. Fantastic idea, unfortunately doesn't work for me. My guess would be it's because our Jenkins instance requires login with Google credentials. 

     

    Hmm, I wonder if that would be solveable using HTTP BASIC authentication. I don't really have an instance to test this on though =(

     

    I've added an issue for it in the GitHub repository, you can keep track of the progress there, as well as elaborate on the issue if needed. https://github.com/jeroenseegers/alfred-jenkins-workflow/issues/3

  7. Hi all,

     

    I've created a workflow for interacting with a Jenkins CI instance. Currently it only supports fetching the status of the builds but I'm planning on expanding this to getting the health of the builds, starting builds and some other neat features.

     

    You can download it from here, or you can check out the GitHub repository here.

     

    When you've installed it in Alfred, be sure to set the correct URL to your Jenkins CI instance via:

    Alfred > Preferences > Workflows > Jenkins > Script Filter

    And then entering the correct URL in the "Script" box.

     

    Be sure to let me know (either here or on GitHub) if you run into any issues, or if you have any ideas!

     

     

    alfred-jenkins-workflow-screenshot.png

    * project names and statuses added for illustrative purposes

×
×
  • Create New...