GithubHelp home page GithubHelp logo

webteam-hubot's People

Contributors

albertkol avatar amylily1011 avatar anthonydillon avatar barrymcgee avatar bartaz avatar bethcollins92 avatar caldav avatar clementchaumel avatar deadlight avatar dgtlntv avatar goulinkh avatar huwshimi avatar jkfran avatar jpmartinspt avatar meltysnow avatar minkyngkm avatar mrgnr avatar muhammadbassiony avatar nottrobin avatar renovate-bot avatar samhotep avatar tbille avatar wgx avatar willmoggridge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webteam-hubot's Issues

Add documentation for slash commands

The meet and acronym commands are POST endpoints that Mattermost hits when someone type /acronym sadf or /meet.

The endpoints are following those QA steps

  • In one terminal: dotrun
  • In another: curl --request POST http://localhost:8080/hubot/meet -H "Content-Type: application/x-www-form-urlencoded" -d "token=test_token"
  • Expected result:
{
   "response_type":"in_channel",
   "icon_url":"https://assets.ubuntu.com/v1/fa583301-meet-bot-logo.png",
   "text":"Create a new Meet and post the link to the current channel, format: `/meet @{username} [@{username} ...]`",
   "fallback":"Create a new Meet and post the link to the current channel, format: `/meet @{username} [@{username} ...]`"
}

We should add this in the documentation of the repository.

Meet command notification is confusing

Whenever someone uses /meet command to create a new meet link, the mattermost notification would say something like @bartaz did something new instead of saying that new meeting was requested.

As it doesn't seem to be anything in our code, it seems to be coming from mattermost itself. I found some related issues about it:

https://forum.mattermost.com/t/posts-with-attachments-and-desktop-notifications-did-something-new/2507
https://mattermost.atlassian.net/browse/MM-3766

I'm not sure, but I guess what it means that we should provide some fallback text along with the text and it will be used in the notification?

https://developers.mattermost.com/integrate/admin-guide/admin-message-attachments/

Canonical org PRs counter is failing

Here is the error in the logs:

(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'repositories' of null
  at requestPullRequests (/srv/scripts/github-pull-requests-reviews-notifications.js:67:37)
  at process._tickCallback (internal/process/next_tick.js:68:7)

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 89)

Ping IRC for deployments

Ping IRC channels when deploying. This can be tied in with our local deploy script.

Change our deploy script to ping the hubot endpoint. This then posts in required channel.

Be sure to secure the hubot endpoint. Some information here:
http://www.bfcamara.com/post/89658506788/hubot-security-considerations

We can enable basic authentication by setting the enviroment variables EXPRESS_USER and EXPRESS_PASSWORD. It’s strongly recommended to user strong passwords.

We may want to look at only securing specific endpoints.

Can't run using dotrun

Can't run it using dotrun:

Yarn install throws an error.

ubuntu@ubuntu ~/webteam-hubot (greet) $ dotrun
- Yarn dependencies have changed, reinstalling

[ $ yarn install ]

yarn install v1.22.0
[1/4] Resolving packages...
error Couldn't find match for "e80eb07dfe2d1da55f3e0c4ac04dca4fbd2757fd" in "refs/heads/0.3.x,refs/heads/apeiron/dont-piss-off-ops,refs/heads/apeiron/fix-secure-connections,refs/heads/apeiron/fix-secure-opts,refs/heads/apeiron/fixtures,refs/heads/apeiron/use-irc-colors,refs/heads/expr-rewrite,refs/heads/hs/code-486,refs/heads/hs/fix-remove-channel,refs/heads/hs/flood-delay-improvements,refs/heads/hs/perf,refs/heads/hs/the-great-merge,refs/heads/hs/types,refs/heads/jirwin/add-debug-network-error,refs/heads/jirwin/add-missing-newlines,refs/heads/jirwin/factor-parse-messages-to-new-file,refs/heads/jirwin/fix-#314,refs/heads/jirwin/move-selfMessage,refs/heads/jirwin/palid-cap-user-auth,refs/heads/jirwin/parseMessage-middlewares,refs/heads/jirwin/upgrade-icu,refs/heads/jirwin/use-proper-eventemitter,refs/heads/kegan/bust-rfc3484-tls,refs/heads/kegan/casemap-all-the-things,refs/heads/kegan/lower-case-chans,refs/heads/kegan/memleak,refs/heads/kegan/parse-multiple-user-modes-in-name-reply,refs/heads/kegan/usermodes,refs/heads/luke/ipfamily,refs/heads/luke/ipfamily2,refs/heads/luke/names,refs/heads/luke/wouldsend,refs/heads/master,refs/heads/paul/bust-rfc3484,refs/pull/1/head,refs/pull/10/head,refs/pull/11/head,refs/pull/12/head,refs/pull/13/head,refs/pull/14/head,refs/pull/15/head,refs/pull/16/head,refs/pull/17/head,refs/pull/18/head,refs/pull/2/head,refs/pull/20/head,refs/pull/22/head,refs/pull/23/head,refs/pull/24/head,refs/pull/24/merge,refs/pull/25/head,refs/pull/25/merge,refs/pull/26/head,refs/pull/26/merge,refs/pull/3/head,refs/pull/30/head,refs/pull/30/merge,refs/pull/32/head,refs/pull/32/merge,refs/pull/33/head,refs/pull/34/head,refs/pull/36/head,refs/pull/37/head,refs/pull/39/head,refs/pull/39/merge,refs/pull/4/head,refs/pull/40/head,refs/pull/41/head,refs/pull/5/head,refs/pull/6/head,refs/pull/7/head,refs/pull/8/head,refs/pull/9/head,refs/tags/matrix-irc-bridge,refs/tags/v0.1.0,refs/tags/v0.1.1,refs/tags/v0.1.2,refs/tags/v0.2.0,refs/tags/v0.2.1,refs/tags/v0.3.0,refs/tags/v0.3.1,refs/tags/v0.3.10,refs/tags/v0.3.11,refs/tags/v0.3.12,refs/tags/v0.3.2,refs/tags/v0.3.3,refs/tags/v0.3.5,refs/tags/v0.3.7,refs/tags/v0.3.8,refs/tags/v0.3.9" for "https://github.com/matrix-org/node-irc.git".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

= `yarn install` errored =

Running yarn install locally directly (without dotrun) works, running bot via yarn start as well.

IRC bot: Pick a random developer

Update the IRC bot to randomly choose a developer when it sends a message about a PR.

I think for the time being we should do this as light-weight as possible - which is probably simply to add a list of all developer IRC nicknames to the IRC bot codebase, and just randomly pick one when sending a PR message.

Down the line this could be improved by (but these should be out of scope for the time being - or stretch tasks):

  • Getting the list of developers from a team in GitHub through the GitHub API
  • Inspecting GitHub to pick developers who don't have many PRs assigned to them already
  • Maybe pick developers based on those not so experienced with a project or something?

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined

link not visible from matterhorn

Hello, this /meet command looks neat :) it doesn't work great with the matterhorn client, though. The URL isn't visible, and the ctrl+O shortcut doesn't open the URL in the browser like most URLs or images.

I suspect without evidence it'd be good enough to output the link on a line of its own somewhere.

Thanks

meet

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.