Giter VIP home page Giter VIP logo

cicd's Introduction

nest badge

Deno Module for Continuous Deployment

Usage Example

Setup a GitHub Actions based workflow from which you call the features of the CICD module.
To do so: copy & paste e.g. the content of .github/workflows/release.yml to your repo.

To explore all examples check the .github/workflows/ folder.

Community

Feel free to join our Deno CICD Community in Telegram. Feel free to join our Deno CICD Community in Slack.

Contributions

Contributions are welcome.

Support my Open Source Contributions

If you like my work please consider downloading the brave browser via my promotion link: https://brave.com/fan464.

cicd's People

Contributors

michael-spengler avatar steelalloy avatar ravimashru avatar ngruychev avatar

Stargazers

Jerry Wong avatar Elan Ruusamäe avatar Chandan Kumar avatar  avatar  avatar  avatar Akshay Iyyadurai Balasundaram avatar

Watchers

Roy Ivy III avatar James Cloos avatar  avatar  avatar  avatar

cicd's Issues

Notification via Slack

For notifications via Slack, a Slack app needs to be installed in the user's workspace of choice.

Should we create a Slack app (and call it maybe "deno-cicd") that users can reuse/install on their workspace and use that token.

Or should we ask users to create their own Slack apps, and provide a token for that app?

Feature request: include URL of PR in notification messages

The current notifications in the channel have only a URL to the repository where a PR was opened.

It would be nice to also include a link directly to the pull request in the notification.

I guess this can be achieved using the gitub.event object which contains the complete payload from the webhook that triggered the action. For a pull request, the event payload would be this

notify-via-slack fails because of exception in request

Notifications to Slack are sent successfully, however the PR page shows that the step has failed because of the following exception:

error: Uncaught SyntaxError: Unexpected token o in JSON at position 0
    at JSON.parse (<anonymous>)
    at Response.json (deno:op_crates/fetch/26_fetch.js:865:19)
    at async Function.post (https://deno.land/x/[email protected]/request.ts:34:27)
    at async notifyViaSlack (https://deno.land/x/[email protected]/notify-via-slack.ts:17:5)

This looks like it is coming from the https://deno.land/x/request library (because it calls res.json() always on the response and maybe the response from Slack is not valid JSON).

@michael-spengler - I can think of 2 options for this:

  1. We switch to using the fetch API directly in notify-via-slack
  2. We make some sort of "fix" for this in the Request library (in which case, I can move this issue to https://github.com/michael-spengler/request).

What do you think?

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.