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

Release preparation #5

Merged
merged 3 commits into from
May 8, 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
51 changes: 51 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
- name: breaking_change
description: Breaking Change
color: f44336

- name: bug
description: Something isn't working
color: f9877f

- name: fix
description: Something isn't working
color: f9877f

- name: bugfix
description: Something isn't working
color: f9877f

- name: feature
description: New feature or request
color: a2eeef

- name: enhancement
description: New feature or request
color: a2eeef

- name: documentation
description: Improvements or additions to documentation
color: 0075ca

- name: dependencies
description: Pull requests that update a dependency file
color: 0366d6

- name: github structure
description: Pull requests that update Github actions/workflow code
color: "000000"

- name: help wanted
description: Extra attention is needed
color: 008672

- name: major
description: Major changes. Used for release bump
color: 16970B

- name: minor
description: Minor changes. Used for release bump
color: 16970B

- name: patch
description: Patch changes. Used for release bump
color: 16970B
64 changes: 64 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "📣 Breaking Changes"
labels:
- "breaking_change"
- title: "🚀 Features"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
labels:
- "maintenance"
- title: "📚 Documentation"
labels:
- "documentation"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&'
version-resolver:
major:
labels:
- "major"
- "breaking_change"
minor:
labels:
- "minor"
- "feature"
- "enhancement"
patch:
labels:
- "patch"
- "fix"
- "bugfix"
- "bug"
- "maintenance"
- "documentation"
default: patch
autolabeler:
- label: "github structure"
files:
- ".github/*"
- label: "documentation"
files:
- "*.md"
- label: "bug"
title:
- "/\\[?(bug)\\]?.*/i"
- label: "bugfix"
title:
- "/\\[?(fix)\\]?.*/i"
- label: "feature"
title:
- "/\\[?(add|feat)\\]?.*/i"
- label: "feature"
title:
- "/\\[?(breaking)\\]?.*/i"
template: |
## Changes
$CHANGES
30 changes: 30 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
release:
types: [published]

jobs:
build:
name: Build Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Get version
id: version
uses: home-assistant/actions/helpers/version@master

- name: Patch manifest and zip
run: |
sed -i 's/0.0.0/${{ steps.version.outputs.version }}/' custom_components/fireflyiii_integration/manifest.json
cd custom_components/fireflyiii_integration/
zip ../../fireflyiii_integration.zip -r ./
- uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./fireflyiii_integration.zip
asset_name: fireflyiii_integration.zip
tag: ${{ github.ref }}
overwrite: true
18 changes: 18 additions & 0 deletions .github/workflows/hacs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: HACS

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
validate:
runs-on: "ubuntu-latest"
name: HACS
steps:
- uses: "actions/checkout@v2"
- name: HACS validation
uses: "hacs/action@main"
with:
CATEGORY: "integration"
15 changes: 15 additions & 0 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Validate with hassfest

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
validate:
name: Validate with hassfest
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: home-assistant/actions/hassfest@master
17 changes: 17 additions & 0 deletions .github/workflows/manage_labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Manage labels

on:
push:
branches:
- master

jobs:
labeler:
name: Update Labels
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/[email protected]

- name: Run Labeler
uses: crazy-max/[email protected]
18 changes: 18 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release Drafter

on:
push:
branches:
- master

pull_request:
types: [opened, reopened, synchronize]

jobs:
update_release_draft:
name: Release Drafter
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 28 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,13 @@
# THIS IS A WORK IN PROGRESS USE AT YOUR OWN RISK!!!!!!!

# REPORT BUGS AND SUGGEST IMPROVEMENTS!!!!

#### Some of the concluded features can change durring Beta

# BETA ROADMAP

- [x] Config Flow \*
- [x] Categories
- [x] Accounts
- [x] Bills in calendar
- [x] Import Piggy Banks
- [x] Import Budgets
- [ ] Services
- [ ] Add to HACS

# Planned Improvements

- [ ] Translations
- [ ] Auto create Webhooks in FireflyIII
- [ ] Handle Webhooks to instant response
- [ ] Tests

\* - Please note that I’ll not be retrofitting configs to versions until its final! So on some releases of beta I’ll add to the release notes a information to delete the integration and add it again. No need to remove from HACS, just remove from Home Assistant and make the config again!

Feedbacks are more than welcome, also feature requests.

#

#

# FireflyIII Integration

_Component to integrate with [FireflyIII][fireflyiii]._

[fireflyiii]: https://www.firefly-iii.org/

This is a custom component developed by me to integrate FireflyIII with Home Assistant, this project is independent from the great work done by James Cole in FireflyIII

[![gh_release](https://img.shields.io/github/v/release/soloam/ha-fireflyiii-integration)](../../releases) [![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://github.com/hacs/integration) [![gh_last_commit]](../../commits/master) [![buy_coffee_badge]](https://www.buymeacoffee.com/soloam)

**This component will set up the following platforms.**

| Platform | Description |
Expand Down Expand Up @@ -73,3 +45,27 @@ You probably do not want to do this! Use the HACS method above unless you know w
</details>

## Configuration is done in the UI

# Planned Improvements

- [ ] Services
- [ ] Translations
- [ ] Auto create Webhooks in FireflyIII
- [ ] Handle Webhooks to instant response
- [ ] Tests

\* - Please note that I’ll not be retrofitting configs to versions until its final! So on some releases of beta I’ll add to the release notes a information to delete the integration and add it again. No need to remove from HACS, just remove from Home Assistant and make the config again!

Feedbacks are more than welcome, also feature requests.

# References

- FieflyIII - https://www.firefly-iii.org/

# I just love coffee and beer

[![buy_coffee]](https://www.buymeacoffee.com/soloam)

[gh_last_commit]: https://img.shields.io/github/last-commit/soloam/ha-fireflyiii-integration
[buy_coffee]: https://www.buymeacoffee.com/assets/img/custom_images/white_img.png
[buy_coffee_badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee-%F0%9F%8D%BA-lightgrey
5 changes: 3 additions & 2 deletions custom_components/fireflyiii_integration/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": [],
"documentation": "https://github.com/soloam/ha-fireflyiii-integration",
"iot_class": "cloud_polling",
"requirements": ["aiohttp", "babel","datetimerange"],
"version": "1.0.0"
"requirements": ["aiohttp", "babel", "datetimerange"],
"version": "0.0.0",
"issue_tracker": "https://github.com/soloam/ha-fireflyiii-integration/issues"
}
5 changes: 4 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "FireflyIII Integration",
"zip_release": true,
"homeassistant": "2024.1.0b0",
"render_readme": true
"render_readme": true,
"persistent_directory": "codes",
"filename": "fireflyiii_integration.zip"
}
Loading