@@ -40,7 +40,7 @@ describe('nexusphp/no-merge-commits main', () => {
4040 process . env [ 'INPUT_TOKEN' ] = ''
4141
4242 await expect ( runner ( ) ) . rejects . toThrowError ( 'Input required and not supplied: token' )
43- assertWritten ( [ '\x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ] )
43+ assertWritten ( [ '::notice:: \x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ] )
4444 } )
4545
4646 it ( 'fails when status code is not HTTP 200' , async ( ) => {
@@ -64,14 +64,14 @@ describe('nexusphp/no-merge-commits main', () => {
6464 await expect ( runner ( ) ) . rejects . toThrowError ( 'Retrieving the commits of the pull request failed with HTTP 422 status code.' )
6565
6666 assertWritten ( [
67- '\x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ,
67+ '::notice:: \x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ,
6868 '\x1B[32m[INFO] Token collected.\x1B[0m' ,
69- '\x1B[37m[NOTICE] Instantiating an Octokit client using token...\x1B[0m' ,
69+ '::notice:: \x1B[37m[NOTICE] Instantiating an Octokit client using token...\x1B[0m' ,
7070 '\x1B[32m[INFO] Octokit client is ready.\x1B[0m' ,
71- '\x1B[37m[NOTICE ] Looking up owner: me\x1B[0m' ,
72- '\x1B[37m[NOTICE ] Looking up repository: awesome\x1B[0m' ,
73- '\x1B[37m[NOTICE ] Looking up pull request number: 1\x1B[0m' ,
74- '\x1B[37m[NOTICE] Retrieving commits of PR #1...\x1B[0m' ,
71+ '::debug:: \x1B[37m[DEBUG ] Looking up owner: me\x1B[0m' ,
72+ '::debug:: \x1B[37m[DEBUG ] Looking up repository: awesome\x1B[0m' ,
73+ '::debug:: \x1B[37m[DEBUG ] Looking up pull request number: 1\x1B[0m' ,
74+ '::notice:: \x1B[37m[NOTICE] Retrieving commits of PR #1...\x1B[0m' ,
7575 ] )
7676 } )
7777
@@ -108,16 +108,16 @@ describe('nexusphp/no-merge-commits main', () => {
108108 await expect ( runner ( ) ) . resolves . toBeUndefined ( )
109109
110110 assertWritten ( [
111- '\x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ,
111+ '::notice:: \x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ,
112112 '\x1B[32m[INFO] Token collected.\x1B[0m' ,
113- '\x1B[37m[NOTICE] Instantiating an Octokit client using token...\x1B[0m' ,
113+ '::notice:: \x1B[37m[NOTICE] Instantiating an Octokit client using token...\x1B[0m' ,
114114 '\x1B[32m[INFO] Octokit client is ready.\x1B[0m' ,
115- '\x1B[37m[NOTICE ] Looking up owner: me\x1B[0m' ,
116- '\x1B[37m[NOTICE ] Looking up repository: awesome\x1B[0m' ,
117- '\x1B[37m[NOTICE ] Looking up pull request number: 1\x1B[0m' ,
118- '\x1B[37m[NOTICE] Retrieving commits of PR #1...\x1B[0m' ,
115+ '::debug:: \x1B[37m[DEBUG ] Looking up owner: me\x1B[0m' ,
116+ '::debug:: \x1B[37m[DEBUG ] Looking up repository: awesome\x1B[0m' ,
117+ '::debug:: \x1B[37m[DEBUG ] Looking up pull request number: 1\x1B[0m' ,
118+ '::notice:: \x1B[37m[NOTICE] Retrieving commits of PR #1...\x1B[0m' ,
119119 '\x1B[32m[INFO] PR #1 contains 1 commit.\x1B[0m' ,
120- '\x1B[37m[NOTICE] Inspecting commit SHA: 819a33b\x1B[0m' ,
120+ '::notice:: \x1B[37m[NOTICE] Inspecting commit SHA: 819a33b\x1B[0m' ,
121121 '\x1B[32m[INFO] No merge commits found in this pull request.\x1B[0m' ,
122122 ] )
123123 } )
@@ -160,17 +160,17 @@ describe('nexusphp/no-merge-commits main', () => {
160160 await expect ( runner ( ) ) . rejects . toThrowError ( 'Merge commits were found in this pull request.' )
161161
162162 assertWritten ( [
163- '\x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ,
163+ '::notice:: \x1B[37m[NOTICE] Collecting token from input...\x1B[0m' ,
164164 '\x1B[32m[INFO] Token collected.\x1B[0m' ,
165- '\x1B[37m[NOTICE] Instantiating an Octokit client using token...\x1B[0m' ,
165+ '::notice:: \x1B[37m[NOTICE] Instantiating an Octokit client using token...\x1B[0m' ,
166166 '\x1B[32m[INFO] Octokit client is ready.\x1B[0m' ,
167- '\x1B[37m[NOTICE ] Looking up owner: me\x1B[0m' ,
168- '\x1B[37m[NOTICE ] Looking up repository: awesome\x1B[0m' ,
169- '\x1B[37m[NOTICE ] Looking up pull request number: 1\x1B[0m' ,
170- '\x1B[37m[NOTICE] Retrieving commits of PR #1...\x1B[0m' ,
167+ '::debug:: \x1B[37m[DEBUG ] Looking up owner: me\x1B[0m' ,
168+ '::debug:: \x1B[37m[DEBUG ] Looking up repository: awesome\x1B[0m' ,
169+ '::debug:: \x1B[37m[DEBUG ] Looking up pull request number: 1\x1B[0m' ,
170+ '::notice:: \x1B[37m[NOTICE] Retrieving commits of PR #1...\x1B[0m' ,
171171 '\x1B[32m[INFO] PR #1 contains 1 commit.\x1B[0m' ,
172- '\x1B[37m[NOTICE] Inspecting commit SHA: 819a33b\x1B[0m' ,
173- '\x1B[31m[ERROR] Commit SHA 819a33b is a merge commit!\x1B[0m' ,
172+ '::notice:: \x1B[37m[NOTICE] Inspecting commit SHA: 819a33b\x1B[0m' ,
173+ '::error:: \x1B[31m[ERROR] Commit SHA 819a33b is a merge commit!\x1B[0m' ,
174174 ] )
175175 } )
176176} )
0 commit comments