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

release: v6.1.0 #177

Merged
merged 54 commits into from
Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
7fba4cc
chore: update npm dependencies
technote-space Jan 8, 2022
d498b79
feat: update package version
technote-space Jan 8, 2022
747dfc4
chore: update npm dependencies
technote-space Jan 11, 2022
e699074
chore: update npm dependencies
technote-space Jan 15, 2022
06e418d
chore: update npm dependencies
technote-space Jan 18, 2022
32f8014
chore: update npm dependencies
technote-space Jan 25, 2022
db959f2
chore: update npm dependencies
technote-space Jan 29, 2022
9783778
chore: update npm dependencies
technote-space Feb 1, 2022
6aaf251
chore: update npm dependencies
technote-space Feb 5, 2022
ee9205e
chore: update npm dependencies
technote-space Feb 8, 2022
a144bf9
chore: update npm dependencies
technote-space Feb 12, 2022
d766e4e
chore: update npm dependencies
technote-space Feb 15, 2022
9676e83
chore: update npm dependencies
technote-space Feb 19, 2022
7220e55
chore: update npm dependencies
technote-space Feb 22, 2022
f03017c
chore: update npm dependencies
technote-space Feb 26, 2022
b572344
chore: update npm dependencies
technote-space Mar 1, 2022
a820d0d
chore: update npm dependencies
technote-space Mar 5, 2022
99baffe
chore: update npm dependencies
technote-space Mar 8, 2022
9dd2797
chore: update npm dependencies
technote-space Mar 12, 2022
35b1267
chore: update npm dependencies
technote-space Mar 15, 2022
eb1857f
chore: update npm dependencies
technote-space Mar 19, 2022
cd8e977
chore: update npm dependencies
technote-space Mar 22, 2022
158b54f
chore: update npm dependencies
technote-space Mar 26, 2022
7d20b8e
chore: update npm dependencies
technote-space Mar 29, 2022
7a460ba
chore: update npm dependencies
technote-space Apr 2, 2022
c433bb1
chore: update npm dependencies
technote-space Apr 5, 2022
fed99c1
chore: update npm dependencies
technote-space Apr 9, 2022
782203d
chore: update npm dependencies
technote-space Apr 12, 2022
3f4f533
chore: update npm dependencies
technote-space Apr 16, 2022
88ccd12
chore: update npm dependencies
technote-space Apr 19, 2022
43c940c
chore: update npm dependencies
technote-space Apr 23, 2022
6f7476d
chore: update npm dependencies
technote-space Apr 26, 2022
85cc9cd
chore: update npm dependencies
technote-space Apr 30, 2022
e44d341
chore: update npm dependencies
technote-space May 3, 2022
db9b053
chore: update npm dependencies
technote-space May 7, 2022
2fa8c2f
chore: update npm dependencies
technote-space May 10, 2022
8d6089d
chore: update npm dependencies
technote-space May 14, 2022
4fef2b0
chore: update npm dependencies
technote-space May 17, 2022
b3fbc18
chore: update npm dependencies
technote-space May 21, 2022
e1efb87
chore: update npm dependencies
technote-space May 24, 2022
9723204
chore: update npm dependencies
technote-space May 28, 2022
373a4df
chore: update npm dependencies
technote-space May 31, 2022
020a39d
chore: update npm dependencies
technote-space Jun 4, 2022
fb39603
chore: update npm dependencies
technote-space Jun 7, 2022
b71ca7a
chore: update npm dependencies
technote-space Jun 11, 2022
1103147
chore: update npm dependencies
technote-space Jun 14, 2022
e27ccaa
chore: update npm dependencies
technote-space Jun 18, 2022
cedd5ed
Merge remote-tracking branch 'origin/main' into release/next-v6.0.1
technote-space Jun 20, 2022
65c47fb
feat: use vitest
technote-space Jun 20, 2022
6e12156
chore: tweaks
technote-space Jun 20, 2022
3eac854
chore: import order
technote-space Jun 20, 2022
3b102dc
feat: use rollup
technote-space Jun 20, 2022
95cf9d1
chore: tweaks
technote-space Jun 20, 2022
69ecc17
feat: update package version
technote-space Jun 20, 2022
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
51 changes: 9 additions & 42 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"plugin:@typescript-eslint/eslint-recommended"
],
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"import"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -30,29 +31,6 @@
"properties": "always"
}
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
],
"valid-jsdoc": [
"error",
{
"requireReturn": false,
"preferType": {
"String": "string",
"Object": "object",
"Number": "number",
"Function": "function",
"Void": "void"
}
}
],
"quotes": [
"error",
"single",
Expand All @@ -71,12 +49,6 @@
}
}
],
"no-magic-numbers": [
"error",
{
"ignoreArrayIndexes": true
}
],
"eqeqeq": "error",
"block-scoped-var": "error",
"complexity": [
Expand All @@ -85,7 +57,6 @@
"maximum": 20
}
],
"curly": "error",
"default-case": "error",
"dot-location": [
"error",
Expand All @@ -102,16 +73,6 @@
"after": true
}
],
"id-length": [
"error",
{
"min": 2,
"properties": "never",
"exceptions": [
"$"
]
}
],
"indent": [
"error",
2,
Expand Down Expand Up @@ -144,6 +105,12 @@
],
"semi": [
"error"
]
],
"sort-imports": 0,
"import/order": [2, {
"groups": ["type", "builtin", "external", "internal", "parent", "sibling", "index", "object"],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}],
"@typescript-eslint/no-non-null-assertion": "off"
}
}
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ inputs:
GITHUB_TOKEN:
description: Secret GitHub API token used to make API requests.
default: ${{ github.token }}
required: true
required: false
DOT:
description: Dot.
default: '...'
required: true
required: false
BASE:
description: base
required: false
Expand All @@ -23,18 +23,18 @@ inputs:
DIFF_FILTER:
description: Diff filter.
default: 'AMRC'
required: true
required: false
FORMAT:
description: Output format (text or json)
default: text
required: true
required: false
ESCAPE_JSON:
description: Whether to escape when json format.
required: false
SEPARATOR:
description: Separator of diffs.
default: ' '
required: true
required: false
PATTERNS:
description: Target file pattern.
required: false
Expand Down Expand Up @@ -147,5 +147,5 @@ branding:
color: 'orange'

runs:
using: node12
main: dist/index.js
using: node16
main: lib/main.js
12 changes: 0 additions & 12 deletions jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions jest.setup.ts

This file was deleted.

70 changes: 37 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/get-diff-action",
"version": "6.0.1",
"version": "6.1.0",
"description": "GitHub actions to get git diff.",
"keywords": [
"github",
Expand All @@ -25,45 +25,49 @@
"action.yml"
],
"scripts": {
"build": "tsc && yarn ncc build lib/main.js && rm -rf lib",
"cover": "jest --coverage",
"build": "rm -rdf lib && rollup -c",
"cover": "vitest run --coverage",
"postinstall": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/husky ] || husky install",
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts' --cache",
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
"lint": "eslint 'src/**/*.ts' --cache",
"lint:fix": "eslint --fix 'src/**/*.ts'",
"prepublishOnly": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --disable",
"postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable",
"release": "yarn release-ga --test",
"test": "yarn lint && yarn cover",
"test": "yarn lint && yarn typecheck && yarn cover",
"typecheck": "tsc --noEmit",
"update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit"
},
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/github": "^5.0.0",
"@technote-space/filter-github-action": "^0.5.54",
"@technote-space/github-action-helper": "^5.2.27",
"@technote-space/github-action-log-helper": "^0.1.46",
"multimatch": "^6.0.0"
},
"devDependencies": {
"@babel/preset-env": "^7.16.7",
"@commitlint/cli": "^16.0.1",
"@commitlint/config-conventional": "^16.0.0",
"@technote-space/github-action-test-helper": "^0.7.35",
"@technote-space/release-github-actions-cli": "^1.8.9",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"@vercel/ncc": "^0.33.1",
"eslint": "^8.6.0",
"husky": "^7.0.4",
"jest": "^27.4.6",
"jest-circus": "^27.4.6",
"lint-staged": "^12.1.5",
"nock": "^13.2.1",
"pinst": "^2.1.6",
"ts-jest": "^27.1.2",
"typescript": "^4.5.4"
"@actions/core": "^1.9.0",
"@actions/github": "^5.0.3",
"@babel/preset-env": "^7.18.2",
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.3",
"@sindresorhus/tsconfig": "^3.0.1",
"@technote-space/filter-github-action": "^0.6.2",
"@technote-space/github-action-helper": "^5.3.7",
"@technote-space/github-action-log-helper": "^0.2.5",
"@technote-space/github-action-test-helper": "^0.9.7",
"@technote-space/release-github-actions-cli": "^1.9.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@vercel/ncc": "^0.34.0",
"c8": "^7.11.3",
"eslint": "^8.18.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.2",
"multimatch": "^6.0.0",
"nock": "^13.2.7",
"pinst": "^3.0.0",
"rollup": "^2.75.7",
"typescript": "^4.7.4",
"vitest": "^0.15.1"
},
"publishConfig": {
"access": "public"
Expand Down
18 changes: 18 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import pluginCommonjs from '@rollup/plugin-commonjs';
import pluginJson from '@rollup/plugin-json';
import pluginNodeResolve from '@rollup/plugin-node-resolve';
import pluginTypescript from '@rollup/plugin-typescript';

export default {
input: 'src/main.ts',
output: {
file: 'lib/main.js',
format: 'cjs',
},
plugins: [
pluginTypescript(),
pluginNodeResolve(),
pluginCommonjs(),
pluginJson(),
],
};
16 changes: 8 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {resolve} from 'path';
import {setFailed} from '@actions/core';
import {Context} from '@actions/github/lib/context';
import {isTargetEvent} from '@technote-space/filter-github-action';
import {ContextHelper} from '@technote-space/github-action-helper';
import {Logger} from '@technote-space/github-action-log-helper';
import {execute} from './process';
import {TARGET_EVENTS} from './constant';
import { resolve } from 'path';
import { setFailed } from '@actions/core';
import { Context } from '@actions/github/lib/context';
import { isTargetEvent } from '@technote-space/filter-github-action';
import { ContextHelper } from '@technote-space/github-action-helper';
import { Logger } from '@technote-space/github-action-log-helper';
import { TARGET_EVENTS } from './constant';
import { execute } from './process';

const run = async(): Promise<void> => {
const logger = new Logger();
Expand Down
Loading