Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #166 from technote-space/release/next-v5.0.1
Browse files Browse the repository at this point in the history
release: v5.0.2
  • Loading branch information
technote-space authored Nov 13, 2021
2 parents a108f7e + 4887495 commit 6f4d3cd
Show file tree
Hide file tree
Showing 12 changed files with 1,957 additions and 1,135 deletions.
3 changes: 2 additions & 1 deletion .github/workflow-details.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"TOC_FOOTER": "*generated with [TOC Generator](https://github.com/technote-space/toc-generator)*"
"TOC_FOOTER": "*generated with [TOC Generator](https://github.com/technote-space/toc-generator)*",
"RELEASE_GA_DELETE_NODE_MODULES": "true"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/node_modules
/coverage
/lib
/dist
/.work
.eslintcache
.env
5 changes: 3 additions & 2 deletions .releasegarc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"inputs": {
"OUTPUT_BUILD_INFO_FILENAME": "build.json",
"TEST_TAG_PREFIX": "test/",
"CLEAN_TEST_TAG": "true"
"CLEAN_TEST_TAG": "true",
"DELETE_NODE_MODULES": "true"
}
}
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ branding:

runs:
using: node12
main: lib/main.js
main: dist/index.js
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
['@babel/preset-env'],
],
};
5 changes: 2 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ module.exports = {
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest',
},
verbose: true,
coverageDirectory: '<rootDir>/coverage',
preset: 'ts-jest/presets/js-with-babel',
transformIgnorePatterns: ['/node_modules/(?!multimatch|array-union|array-differ)'],
};
2 changes: 1 addition & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { setupGlobal } from '@technote-space/github-action-test-helper';
import {setupGlobal} from '@technote-space/github-action-test-helper';

setupGlobal();
48 changes: 25 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/get-diff-action",
"version": "5.0.1",
"version": "5.0.2",
"description": "GitHub actions to get git diff.",
"keywords": [
"github",
Expand All @@ -25,7 +25,7 @@
"action.yml"
],
"scripts": {
"build": "tsc",
"build": "tsc && yarn ncc build lib/main.js && rm -rf lib",
"cover": "jest --coverage",
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts' --cache",
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
Expand All @@ -37,31 +37,33 @@
"postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable"
},
"dependencies": {
"@actions/core": "^1.5.0",
"@actions/core": "^1.6.0",
"@actions/github": "^5.0.0",
"@technote-space/filter-github-action": "^0.5.46",
"@technote-space/github-action-helper": "^5.2.20",
"@technote-space/github-action-log-helper": "^0.1.40",
"multimatch": "^5.0.0"
"@technote-space/filter-github-action": "^0.5.48",
"@technote-space/github-action-helper": "^5.2.23",
"@technote-space/github-action-log-helper": "^0.1.41",
"multimatch": "^6.0.0"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@technote-space/github-action-test-helper": "^0.7.27",
"@technote-space/release-github-actions-cli": "^1.8.7",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.10",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"eslint": "^7.32.0",
"husky": "^7.0.2",
"jest": "^27.1.0",
"jest-circus": "^27.1.0",
"lint-staged": "^11.1.2",
"nock": "^13.1.3",
"@babel/preset-env": "^7.16.0",
"@commitlint/cli": "^14.1.0",
"@commitlint/config-conventional": "^14.1.0",
"@technote-space/github-action-test-helper": "^0.7.28",
"@technote-space/release-github-actions-cli": "^1.8.8",
"@types/jest": "^27.0.2",
"@types/node": "^16.11.7",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"@vercel/ncc": "^0.31.1",
"eslint": "^8.2.0",
"husky": "^7.0.4",
"jest": "^27.3.1",
"jest-circus": "^27.3.1",
"lint-staged": "^11.2.6",
"nock": "^13.2.1",
"pinst": "^2.1.6",
"ts-jest": "^27.0.5",
"typescript": "^4.4.2"
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions src/process.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type {DiffResult} from './types';
import type {Context} from '@actions/github/lib/context';
import type {Logger} from '@technote-space/github-action-log-helper';
import {exportVariable, getInput, setOutput} from '@actions/core' ;
import {Context} from '@actions/github/lib/context';
import {Logger} from '@technote-space/github-action-log-helper';
import {getGitDiff, getDiffFiles, getMatchedFiles, sumResults} from './utils/command';
import {DiffResult} from './types';

export const dumpDiffs = (diffs: DiffResult[], logger: Logger): void => {
logger.startProcess('Dump diffs');
Expand Down
7 changes: 4 additions & 3 deletions src/utils/command.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type {Options} from 'multimatch';
import type {Context} from '@actions/github/lib/context';
import type {FileDiffResult, FileResult, DiffResult, DiffInfo} from '../types';
import {basename, join} from 'path';
import {getInput} from '@actions/core' ;
import {Context} from '@actions/github/lib/context';
import multimatch, {Options} from 'multimatch';
import multimatch from 'multimatch';
import {Command, Utils, GitHelper} from '@technote-space/github-action-helper';
import {Logger} from '@technote-space/github-action-log-helper';
import {escape, getDiffInfo} from './misc';
import {FileDiffResult, FileResult, DiffResult, DiffInfo} from '../types';
import {REMOTE_NAME} from '../constant';

const command = new Command(new Logger());
Expand Down
6 changes: 3 additions & 3 deletions src/utils/misc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Context} from '@actions/github/lib/context';
import {Octokit} from '@technote-space/github-action-helper/dist/types';
import type {PullRequestParams, DiffInfo} from '../types';
import type {Context} from '@actions/github/lib/context';
import type {Octokit} from '@technote-space/github-action-helper/dist/types';
import {Utils, ApiHelper} from '@technote-space/github-action-helper';
import {PullRequestParams, DiffInfo} from '../types';
import {getInput} from '@actions/core';

export const escape = (items: string[]): string[] => items.map(item => {
Expand Down
Loading

0 comments on commit 6f4d3cd

Please sign in to comment.