This commit is contained in:
Michael Shick 2023-04-24 08:17:41 -04:00
commit a5ba281881
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
6 changed files with 50 additions and 47 deletions

View file

@ -15,6 +15,8 @@ const simpleMessage = 'hello world'
type Inputs = {
message: string | undefined
'message-path': string | undefined
'repo-owner': string
'repo-name': string
'repo-token': string
'message-id': string
'allow-repeats': string
@ -28,6 +30,8 @@ type Inputs = {
const defaultInputs: Inputs = {
message: '',
'message-path': undefined,
'repo-owner': 'foo',
'repo-name': 'bar',
'repo-token': repoToken,
'message-id': 'add-pr-comment',
'allow-repeats': 'false',
@ -172,7 +176,7 @@ describe('add-pr-comment action', () => {
expect(core.setOutput).toHaveBeenCalledWith('comment-created', 'true')
})
it.only('creates a comment in another repo', async () => {
it('creates a comment in another repo', async () => {
inputs.message = simpleMessage
inputs['repo-owner'] = 'my-owner'
inputs['repo-name'] = 'my-repo'