GithubHelp home page GithubHelp logo

justslone / actions-mention-to-teams Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 6.84 MB

Sends mentions in issues and PR review requests to a flow endpoint which routes the messages to teams

License: MIT License

TypeScript 99.11% JavaScript 0.89%

actions-mention-to-teams's People

Contributors

abeyuya avatar dependabot[bot] avatar justslone avatar

Stargazers

 avatar  avatar  avatar

actions-mention-to-teams's Issues

Action fails when adding a reviewer to a PR

First off, love this action, super helpful!! I'm testing it out in my repo, and it is failing when I add a reviewer to the PR. This is the error message I receive:

Error: Request failed with status code 400
    at createError (/home/runner/work/_actions/JustSlone/actions-mention-to-teams/v0.4.1-beta/dist/index.js:416:15)
    at settle (/home/runner/work/_actions/JustSlone/actions-mention-to-teams/v0.4.1-beta/dist/index.js:10641:12)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/JustSlone/actions-mention-to-teams/v0.4.1-beta/dist/index.js:1[13](https://github.com/sebts/SEBTSTemplate/runs/7471028143?check_suite_focus=true#step:2:14)[21](https://github.com/sebts/SEBTSTemplate/runs/7471028143?check_suite_focus=true#step:2:22):11)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

Switch to use Adaptive Cards for teams messages

Currently we just send a very basic message to the user and a link back to the issue or PR.

We would like to quote the section of the message that mentions the user.

Basic teams messages do not have support for blockquote, which makes this exceedingly ugly.

We should update the code to do two things

  1. Process the message to pull out just the text surrounding the @mention
  2. Don't do the cheap block quoting we do today and let the Flow job build an adaptive card
    a. Note: we might want to build the adaptive card in code because putting together complex JSON objects in flow is painful

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.