-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ef32f6a
Showing
39 changed files
with
4,717 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# asap-tools | ||
|
||
[](https://www.buymeacoffee.com/George.Bach) | ||
[](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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.