Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
gebv committed Jan 22, 2022
0 parents commit ef32f6a
Show file tree
Hide file tree
Showing 39 changed files with 4,717 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Snapshot

on:
push:
tags:
- 'v*.*.*'

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Install goreleaser
uses: goreleaser/goreleaser-action@v2
with:
install-only: true

- name: Release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
95 changes: 95 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
env:
- CGO_ENABLED=0
- GO111MODULE=on
before:
hooks:
- go mod tidy
- go mod download
builds:
- env:
goos:
- darwin
- windows
- linux
goarch:
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
mod_timestamp: '{{ .CommitTimestamp }}'
binary: asap-tools-cli
flags:
- -trimpath
main: ./cmd/asap-tools-cli/main.go
ldflags: >
-s
-X github.com/gebv/asap-tools/version.Version={{.Version}}
-X github.com/gebv/asap-tools/versionGitCommit={{.Commit}}
-X github.com/gebv/asap-tools/versionBuildDate={{.Date}}
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
name_template: '{{.Version}}-SNAPSHOT-{{.ShortCommit}}'
release:
footer: |
**Full Changelog**: https://github.com/gebv/asap-tools/compare/{{ .PreviousTag }}...{{ .Tag }}
github:
owner: gebv
name: asap-tools
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: zip
files:
- README.md
- LICENSE
# TODO: add example config

changelog:
sort: asc
use: github
filters:
exclude:
- "^chore:"
- "^chore\\(deps\\):"
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch
- '^MERGE'
- "{{ .Tag }}"
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Other work
order: 999

brews:
- name: asap-tools
folder: Formula
tap:
owner: gebv
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
homepage: https://github.com/gebv/asap-tools
description: The asap-tools it is collection of tools to simplify daily monotonous monotonous cases. For syncing tasks between ClickUp teams and more.
license: MIT
test: |
system "#{bin}/asap-tools-cli -v"
install: |
bin.install "asap-tools"
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 GB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
release:
goreleaser release --skip-validate --rm-dist
build:
time goreleaser build --debug --snapshot --skip-publish --rm-dist --skip-validate --timeout 3m
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# asap-tools

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/George.Bach)
[![GitHub Release](https://img.shields.io/github/release/gebv/asap-tools)](https://github.com/gebv/asap-tools/releases/latest)

The `asap-tools` it is collection of tools to simplify daily monotonous monotonous cases.

In the arsenal today:
- syncing tasks (mirror tasks) between ClickUp teams
- WIP saving conversations from Slack
- TODO syncing tasks between ClickUp and Notion

## Sync ClickUp

Features
- create mirror-task and sync (TODO more details)
- Firestore (database from Google Firebase) is used as permanent storage

TODO:
- (draft) magic-action comments and syncing comments
- (draft) sync with another task tracker (GitHub, ...)
- (draft) hook from changed task - send to another task tracker (GitHub, ...)
- (draft) hook from changed task - send to messenger (telegram, ...)
- (draft) support for custom fields (really necessary?)

You can help (contact me via github issues)
- add new API methods or expand models (add missing fields)
- implement webhooks
- offer a new features to the arsenal of the sync ClickUp tasks
- bug reports are welcome
- writing e2e tests (manual testing is tired)

---

## For The Developer

How to develop custom storage models read more [here](storage/README.md)
An example of use [here](clickup/model.go)
7 changes: 7 additions & 0 deletions clickup/api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**NOTE: The current API client does not cover all methods and DTOs provided by the ClickUp API**

Link to official documentation https://clickup20.docs.apiary.io/

For retry mechanism and correctly serves 429 status used github.com/hashicorp/go-retryablehttp.

The webhook is not implemented and WIP.
Loading

0 comments on commit ef32f6a

Please sign in to comment.