Skip to content

MidraLab/notion-page-visibility-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notion-page-visibility-checker

目次

how to set up development environment

  1. clone this repository
  2. run docker compose up -d --build
  3. run docker compose exec notion-page-visibility-checker bash

how to use this tool

  1. fork this repository
  2. set environment variables in github environment secrets
    • NOTION_API_KEY : your notion token
    • NOTION_ROOT_PAGE_ID : your notion root page id
    • DISCORD_WEBHOOK_URL : your discord webhook url
  3. set admin role id in app/main.go
		mention := "<@&1052152206750662656>" // admin role id
		content = mention + "公開中の記事:\n" + strings.Join(titlesAndUrls, "\n")
	}