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
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

8 changes: 4 additions & 4 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {expect, test} from '@jest/globals'
import {
FileMod,
changedFiles,
fileModsToPaths,
fileModsByStatus
FileMod,
fileModsByStatus,
fileModsToPaths
} from '../src/changed-files'
import {expect, test} from '@jest/globals'

test('test FileMod[] to string[] for filenames', async () => {
const files: FileMod[] = [
Expand Down
81 changes: 81 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.16/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"includes": ["**", "!!**/dist"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"includes": ["**", "!**/dist/", "!**/lib/", "!**/node_modules/"]
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "none",
"arrowParentheses": "asNeeded",
"bracketSpacing": false
}
},
"linter": {
"enabled": true,
"rules": { "recommended": false },
"includes": [
"**",
"!**/dist/",
"!**/lib/",
"!**/node_modules/",
"!**/jest.config.js"
]
},
"overrides": [
{
"includes": ["src/**/*.ts", "src/**/*.tsx"],
"linter": {
"rules": {
"complexity": {
"noStaticOnlyClass": "error"
},
"correctness": {
"noUnusedVariables": "error"
},
"style": {
"noCommonJs": "error",
"noInferrableTypes": "error",
"noNamespace": "error",
"noNonNullAssertion": "warn",
"useArrayLiterals": "error",
"useConsistentArrayType": "error",
"useConsistentMemberAccessibility": {
"level": "error",
"options": { "accessibility": "noPublic" }
},
"useForOf": "warn"
},
"suspicious": {
"noEmptyInterface": "error",
"noExplicitAny": "off",
"noMisleadingInstantiator": "error",
"noTsIgnore": "error"
}
}
}
},
{
"includes": ["**/*.test.ts", "**/*.test.tsx", "__tests__/**/*.ts"],
"linter": {
"rules": {
"suspicious": { "noExplicitAny": "off" }
}
}
}
],
"assist": {
"enabled": true,
"actions": { "source": { "organizeImports": "on" } }
}
}
1 change: 0 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

106 changes: 0 additions & 106 deletions eslint.config.mjs

This file was deleted.

16 changes: 6 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
const core = require('@actions/core');
const github = require('@actions/github');
const core = require('@actions/core')
const github = require('@actions/github')

try {
// get action metadata inputs
const separator = core.getInput('separator');
const patternsToIgnore = core.getInput('ignore_file_patterns');
const patternsToFocus = core.getInput('only_file_patterns');




const separator = core.getInput('separator')
const patternsToIgnore = core.getInput('ignore_file_patterns')
const patternsToFocus = core.getInput('only_file_patterns')

// Get the JSON webhook payload for the event that triggered the workflow
const payload = JSON.stringify(github.context.payload, undefined, 2)
} catch (error) {
core.setFailed(error.message);
core.setFailed(error.message)
}
16 changes: 8 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}
Loading
Loading