Giter VIP home page Giter VIP logo

feishu-action's Introduction

wechat-work-action status

✨ Example Usage

  • text
- name: text message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: text
    content: |
      text: |
        hahahah
        from github action test
        repository: ${{ github.repository }}
        committer: ${{ github.actor }}
        compare: ${{ github.event.compare }}
        job status: ${{ job.status }}
  • post
- name: post message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: post
    content: |
      post:
        zh_cn:
          title: 我是一个标题
          content:
          - - tag: text
              un_escape: true
              text: '第一行 :'
            - tag: a
              text: 超链接
              href: http://www.feishu.cn
            - tag: at
              user_id: ou_18eac85d35a26f989317ad4f02e8bbbb
          - - tag: text
              text: '第二行 :'
            - tag: text
              text: 文本测试
          - - tag: img
              image_key: d640eeea-4d2f-4cb3-88d8-c964fab53987
              width: 300
              height: 300
  • share_chat
- name: share_chat message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: share_chat
    content: |
      share_chat_id: oc_f5b1a7eb27ae2c7b6adc2a74faf339ff
  • image
- name: image message
  uses: foxundermoon/feishu-action@v2
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: image
    content: |
      image_key: img_ecffc3b9-8f14-400f-a014-05eca1a4310g

🔐 Set your secrets here: https://github.com/USERNAME/REPO/settings/secrets.

Contexts and expression syntax for GitHub Actions, here: https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions#github-context

Result

Options

option type description
url string webhook url: https://open.feishu.cn/open-apis/bot/hook/7c5a4a4ba83bxxxxxx
msg_type string message type
content string message content , yaml string

How do I use a robot in a group chat?

feishu-action's People

Contributors

foxundermoon avatar renovate-bot avatar dependabot[bot] avatar

Stargazers

ziming-zh avatar DengQi avatar 张某 avatar Xu Wenhao avatar South Drifted avatar ddl avatar yulu avatar Mingming Lou avatar Sparkle avatar kk avatar  avatar  avatar ringsaturn avatar  avatar  avatar

Watchers

 avatar  avatar

feishu-action's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @zeit/ncc Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update actions/checkout action to v4
  • Update dependency eslint to v9
  • Update dependency eslint-plugin-github to v5
  • Update dependency eslint-plugin-jest to v28
  • Update dependency eslint-plugin-prettier to v5
  • Update dependency prettier to v3
  • Update dependency typescript to v5
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/test.yml
  • actions/checkout v2
  • actions/checkout v2
npm
package.json
  • @actions/core ^1.2.6
  • got ^11.0.0
  • @types/jest 24.9.1
  • @types/js-yaml ^4.0.4
  • @types/node 16.11.7
  • @typescript-eslint/parser 2.10.0
  • @zeit/ncc 0.22.3
  • eslint 5.16.0
  • eslint-plugin-github 2.0.0
  • eslint-plugin-jest 22.21.0
  • eslint-plugin-prettier ^4.0.0
  • jest 24.9.0
  • jest-circus 24.9.0
  • js-yaml ^4.1.0
  • prettier ^2.4.1
  • typescript 4.4.4
  • ts-jest 24.3.0

  • Check this box to trigger a request for Renovate to run again on this repository

Multiline in commit messages

Hello,

I am try trying to display the commit messages in feishu. how can i configure it in a way that the feishy message will keep the multiline of the commit message ?

` - - tag: text
text: 'Content:'
- tag: text
text: "${{github.event.head_commit.message}}"

`
for example using ".." works but the multiline is skipped. If i do not put the "..." i'm getting some format errors.

do you know a solution ?

thank you

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.