{"id":13907776,"url":"https://github.com/noah0316/notion-github-issue-sync","last_synced_at":"2025-07-18T06:31:07.859Z","repository":{"id":179945154,"uuid":"455921482","full_name":"noah0316/notion-github-issue-sync","owner":"noah0316","description":"Github Actions를 사용해 Github issue와 Notion 데이터베이스를 동기화하여 Notion에서 팀원들과 진행상황을 쉽게 공유해보세요🥳","archived":false,"fork":false,"pushed_at":"2022-02-16T11:59:38.000Z","size":37,"stargazers_count":84,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-25T16:39:10.069Z","etag":null,"topics":["docker","docker-compose","dockerfile","github-actions","node-js","notion","notion-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noah0316.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-05T16:23:57.000Z","updated_at":"2024-07-10T18:34:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"c96023ad-b063-46dc-865a-dad6c4822781","html_url":"https://github.com/noah0316/notion-github-issue-sync","commit_stats":null,"previous_names":["noah0316/notion-github-issue-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noah0316/notion-github-issue-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noah0316%2Fnotion-github-issue-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noah0316%2Fnotion-github-issue-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noah0316%2Fnotion-github-issue-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noah0316%2Fnotion-github-issue-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noah0316","download_url":"https://codeload.github.com/noah0316/notion-github-issue-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noah0316%2Fnotion-github-issue-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265710536,"owners_count":23815374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","dockerfile","github-actions","node-js","notion","notion-api"],"created_at":"2024-08-06T23:02:10.082Z","updated_at":"2025-07-18T06:31:07.847Z","avatar_url":"https://github.com/noah0316.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Github Actions x notion-sdk-js x docker\n\n![Slide 16_9 - 4](https://user-images.githubusercontent.com/63908856/152655178-313e853a-faff-40af-bbe2-b43d00f6bec3.png)\n\n## Demo\n ![screencast 2022-02-06 02-55-56](https://user-images.githubusercontent.com/63908856/152653248-95228c28-97f2-4584-a486-cc6d64a2eb97.gif)\n\n## Abstract\n[notion-sdk-js](https://github.com/makenotion/notion-sdk-js/tree/main/examples/notion-github-sync)는 \nNotion 데이터베이스와 Github의 issue의 를 동기화시켜주는 Node-JS application 입니다.  \n이를 사용하기 위해선 사용자가 local computer에 dependency module을 install 한 후에  \n사용자가 직접 `node index.js` 명령어를 사용해 실행해주어 실행 시점을 기준으로 Notion 데이터베이스와 Github의 issue를 동기화합니다.  \n\n사용자의 편의를 향상시키기 위해 해당 Node-JS application을 Dockerizing하여  \nNotion 데이터베이스와 Github issue 연동을 Github Actions에서 사용자가 쉽게 사용할 수 있게 구성하였습니다.\n\n## Usage\n\n아래의 Workflow 정의를 통해   \n별도의 install 과정 없이 쉽게 여러분의 Repo에서 Github Issue와 Notion 데이터베이스 연동을 구성할 수 있습니다.\n\n```yml\non:\n  issues:\n    types: [opened, reopened, closed, deleted]\njobs:\n  build:\n    runs-on: ubuntu-latest\n    name: \"Run github issue notion sync\"\n    steps:\n      - uses: actions/checkout@v2\n      - name: create env file\n        run: |\n          touch .env\n          echo PERSONAL_GITHUB_ACCESS_KEY=${{ secrets.PERSONAL_GITHUB_ACCESS_KEY }} \u003e\u003e .env\n          echo NOTION_KEY=${{ secrets.NOTION_KEY }} \u003e\u003e .env\n          echo NOTION_DATABASE_ID=${{ secrets.NOTION_DATABASE_ID }} \u003e\u003e .env\n          echo REPO_OWNER=${{ secrets.REPO_OWNER }} \u003e\u003e .env\n          echo REPO_NAME=${{ secrets.REPO_NAME }} \u003e\u003e .env\n      - name: docker compose up\n        run: docker-compose --env-file .env up\n```\n\n본 Application을 Github Actions에서 사용하기 위해서는 5개의 환경변수(environment variable)를 필요로 합니다.\n1. PERSONAL_GITHUB_ACCESS_KEY: Github Personal Access Token\n2. NOTION_KEY: Notion API KEY\n3. NOTION_DATABASE_ID: Notion Database ID\n4. REPO_OWNER: Github Repository Owner\n5. REPO_NAME: Github Repository Name\n---\n## STEP 1\n- GitHub Personal Access token을 발급받는 방법은 해당 가이드를 참조해주세요!  [here](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token).  \n## STEP 2\n- Notion API key를 발급받는 방법은 해당 가이드를 참조해주세요! [here](https://www.notion.com/my-integrations)\n## STEP 3\n- NOTION_DATABASE_ID를 발급받기 위해 먼저 해당 [DataBase template](https://www.notion.com/367cd67cfe8f49bfaf0ac21305ebb9bf?v=bc79ca62b36e4c54b655ceed4ef06ebd)을 여러분의 Notion workspace에 복제해주세요!\n\n![Notion](https://user-images.githubusercontent.com/63908856/152652176-92e61d13-0759-45b3-b41a-d4521bb62ac3.png)\n\n- 발급받은 integration을 DataBase template이 있는 Notion에 초대해줍니다.\n\n- Notion Database ID는 다음과 같습니다.  \n해당 Notion Page를 공유했을 때 나오는 link는 다음과 같이 생겼을 것입니다.  \n`https://www.notion.com/367cd67cfe8f49bfaf0ac21305ebb9bf?v=bc79ca62b36e4c54b655ceed4ef06ebd`  \n위 링크에서 데이터베이스의 ID는  \n367cd67cfe8f49bfaf0ac21305ebb9bf입니다.\n\n\n- 아래의 링크에서 long_hash_1이 Notion Database의 ID입니다.  \n`https://www.notion.so/\u003clong_hash_1\u003e?v=\u003clong_hash_2\u003e`  \n모든 링크의 패턴이 위와 같습니다.   \n\n## STEP 4\n- 발급 받은 키들을 Repo의 환경변수로 등록합니다.\n\n1. 연동을 원하는 Repo의 Settings 탭으로 이동합니다.\n2. Secrets의 Actions button을 click 해주세요.\n![Screen Shot 2022-02-06 at 2 38 14](https://user-images.githubusercontent.com/63908856/152652504-acf7f59a-8f3d-4e46-8aad-13baaa287d2d.png)\n3. New Repository Secret button을 이용해 Repository Secret을 등록합니다.\n![repo](https://user-images.githubusercontent.com/63908856/152652563-7a4b8619-f414-4d0a-892a-a8c525ded6c6.png)\n4. 현재 Repository에서 REPO_OWNER는 noah0316이며,  \n   REPO_NAME은 notion-github-issue-sync입니다. \n![Screen Shot 2022-02-06 at 2 41 21](https://user-images.githubusercontent.com/63908856/152652614-a452da1b-84c9-4feb-94df-12be2b270887.png)\n\n## STEP 5\n- 해당 [docker-compose.yml](https://github.com/noah0316/notion-github-issue-sync/blob/main/docker-compose.yml) 파일을 여러분의 Repo에 upload해주세요!\n\n---\n\n이제 모든 설정이 끝났습니다!!\n\n이제 Workflow 구성을 통해 Notion과 Github Issue가 연동되는 것을 확인하세요!!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoah0316%2Fnotion-github-issue-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoah0316%2Fnotion-github-issue-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoah0316%2Fnotion-github-issue-sync/lists"}