npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-azuredevopsplugin

v1.0.2

Published

A hubot plugin that helps users to automate their work-flows.

Downloads

3

Readme

hubot-azuredevopsplugin

A Hubot plugin that helps users to automate their work-flows. To use this plugin you should have Hubot, Redis, and 'Azure DevOps Extension for Azure CLI' installed.


Installation of Hubot:

Prerequisites:
  1. Slack chat client.
  2. Windows machine with PowerShell, latest version of PowerShell is recommended.
Insatallation steps:
  1. Install Node.js if it isn’t installed. You can find the latest or recommended here.
  2. Create a folder for the bot, you can name it whatever you want, for example: 'myhubot'. This is called as Hubot's home folder.
  3. In CMD change the working directory to the new created folder in previous step, then type the following command: npm install -g yo generator-hubot As a result all the Hubot required modules will be installed.
  4. To initialize Hubot, first make sure you are in Hubot's home folder you created earlier, then execute in CMD the following command: yo hubot --adatpter=slack It will ask for some initialization data (author's name, bot's name, and optional description). Remember the bot's name because you will need it later. In this stage Hubot files and folders will be generated in the Hubot's home folder; the one we created earlier.
  5. Navigate to “Configure Apps” link in your Slack team page, and search for Hubot. Select “Add Configuration” button; admin approval will be required. Type the Hubot's name you selected for the “Customize Name” entry then click “Save Integration” button, as a result Hubot will get configured to work with Slack and an API token will be generated for you.
  6. Add a new System Environment variable with the following details:
    Name: “HUBOT_SLACK_TOKEN”
    Value: <Slack API token generated in the previous step>
  7. Open CMD and execute this command: set HUBOT_SLACK_TOKEN=<Slack API token generated in the previous step>
  8. To run Hubot on Slack open CMD with administrator privilidges in the Hubot's folder and execute: .\bin\hubot --adapter slack This will run Hubot on Slack. Stop Hubot by pressing Ctrl+C in CMD.

Installation of Redis:

  1. Hubot supports different ways to be used as a brain storage (e.g. File, Redis), for this plugin we will use Redis as Hubot's brain. Redis enables Hubot's memory to be persistent.
  2. Download the latest MSI package from here. The MSI package will install Redis as a windows service.
  3. Go to Windows services by executing services.msc in the run window. Navigate to the 'Extended' tab, and make sure that the Redis service is running.

Installation of Azure DevOps Extension for Azure CLI:

This link will guide you how to install the Azure DevOps Extension for Azure CLI.


Installation of hubot-azuredevopsplugin plugin:

  1. Open CMD in Hubot's home folder and execute the following command: npm install hubot-azuredevopsplugin --save This will install the plugin and all the required dependencies.
  2. Then add hubot-azuredevopsplugin to your external-scripts.json, this file is present in Hubot's home folder:
    [
      "hubot-azuredevopsplugin"
    ]
  3. Open CMD and restart Hubot by executing the following command in Hubot's home folder: .\bin\hubot --adapter slack