JS library to interact with Forgejo API to work with notifications
https://forgejo-notifications-core.docs.forgeflux.org/
Aravinth Manivannan
25716d289e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
---|---|---|
.reuse | ||
integration | ||
LICENSES | ||
src | ||
.gitignore | ||
.nvmrc | ||
.woodpecker.yml | ||
docker-compose-dev-deps.yml | ||
jest.config.ts | ||
Makefile | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
setupJest.js |
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