Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General repo improvements #8

Merged
merged 5 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/pre.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Pre Commit Lite

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1
- uses: pre-commit-ci/lite-action@v1.0.2
if: always()
11 changes: 1 addition & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_branch: 'main'
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

repos:
- repo: https://github.com/Yelp/detect-secrets
Expand All @@ -34,8 +30,3 @@ repos:
- id: pretty-format-json
args: [--autofix]
- id: trailing-whitespace
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
hooks:
- id: markdownlint-fix
args: [--fix]
32 changes: 13 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,17 @@ needs
## Configure

### Environment Variables
- NODE_TLS_REJECT_UNAUTHORIZED
- set to 0 if you have issues with connecting to plain http
- ACTUAL_URL
- URL to ActualBudget server
- ACTUAL_PASSWORD
- Password for ActualBudget server
- ACTUAL_SYNC_ID
- Special ID for ActualServer, can be found under Settings -> Advanced Settings
-> Sync ID
- DAYS_TO_SYNC
- How many days need to be synced from now
- If count of days bigger than 7, this Service will sync data by 7 days till the end data
- USE_NODE_CRON
- Determines if container will use internal cron or it will closes after synchronising data
- MONO_TOKEN
- Token to your monobank account
- MONO_CARD_N
- N means any numeric value, from 0 and incrementing by 1(like: MONO_CARD_0, MONO_CARD_1 ...)
- its value is a pair of monobank card and actual budget id or name in form MONO_CARD:ACTUAL_ID or MONO_CARD:ACTUAL_NAME

| Environment Variable | Description |
| --- | --- |
| NODE_TLS_REJECT_UNAUTHORIZED | Set to 0 if you have issues with connecting to plain http |
| ACTUAL_URL | URL to ActualBudget server |
| ACTUAL_PASSWORD | Password for ActualBudget server |
| ACTUAL_SYNC_ID | Special ID for ActualServer, can be found under Settings -> Advanced Settings -> Sync ID |
| DAYS_TO_SYNC | How many days need to be synced from now. If count of days bigger than 7, this Service will sync data by 7 days till the end data |
| USE_NODE_CRON | Determines if container will use internal cron or it will closes after synchronising data |
| MONO_TOKEN | Token to your monobank account |
| MONO_CARD_N | N means any numeric value, from 0 and incrementing by 1(like: MONO_CARD_0, MONO_CARD_1 ...). Its value is a pair of monobank card and actual budget id or name in form MONO_CARD:ACTUAL_ID or MONO_CARD:ACTUAL_NAME |

### Deduplication

Expand All @@ -44,3 +36,5 @@ For deduplication to take place you should not Hide decimals (Settings/Formattin
- [x] more that one card
- [ ] docs
- [ ] helm/k8s
- [ ] publish on npm
- [ ] use github docker registry
Loading