generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Notion ID prefix to PR (#35)
* Init * adding idempotency to the logic * adding binary * refactoring * adding binary * adding tests and bumping up version * feat: adding branch name as prefix to to PR title * adding binary * Update test.yml
- Loading branch information
1 parent
dcdcbd0
commit 166bb7c
Showing
13 changed files
with
4,378 additions
and
12,556 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,12 +1,8 @@ | ||
import {getAttachedIssues} from '../src/core/github' | ||
import {expect, test} from '@jest/globals' | ||
import Github from '../src/core/github' | ||
|
||
test('throws invalid action', async () => { | ||
const input: any = { | ||
owner: 'MathGaps', | ||
name: 'notion-issue-sync', | ||
pr: 11 | ||
} | ||
|
||
await expect(getAttachedIssues('invalid token', input)).rejects.toThrow() | ||
test('Github class test', function () { | ||
expect(() => { | ||
new Github('invalid token', '{"wrong": "input"}') | ||
}).toThrowError() | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.