Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
hubot-approval
Advanced tools
Middleware for managing peer approvals of Hubot commands
See src/approval.coffee
for full documentation.
In hubot project repo, run:
npm install hubot-approval --save
Then add hubot-approval to your external-scripts.json
:
[
"hubot-approval"
]
Note that hubot-approval needs to be added after whatever module is adding the groups
function to the User
object.
hubot-approval assumes that there is a piece of middleware executing prior to it that modifies the User
object to add a group lookup function (groups
). A simple version is below:
robot.listenerMiddleware (context, next, done) ->
context.response.message.user.groups = (cb) ->
cb(robot.brain.get('userGroups')[context.response.message.user.name] or [])
user1>> hubot do something
hubot>> user1: I need approval for that from someone in 'admin'. In order to approve, say 'hubot approve cheese'.
user2>> hubot approve cheese
hubot>> user2: Approved! Executing 'hubot do something' for user1
hubot>> user1: I did something!
FAQs
Middleware for managing peer approvals of Hubot commands
The npm package hubot-approval receives a total of 6 weekly downloads. As such, hubot-approval popularity was classified as not popular.
We found that hubot-approval demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.