Git Product home page Git Product logo

feishu-webhook-adapter's Introduction

内部用 适配飞书Webhook

Jenkins构建通知

curl -H "Content-Type:application/json" -POST http://localhost:8080/jenkins/push -d '{ "buildStatus": "1", "jobName": "作业名", "buildUser": "构建人", "gitBranch": "git分支", "gitCommit": "提交HASH", "gitCommitUser": "提交人", "gitCommitMessage": "提交信息", "jobUrl": "http://something.com" }'

gitlab通知

/gitlab/push curl -H "Content-Type:application/json" -POST http://localhost:8080/gitlab/push -d '{ "object_kind": "push", "event_name": "push", "before": "95790bf891e76fee5e1747ab589903a6a1f80f22", "after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", "ref": "refs/heads/master", "checkout_sha": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", "message": "Hello World", "user_id": 4, "user_name": "John Smith", "user_email": "[email protected]", "user_avatar": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80", "project_id": 15, "project": { "id": 15, "name": "gitlab", "description": "", "web_url": "http://test.example.com/gitlab/gitlab", "avatar_url": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80", "git_ssh_url": "[email protected]:gitlab/gitlab.git", "git_http_url": "http://test.example.com/gitlab/gitlab.git", "namespace": "gitlab", "visibility_level": 0, "path_with_namespace": "gitlab/gitlab", "default_branch": "master" }, "commits": [ { "id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428", "message": "Add simple search to projects in public area\n\ncommit message body", "title": "Add simple search to projects in public area", "timestamp": "2013-05-13T18:18:08+00:00", "url": "https://test.example.com/gitlab/gitlab/-/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428", "author": { "name": "Test User", "email": "[email protected]" } }, { "id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428", "message": "Add simple search to projects in public area\n\ncommit message body", "title": "Add simple search to projects in public area", "timestamp": "2013-05-13T18:18:08+00:00", "url": "https://test.example.com/gitlab/gitlab/-/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428", "author": { "name": "Test User", "email": "[email protected]" } } ], "total_commits_count": 1, "push_options": { "ci": { "skip": true } } }'

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.