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-uhura

v0.0.3

Published

A hubot script that talks to riker

Downloads

1

Readme

hubot-uhura

A hubot script that talks to riker. It allows admins to assign deployment permissions to particular roles, and users to perform the deployment.

Installation

In hubot project repo, run:

npm install hubot-uhura --save

Then add hubot-uhura to your external-scripts.json:

[
  "hubot-uhura"
]

Configuration

The script supports the following environment variables:

  • HUBOT_UHURA_RIKER_URL - URL pointing to an instance of Riker
  • HUBOT_UHURA_RIKER_TOKEN - Riker authorization token

Authorization

This script depends on hubot-auth (or anything that provides compatible API) for role management.

This script assumes the presence of the robot.auth object containing the following functions:

  • robot.auth.hasRole(user, role) - returns true if user has a role, false otherwise
  • robot.auth.userRoles(user) - returns an array of roles assigned to given user

Only people in the admin group can assign deployment permissions.

Commands

This scripts provides the following commands:

  • hubot role <role> can deploy <project> - Give deploy permissions to a role. Only available to users who have the admin role.

  • hubot role <role> can't deploy <project> - Remove deploy permissions from a role. Only available to users who have the admin role.

  • hubot deploy <project> to <env> [version <version>] - Deploy a project to given <env>, optionally specifying a <version> to deploy. The user issuing this command needs to have a role that is allowed to deploy the particular project for the command to succeed. If <version> is skipped, the default value configured in Riker will be used.

Sample Interaction

user1>> hubot role wizard can deploy thing
hubot>> @user1 wizard can now deploy thing
user1>> hubot deploy thing to dev
hubot>> @user1 Deploying thing to dev

NPM Module

https://www.npmjs.com/package/hubot-uhura

Uhura?

Lieutenant Nyota Uhura, chief communication officer aboard the fictional USS Enterprise starship. As a communication officer she is the appropriate person to pass the captain's (your!) orders to commander Riker.

Uhura