Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions __tests__/utils/process1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:1 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[change/new-topic1] has been closed because there is no reference diff',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[32;40m✔\x1b[0m\t[change/new-topic1] has been closed because there is no reference diff',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -233,7 +233,7 @@ describe('execute', () => {
'::group::Deleting reference... [refs/heads/Hello-World/test-21031067]',
'::endgroup::',
'::set-output name=result::succeeded',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-feature] has been closed because there is no reference diff',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-feature] has been closed because there is no reference diff',
]);
});

Expand Down Expand Up @@ -316,7 +316,7 @@ describe('execute', () => {
'::group::Deleting reference... [refs/heads/Hello-World/test-21031067]',
'::endgroup::',
'::set-output name=result::succeeded',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-feature] has been closed because there is no reference diff',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-feature] has been closed because there is no reference diff',
]);
});

Expand Down Expand Up @@ -356,8 +356,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:1 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[change/new-topic1] has been closed because base PullRequest has been closed',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[32;40m✔\x1b[0m\t[change/new-topic1] has been closed because base PullRequest has been closed',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -446,8 +446,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:1 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[change/new-topic1] has been closed because there is no reference diff',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[32;40m✔\x1b[0m\t[change/new-topic1] has been closed because there is no reference diff',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -488,8 +488,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:1 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[change/new-topic1] has been closed because base PullRequest does not exist',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[32;40m✔\x1b[0m\t[change/new-topic1] has been closed because base PullRequest does not exist',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -520,8 +520,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:2 Skipped:0',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic1] not found',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic1] not found',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -550,9 +550,9 @@ describe('execute', () => {
'::group::Target PullRequest Ref [master]',
'::endgroup::',
'::group::Total:3 Succeeded:0 Failed:1 Skipped:2',
'> \x1b[33;40;0m→\x1b[0m\t[feature/new-topic3] This is not target branch',
'> \x1b[33;40;0m→\x1b[0m\t[feature/new-topic4] This is not target branch',
'> \x1b[31;40;0m×\x1b[0m\t[master] parameter [prBranchName] is required.',
'> \x1b[33;40m→\x1b[0m\t[feature/new-topic3] This is not target branch',
'> \x1b[33;40m→\x1b[0m\t[feature/new-topic4] This is not target branch',
'> \x1b[31;40m×\x1b[0m\t[master] parameter [prBranchName] is required.',
'::endgroup::',
]);
});
Expand All @@ -575,9 +575,9 @@ describe('execute', () => {
'::group::Target PullRequest Ref [master]',
'::endgroup::',
'::group::Total:3 Succeeded:0 Failed:1 Skipped:2',
'> \x1b[33;40;0m→\x1b[0m\t[fork1:feature/new-topic3] PR from fork',
'> \x1b[33;40;0m→\x1b[0m\t[fork2:feature/new-topic4] PR from fork',
'> \x1b[31;40;0m×\x1b[0m\t[master] parameter [prBranchName] is required.',
'> \x1b[33;40m→\x1b[0m\t[fork1:feature/new-topic3] PR from fork',
'> \x1b[33;40m→\x1b[0m\t[fork2:feature/new-topic4] PR from fork',
'> \x1b[31;40m×\x1b[0m\t[master] parameter [prBranchName] is required.',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -650,7 +650,7 @@ describe('execute', () => {
'[command]git diff \'HEAD..origin/feature/new-feature\' --name-only',
'::set-output name=result::not changed',
'::endgroup::',
'> \x1b[33;40;0m✔\x1b[0m\t[feature/new-feature] There is no diff',
'> \x1b[33;40m✔\x1b[0m\t[feature/new-feature] There is no diff',
]);
});

Expand Down Expand Up @@ -695,7 +695,7 @@ describe('execute', () => {
'> There is no diff.',
'::set-output name=result::not changed',
'::endgroup::',
'> \x1b[33;40;0m✔\x1b[0m\t[test/change] There is no diff',
'> \x1b[33;40m✔\x1b[0m\t[test/change] There is no diff',
]);
});
});
Expand Down
64 changes: 32 additions & 32 deletions __tests__/utils/process2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('execute', () => {
'::group::Creating comment to PullRequest...',
'::set-output name=result::succeeded',
'::endgroup::',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-feature] updated',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-feature] updated',
]);
});

Expand Down Expand Up @@ -227,7 +227,7 @@ describe('execute', () => {
'[command]git diff \'HEAD..origin/feature/new-feature\' --name-only',
'::set-output name=result::not changed',
'::endgroup::',
'> \x1b[33;40;0m✔\x1b[0m\t[feature/new-feature] There is no diff',
'> \x1b[33;40m✔\x1b[0m\t[feature/new-feature] There is no diff',
]);
});

Expand Down Expand Up @@ -327,8 +327,8 @@ describe('execute', () => {
'[command]git diff \'HEAD..origin/change/new-topic2\' --name-only',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:0 Skipped:2',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic1] This is close event',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic2] This is close event',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic1] This is close event',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic2] This is close event',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -404,8 +404,8 @@ describe('execute', () => {
'[command]git diff \'HEAD..origin/change/new-topic1\' --name-only',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:0 Skipped:2',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic1] This is close event',
'> \x1b[33;40;0m→\x1b[0m\t[change/new-topic2] duplicated (test/test-branch)',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic1] This is close event',
'> \x1b[33;40m→\x1b[0m\t[change/new-topic2] duplicated (test/test-branch)',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -493,8 +493,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:1 Skipped:1',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic1] This is close event',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic1] This is close event',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -554,7 +554,7 @@ describe('execute', () => {
'[command]git push origin test:refs/heads/test',
'::set-output name=result::succeeded',
'::endgroup::',
'> \x1b[32;40;0m✔\x1b[0m\t[test] updated',
'> \x1b[32;40m✔\x1b[0m\t[test] updated',
]);
});

Expand Down Expand Up @@ -633,7 +633,7 @@ describe('execute', () => {
'::group::Creating comment to PullRequest...',
'::set-output name=result::succeeded',
'::endgroup::',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-feature] updated',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-feature] updated',
]);
});

Expand Down Expand Up @@ -723,8 +723,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:1 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[change/new-topic1] updated',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[32;40m✔\x1b[0m\t[change/new-topic1] updated',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -815,8 +815,8 @@ describe('execute', () => {
'> Creating comment to PullRequest...',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:0 Skipped:1',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-topic3] updated',
'> \x1b[33;40;0m→\x1b[0m\t[feature/new-topic4] duplicated (Hello-World/test-branch)',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-topic3] updated',
'> \x1b[33;40m→\x1b[0m\t[feature/new-topic4] duplicated (Hello-World/test-branch)',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -898,8 +898,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:1 Skipped:1',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic1] There is no diff',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic1] There is no diff',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -979,8 +979,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:1 Skipped:1',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic1] There is no diff',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic1] There is no diff',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -1065,7 +1065,7 @@ describe('execute', () => {
'> Creating comment to PullRequest...',
'::endgroup::',
'::group::Total:1 Succeeded:1 Failed:0 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[master] updated',
'> \x1b[32;40m✔\x1b[0m\t[master] updated',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -1134,9 +1134,9 @@ describe('execute', () => {
'{}',
'::endgroup::',
'::group::Total:3 Succeeded:0 Failed:1 Skipped:2',
'> \x1b[31;40;0m×\x1b[0m\t[feature/new-topic3] command [git status] exited with code undefined. message: test error',
'> \x1b[33;40;0m→\x1b[0m\t[feature/new-topic4] duplicated (Hello-World/test-branch)',
'> \x1b[33;40;0m→\x1b[0m\t[master] duplicated (Hello-World/test-branch)',
'> \x1b[31;40m×\x1b[0m\t[feature/new-topic3] command [git status] exited with code undefined. message: test error',
'> \x1b[33;40m→\x1b[0m\t[feature/new-topic4] duplicated (Hello-World/test-branch)',
'> \x1b[33;40m→\x1b[0m\t[master] duplicated (Hello-World/test-branch)',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -1237,9 +1237,9 @@ describe('execute', () => {
'{}',
'::endgroup::',
'::group::Total:3 Succeeded:0 Failed:3 Skipped:0',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic1] command [git status] exited with code undefined. message: test error',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[31;40;0m×\x1b[0m\t[master] command [git status] exited with code undefined. message: test error',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic1] command [git status] exited with code undefined. message: test error',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[31;40m×\x1b[0m\t[master] command [git status] exited with code undefined. message: test error',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -1326,7 +1326,7 @@ describe('execute', () => {
'[command]git push origin Hello-World/test-21031067:refs/heads/Hello-World/test-21031067',
'::set-output name=result::succeeded',
'::endgroup::',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-feature] updated',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-feature] updated',
]);
});

Expand Down Expand Up @@ -1469,7 +1469,7 @@ describe('execute', () => {
'[command]git push origin test/change:refs/heads/test/change',
'::set-output name=result::succeeded',
'::endgroup::',
'> \x1b[32;40;0m✔\x1b[0m\t[test/change] updated',
'> \x1b[32;40m✔\x1b[0m\t[test/change] updated',
]);
});

Expand Down Expand Up @@ -1546,7 +1546,7 @@ describe('execute', () => {
getLogStdout(['label1', 'label2']),
'::set-output name=result::succeeded',
'::endgroup::',
'> \x1b[32;40;0m✔\x1b[0m\t[feature/new-feature] PullRequest created',
'> \x1b[32;40m✔\x1b[0m\t[feature/new-feature] PullRequest created',
]);
});

Expand Down Expand Up @@ -1649,8 +1649,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:1 Failed:1 Skipped:0',
'> \x1b[32;40;0m✔\x1b[0m\t[change/new-topic1] has been auto merged',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[32;40m✔\x1b[0m\t[change/new-topic1] has been auto merged',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down Expand Up @@ -1747,8 +1747,8 @@ describe('execute', () => {
'::group::Target PullRequest Ref [change/new-topic2]',
'::endgroup::',
'::group::Total:2 Succeeded:0 Failed:1 Skipped:1',
'> \x1b[33;40;0m✔\x1b[0m\t[change/new-topic1] There is no diff',
'> \x1b[31;40;0m×\x1b[0m\t[change/new-topic2] not found',
'> \x1b[33;40m✔\x1b[0m\t[change/new-topic1] There is no diff',
'> \x1b[31;40m×\x1b[0m\t[change/new-topic2] not found',
'::endgroup::',
]);
});
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/github-action-pr-helper",
"version": "1.10.1",
"version": "1.10.2",
"description": "PullRequest Helper for GitHub Actions.",
"keywords": [
"github",
Expand Down Expand Up @@ -37,22 +37,22 @@
"@actions/core": "^1.2.6",
"@actions/github": "^4.0.0",
"@technote-space/filter-github-action": "^0.5.5",
"@technote-space/github-action-helper": "^4.0.3",
"@technote-space/github-action-helper": "^4.0.4",
"moment": "^2.29.1"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@technote-space/github-action-test-helper": "^0.6.1",
"@types/jest": "^26.0.14",
"@types/node": "^14.11.5",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"eslint": "^7.10.0",
"@types/node": "^14.11.10",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"eslint": "^7.11.0",
"husky": "^4.3.0",
"jest": "^26.5.2",
"jest-circus": "^26.5.2",
"lint-staged": "^10.4.0",
"jest": "^26.5.3",
"jest-circus": "^26.5.3",
"lint-staged": "^10.4.2",
"nock": "^13.0.4",
"ts-jest": "^26.4.1",
"typescript": "^4.0.3"
Expand Down
Loading