An open API service indexing awesome lists of open source software.

https://github.com/linyows/notion-agent

:guardsman: Detects publicly accessible pages in a workspace for Notion.
https://github.com/linyows/notion-agent

Last synced: 28 days ago
JSON representation

:guardsman: Detects publicly accessible pages in a workspace for Notion.

Awesome Lists containing this project

README

        





Notion Agent notifies public pages to Slack channel from GAS.





Usage
-----

1. Deploy this
```sh
$ npm i
$ npx clasp login
$ npx clasp create 'Notion Agent' --rootDir ./src
$ npx clasp push
```
1. Set script properties as ENV(File > Project properties > Script properties)
- NOTION_ACCESS_TOKEN
- NOTION_WORKSPACE
- SLACK_ACCESS_TOKEN
- SLACK_CHANNEL
1. Add project trigger(Edit > Current project's triggers > Add trigger)
- Choose which function to run: `main`
- Which run at deployment: `head`
- Select event source: `Time-driven`
- Select type of time based trigger: `Minute timer`
- Select hour interval: `Every 10 minutes`

Contribution
------------

1. Fork (https://github.com/linyows/notion-agent/fork)
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `npm ci` command and confirm that it passes
1. Create a new Pull Request

Author
------

[linyows](https://github.com/linyows)