Giter Club home page Giter Club logo

command-sets's People

Contributors

bhageena avatar coderaayush avatar dengliming avatar dineshbajaj28 avatar ericswildens avatar final-b0ss avatar nehal0309 avatar pulkit-khullar avatar rabbah avatar satyarohith avatar shreyabande95 avatar v-shant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

command-sets's Issues

csm_install

  • 404 when installing gcloud
  • missing_set is included in the list of available commands
  • Invalid file type for npm-example

better formatting for github help

Describe the solution you'd like
Improve the output of /nc github.
See screen shot and look at the ![] prefixes and hyperlinks that follow.

Screen Shot 2020-04-12 at 11 19 25 AM

github token not required for all github commands

Is your feature request related to a problem? Please describe.
When you install the github command set, you must also attach a token as a secret. Some commands for public repos do not needs a token. This makes it easier to install and try out the command set before doing more work.

Describe the solution you'd like
Allow commands that are "read" only to work without a token. They are subject to github's rate limiting but this is likely adequate for initial on boarding and an appropriate/helpful message could be offered when the rate limit hits (to attach the token).

Commands that don't need a token for a public repo from current command set:

  • list prs or issues
  • repo stats/star gazers

awsbill allow notification to happen if the bill exceeds a specified value

Webhook can be set as a secret or may be passed in params. We can support both.
An optional threshold parameter should be supported and if set, the response should indicate the delay in a day due to the AWS api and also to use tasks at a daily interval and a link to the commander-reference to create a task.

Improve readme of DigitalOcean (do) Command Set

Add "Requirements" and "Usage" fields to the readme.

We need a secret named digitaloceanApiKey with the value being the API key of the user's DigitalOcean account to run this command set. Point to a post that helps them obtain the key.

See commands.yaml to learn about commands and their parameters.

All the best! :)

Allow GitHub repo name to be stored as a config parameter.

Is your feature request related to a problem? Please describe.

The GitHub commands require specifying a repo name. This will get repetitive and annoying.
Describe the solution you'd like
Allow a default repo to be specified and make the repo name otherwise optional. Commander secrets could be used to store the configuration of the default repo to use.

Twitter command-set

Currently, twitter app for slack, you can get notifications from 1 account. This is hardly enough and in order to get tweets from multiple accounts, we would need to use zapier and that's free for 1000 "tasks" or tweets

https://twitter.com/SlackHQ/status/575339388932067328?s=20
https://zapier.com/apps/slack/integrations/twitter/199/share-new-tweets-from-a-twitter-list-in-slack

We would like to have a twitter command-set to subscribe for multiple twitter accounts and also subscribe public for twitter list. We would ideally like to do this without running tasks and may be instead use webhooks. I.E, we want it for free tier.

Install dependencies for Vultr

when I run /dapp vultr_list I got Error: Cannot find module '@vultr/vultr-node' add code to install the dependency. (to be sure it will work add same in all the commands for Vultr, as user can run any command first).

image

github support for subscribe/unsubscribe commands

Is your feature request related to a problem? Please describe.
github official app provides support for these commands and we should do this as well. I use it to get notified when things happen on the repo I am subscribed to.

Describe the solution you'd like
However, the annoying thing with github app is that I get notifications when I do some task. I don't need this and its annoying

Describe alternatives you've considered
If possible, we should avoid posting events if done by the user who has subscribed to

Additional context
We would need a way for Commander to pass the channel/webhook of the Commander-Bot installed in order to make the posts to

/dapp bluejeans fails

Initialization has failed due to: SyntaxError: Unexpected identifier
    at initializeActionHandler (/nodejsAction/runner.js:57:87)
    at doInit (/nodejsAction/src/service.js:176:16)
    at initCode (/nodejsAction/src/service.js:95:24)
    at /nodejsAction/platform/platform.js:125:17
    at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
    at next (/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
    at /node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/node_modules/express/lib/router/index.js:335:12)

Command-set to run custom app commands

It would be cool to run custom slack and mattermost apps using commander. This way we can run those commands as tasks. For Slack, we would need 2 secrets to be set up. 1 is the slack-legacy token to run slack app.

How to create such tokens and what secrets needs to be created needs to be documented in README file.

Document Vultr Command Set

Create a readme with "Available commands", "Requirements" and "Usage" sections. See bluejeans/readme.md for inspiration.

We need a secret named vultrApiKey to run this command set. Give instructions on how to obtain the secret.

See vultr/commands.yaml to learn about commands and their parameters.

All the best! :)

corona_stats response should be re-structured

currently, response block is array of array [ [ ], [ ], [ ] ] but it is array of objects

     "blocks": [{
             "text": {
                       "text": "*CoronaVirus :mask: Stats in India ๐Ÿ‡ฎ๐Ÿ‡ณ :*"  ,
                       "type": "mrkdwn"
              },
              "type": "section"
      },
      {
              "fields": [
                      { "text": "Total Cases:   *10,453*", "type": "mrkdwn" },
                      { "text": "Total Cases:   *10,453*", "type": "mrkdwn" }
               ],
               "type": "section"
    }]

OR

     "blocks": [{
             "text": {
                       "text": "*CoronaVirus :mask: Stats in India ๐Ÿ‡ฎ๐Ÿ‡ณ :*"  ,
                       "type": "mrkdwn"
              },
              "fields": [
                      { "text": "Total Cases:   *10,453*", "type": "mrkdwn" },
                      { "text": "Total Cases:   *10,453*", "type": "mrkdwn" }
               ],
               "type": "section"
    }]

this should be the actual response. it's working in slack is really a wonder.

You can check the doc here

Need to add contribution guide.

We welcome enhancements to existing command sets and entirely new command sets. We need to put a contribution guide and how to facilitate such contributions.

Rename `dapp` to `nc`

The default app (/dapp) is now deprecated. We can run commands using just /nc.

We need to rewrite some documentation for a few commands to not have an app created to run the commands.

add search github issues/prs by keywords

Is your feature request related to a problem? Please describe.
Would like to be able to list issues or prs matching a keyword or label.

Describe the solution you'd like
/nc github_list [--issues | --pull-request ] [--label] (keyword)+

where --issues matches only issues and --pull-request matches only prs.
--label treats keywords as labels instead of text search.

Add GitLab command set

We need some GitLab slash commands. It would be beneficial if they work on both Mattermost and Slack.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.