Giter Club home page Giter Club logo

notion-autobot-cli's Introduction

notion_autobot_cli/

Usage:

$ notion_autobot_cli/ [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • discord-test: Test discord webhook.
  • parse: Parse notion debug dump data.
  • poke: Poke notion.
  • today: Generate today's task list markdown report file.

notion_autobot_cli/ discord-test

Test discord webhook.

Usage:

$ notion_autobot_cli/ discord-test [OPTIONS]

Options:

  • --help: Show this message and exit.

notion_autobot_cli/ parse

Parse notion debug dump data.

Usage:

$ notion_autobot_cli/ parse [OPTIONS]

Options:

  • --help: Show this message and exit.

notion_autobot_cli/ poke

Poke notion.

Usage:

$ notion_autobot_cli/ poke [OPTIONS]

Options:

  • --help: Show this message and exit.

notion_autobot_cli/ today

Requests latest data from Notion database and outputs to debug.json file. The data is then parsed and written to a template.

Usage:

$ notion_autobot_cli/ today [OPTIONS]

Options:

  • --debug / --no-debug: Enable debug mode. This is useful when testing locally. When activated, the output is stored in a local .json file, which can be used to test parsing features without making repeated calls to Notion. [default: no-debug]
  • --all-tasks / --no-all-tasks: Retrieve tasks of all types [default: no-all-tasks]
  • --discord / --no-discord: Post to discord [default: no-discord]
  • --help: Show this message and exit.

notion-autobot-cli's People

Contributors

christoff-linde avatar dependabot[bot] avatar

Watchers

 avatar

notion-autobot-cli's Issues

Make Notion task query dynamic

Currently, the notion query points to a specific Notion DB (#1) and parameter/task filters (i.e. status, task type, etc).

These could be expanded to provide output based on:

  • Specific user
  • Specific project
  • Specific task status

Investigate requirements for making package open source

Making the package open source and public would require it to be generic and configurable enough to be usable by other projects. This would include:

  • Setting of login/notion credentials
  • Customisable (and default) templates
  • Customisable queries/filters

Investigate using Vercel Cron Jobs

Vercel Cron Jobs could be used in combination with/as an alternative to using the CLI tool.

The website itself would not have a lot of functionality, but would just serve as a list of currently active jobs, their frequency, and schedule.

The jobs can then either use the existing backend (if it is ever deployed) or use the Official Notion JS SDK to interact with the Notion workspace.

Investigate security requirements/impacts of adding to guest workspaces

When the plugin is added to a workspace you (the author) own, the integration is simple. However, to ensure that the plugin can be added to other workspaces, a outline and/or convention should be established that clearly outlines:

  • Security considerations
  • Required permissions & motivations
  • How to scope access to specific DB/project/page

Implement selectable Notion DB

Currently, the Notion DB param is hardcoded into a .env file. This should be expanded so that different DBs can be specified using either CLI arguments or a config setting

Investigate adding Discord integration

Integration with Discord.py could add the option to directly send/post the current launchpad allocation directly to the relevant channel with a simple command.

For e.g.:

naut today --all-tasks --discord  # get all tasks for the day, compile into list, and post to discord
naut today --discord              # get all maintenance tasks for the day, compile into list, and post to discord

Investigate package hosting/deployment

Currently, the package has to be installed manually using Poetry. This caused the cli tool to only be accessible with the relevant python env activated.

The options and processes for hosting/package deployment should be investigated:

  • Hosting (pypi, JFrog, other?)
  • Installation
  • Build process (GH Actions, other?)

Investigate adding GitLab integration

By integrating a Notion workspace with GitLab, tickets & PRs can be linked. By doing this, the current task list can be updated dynamically as the tasks get completed and/or merged.

For e.g.,

  1. Create initial list and post to discord
  2. When PR for task is created, update sent message with a link to the PR
  3. When a PR is merged, update message to move task to Done state

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.