Coder Social home page Coder Social logo

slack-unfurling-redmine's Introduction

slack-unfurling-redmine

A Slack unfruling Lambda function for Redmine. It based on AWS SAM(Serverless application mode).

Inspired by and based on slack-unfurling-esa.

Requirements

  • AWS CLI
  • SAM CLI

Deploy

Slack side

1. Create Slack App

https://api.slack.com/apps

2. Event Subscriptions setting

Enable Events Set to On

App Unfurl Domains Add your redmine url.

Click Save Changes.

3. OAuth & Permissions setting

Added links:write to Scopes.

Click Install App to Workspace.

Remember your OAuth Access Token.

Lambda side

$ aws s3 mb s3://your-sandbox --region ap-northeast-1
$ cd slack-unfurling-redmine
$ bundle install --path vendor/bundle --without test
$ sam package \
    --template-file template.yaml \
    --output-template-file serverless-output.yaml \
    --s3-bucket your-sandbox
$ sam deploy \
    --template-file serverless-output.yaml \
    --stack-name your-slack-unfurling-redmine \
    --capabilities CAPABILITY_IAM \
    --parameter-overrides \
      RedmineAPIAccessKey=your-api-access-key \
      SlackOauthAccessToken=your-slack-oauth-token

Confirm your endpoint url.

(To ignore custom fields, add IgnoreCustomFields=true for parameter-overrides.)

(To skip all fields, add SkipFields=true for parameter-overrides.)

$ aws cloudformation describe-stacks --stack-name your-slack-unfurling-redmine --region ap-northeast-1

Slack side

Input your endpoint url to Request URL in Event Subscriptions.

Click Save Changes.

delete

$ sam delete

slack-unfurling-redmine's People

Contributors

suer avatar dependabot[bot] avatar

Watchers

 avatar

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.