Giter Site home page Giter Site logo

asunlabs / owlly Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 1.0 11.78 MB

Let your Slack team know .env changes instantly. Powered by @developerasun

License: MIT License

Go 31.72% Shell 0.14% NSIS 15.03% HTML 0.43% CSS 0.92% TypeScript 44.93% JavaScript 6.83%
slack confidential internal-tools slack-bot environment-variables dotenv dotenv-files sync-dotenv-slack sync-env-slack react

owlly's Introduction

🦉Owlly

wakatime GitHub last commit code style: prettier

lint-and-format assign

A file-based .env change notifier for your slack team.

demo

Table of Contents

Features

  • Auto-sync .env file changes
  • Watch multiple .env files
  • Provide a clean and intuitive UI
  • Auto-post the update to slack channel as attachment
  • Basic metadata supported: timestamp, .env directory
  • Cross platform supported: Windows, Mac OS(intel, m1 chip)
  • Got a cool hand-drawn logo thanks to @HaidiYJ

logo

Install

Stable

Download stable release here. This is the almost same version with the above GIF demonstration(toast notification added)

Latest

Owlly is under active development. If you want to explore the latest feature and changes, follow below install guide.

Clone this repo. Make sure to install all dependencies.

git clone https://github.com/asunlabs/owlly.git

Look over with development mode.

wails dev

Build it with Wails. This will conveniently compile the project based on your OS and architecture.

wails build

Execute binary.

owlly

Prerequisite

Assumption

Owlly will check if below files exist in your project root and sync if exist.

	envList  = []string{
		".env",
		".env.test",
		".env.development",
		".env.production",
		".env.dev",
		".env.stage",
		".env.prod",
		".env.local",
		".env.development.local",
		".env.test.local",
		".env.production.local",
	}

Owlly ver 0.3.1 is event-based. When form value is submitted in react client side, the value is tossed to go backend by wails. Owlly takes the value and uses for its configuration under the hood.

Slack

In order to use Owlly, you have to

  1. Create a slack bot here
  2. Install the bot to your slack workspace
  3. Issue bot user oauth token and get channel ID to use the bot.

Make sure your bot has proper configuration/privileges to for sending DM. Refer below to set up a permission scope.

bot-permission-scope

Usage

  1. Run Owlly
./owlly-for-windows.exe
./owlly-for-mac
./owlly-for-mac-m1
  1. Update .env files as you wish.
FOO="bar"
  1. Once done, set owlly trigger in your .env. This variable will be a key for Owlly to know if your update is done. So your .env will look like,
AUTHOR="developerasun"
FOO="bar"

# length of OWLLY_DONE > 0 ? send a DM : do nothing
# OWLLY_DONE="true" // add this line when update is done
  1. Click send button. Check your slack channel if the message is sent. Result will look like below.

owlly banner

Workflows

In Owlly, a several groups of automation is configured.

  • auto pull request reviewer
  • auto pull request label by branch name
  • auto format and lint for go codes
  • auto release by push
  • auto dependency tracking
  • auto staled issue checking

If you add some workflows to owlly, I would suggest to develop it with act to check the workflows locally first and then open a pull request.

Note that the act is based on Docker, meaning you have to run Docker daemon first.

# Run act dry-run
act -n push
act -n pull_request

Contribution

Owlly is a open sourc project. Feel free to open a pull request and suggest changes / improvement.

Star History

Star History Chart

Reference

owlly's People

Contributors

developerasun avatar jakesung-harborx avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

ag-go

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.