Skip to content
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
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- run: npm ci

- run: npm run lint

- run: npm test

- name: Extract changelog for this version
id: changelog
run: |
VERSION="${GITHUB_REF_NAME#v}"
# Extract section between this version header and the next version header
awk "/^## \[${VERSION}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" CHANGELOG.md > /tmp/release-notes.md
cat /tmp/release-notes.md

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body_path: /tmp/release-notes.md
generate_release_notes: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.15.0] - 2026-02-24

### Added
- Community language support: communities can now configure their preferred language (#663).
- Release confirmation feature: users must confirm before releasing funds, preventing accidental releases (#723).
- User command logging: all commands sent by users are now logged to a dedicated log file for auditing (#717).
- Unit tests for utility functions, improving test coverage (#700).
- External health monitoring module: push-based heartbeat system for monitoring bot health via an external service (#753).

### Fixed
- Persian (IRT) translation: corrected currency name from "ریال" to "تومان" (#716).
- Fixed `next_arg` initialization: prevents errors when `match[2]` is undefined in command parsing (#740).

### Changed
- Updated Mongoose from 7.x to 8.17.1 (#725).

### Security
- Bumped `js-yaml` from 4.1.0 to 4.1.1 (#709).
- Bumped `@smithy/config-resolver` from 4.0.1 to 4.4.5 (#720).
- Bumped `axios` from 1.12.0 to 1.13.5 (#742).

## [0.14.3] - 2025-10-27

### Added
Expand Down
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,38 @@ https://help.github.com/articles/signing-commits-with-gpg/ for instructions.
### Keep the git history clean

It's very important to keep the git history clear, light and easily browsable. This means contributors must make sure their pull requests include only meaningful commits (if they are redundant or were added after a review, they should be removed) and _no merge commits_.

### Commit message prefixes

We encourage using conventional prefixes in commit messages:

- `feat:` — new features (bumps minor version)
- `fix:` — bug fixes (bumps patch version)
- `chore:` — maintenance, dependencies, CI
- `docs:` — documentation only
- `test:` — test additions or fixes
- `refactor:` — code changes that don't add features or fix bugs

Example: `feat: add community language support (#663)`

## Quality Gates

Before submitting a PR, make sure all checks pass:

```bash
npm run format # Prettier formatting
npm run lint # ESLint checks
npm test # Mocha test suite
```

CI will run these automatically on your PR.

## Release Process

Releases follow [Semantic Versioning](https://semver.org/):

1. Maintainer updates `version` in `package.json`
2. Updates `CHANGELOG.md` with the new version section
3. Commits: `chore: bump version to vX.Y.Z`
4. Creates and pushes a git tag: `git tag vX.Y.Z && git push origin vX.Y.Z`
5. GitHub Actions automatically creates the GitHub Release with changelog notes
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "lnp2pbot",
"version": "0.14.3",
"version": "0.15.0",
"engines": {
"node": ">=18.0.0"
},
"author": "Francisco Calderón <negrunch@grunch.dev>",
"description": "P2P lightning network telegram bot",
"main": "dist/app.js",
Expand Down
Loading