-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add git workflow #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
038799e
feat: add git workflow
sezeme 8601fec
refactor: reduce env variable
sezeme 08efeca
refactor: update yml
sezeme d9df3c7
refactor: 정확한 버전명 기입
sezeme 4ebb803
refactor: remove cache pnpm
sezeme 02521a6
feat: add debug
sezeme 36e9f60
feat: add debugging
sezeme 032b629
feat: add debugging
sezeme 9f6c6a1
feat: add debugging
sezeme cb95e99
feat: 검색 조건 수정
sezeme 1d3515c
feat: add debugging
sezeme 9a5f91b
refactor: 필터 조건 수정
sezeme 863b19a
refactor: 상태 변경 로직 업데이트
sezeme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Sync PR to Notion | ||
|
|
||
| on: | ||
| # 다른 레포에서 호출하는 로직 | ||
| # workflow_call: | ||
| # secrets: | ||
| # NOTION_TOKEN: | ||
| # required: true | ||
| # NOTION_DATABASE_ID: | ||
| # required: true | ||
| # NOTION_PROP_ID: | ||
| # required: true | ||
| # NOTION_PROP_STATUS: | ||
| # required: true | ||
| # NOTION_PROP_PR: | ||
| # required: true | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, closed] | ||
|
|
||
| jobs: | ||
| sync-notion: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 22.17.1 | ||
|
|
||
| - uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 10.13.1 | ||
| run_install: true | ||
|
|
||
| - run: pnpm exec tsx scripts/sync-notion.ts | ||
| env: | ||
| NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | ||
| NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Node.js | ||
| node_modules/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,14 @@ | ||
| # org-actions-template | ||
| 노션 - 깃허브 연동을 위한 자동화 레포지토리 | ||
|
|
||
| ## 설정 | ||
| notion 설정 | ||
| - 식별할 수 있는 기본키 이름이 ID여야 합니다. | ||
|  | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| github secret 설정 | ||
| - 노션 데이터베이스 아이디를 레포지토리 시크릿 키로 저장해야 합니다. 데이터베이스 아이디는 노션 링크의 숫자 부분입니다. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - 시크릿 키 이름은 `NOTION_DATABASE_ID`로 설정해야 합니다. | ||
| ``` | ||
| https://www.notion.so/example/example-227402b843138042a10ec85b1ec04aaf 에서 227402b843138042a10ec85b1ec04aaf 부분 | ||
| ``` | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "name": "org-actions-template", | ||
| "version": "1.0.0", | ||
| "type": "module", | ||
| "main": "index.js", | ||
| "license": "MIT", | ||
| "scripts": { | ||
| "start": "tsx scripts/sync-notion.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@actions/core": "^1.10.0", | ||
| "@actions/github": "^5.0.0", | ||
| "@notionhq/client": "^4.0.1", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "tsx": "^3.12.7" | ||
| }, | ||
| "devDependencies": { | ||
| "typescript": "^5.0.4" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding the
distdirectory to.gitignoreto prevent committing compiled build artifacts. This is a common practice to keep the repository clean.