JS library to interact with Forgejo API to work with notifications https://forgejo-notifications-core.docs.forgeflux.org/
Go to file
Aravinth Manivannan 457ec1603a
ci/woodpecker/push/woodpecker Pipeline failed Details
fix: use tmp/ instead of secrets/
2023-09-18 22:30:02 +05:30
.reuse feat: init 2023-09-16 15:12:35 +05:30
LICENSES feat: init 2023-09-16 15:12:35 +05:30
integration fix: use tmp/ instead of secrets/ 2023-09-18 22:30:02 +05:30
src fix: use tmp/ instead of secrets/ 2023-09-18 22:30:02 +05:30
.gitignore fix: use tmp/ instead of secrets/ 2023-09-18 22:30:02 +05:30
.nvmrc feat: setup jest and typescript 2023-09-18 17:56:31 +05:30
.woodpecker.yml fix: CI: install requests 2023-09-18 22:19:52 +05:30
Makefile feat & fix: use python img for configuraing forgejo instance 2023-09-18 22:18:54 +05:30
README.md feat: basic docs 2023-09-18 20:44:08 +05:30
docker-compose-dev-deps.yml fix: rm file mode from docker compose 2023-09-18 21:47:21 +05:30
jest.config.ts feat: setup test coverage 2023-09-18 20:27:55 +05:30
package.json feat: use typedoc 2023-09-18 20:43:46 +05:30
pnpm-lock.yaml feat: update pnpm 2023-09-18 22:09:14 +05:30
setupJest.js fix: enable fetch api in jest 2023-09-18 19:05:53 +05:30

README.md

Requires your Forgejo instance admin to enable CORS for at least the origin which serves the notification panel. Please see here for more information.

NOTE: The test forgejo configuration may be insecure for your usecase since it allows CORS for all origins with the widest possible surface.

Build

pnpm install
pnpm run build

Compiled library will be available at ./dist/index.js

Docs

pnpm install
pnpm run doc
firefox ./docs/index.html

Tests

There are [scripts][./integration] to setup a Forgejo instance locally, create [bunch of]./integration/lib.sh) of users, repository and issues to test all functionality offered by this library. It might be useful to recreate this environment with make env.up and ./integration/tests.sh for development.

Uses Docker.

pnpm install
make env.up
make test