Skip to content

Commit

Permalink
Build v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvs committed Jan 2, 2021
1 parent fea9f20 commit c5f3bd6
Show file tree
Hide file tree
Showing 12 changed files with 28,928 additions and 3,117 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
"@typescript-eslint/explicit-function-return-type": ["off", {"allowExpressions": true}],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: actions/checkout@v2
- uses: ./
with:
milliseconds: 1000
keyword: "@nocommit"
28 changes: 0 additions & 28 deletions __tests__/main.test.ts

This file was deleted.

20 changes: 12 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: 'Your name here'
description: 'Provide a description here'
author: 'Your name or organization here'
name: 'Block PR Merges if Keyword Found'
description: "Checks that the added code in a PR doesn't contain a keyword"
author: 'itsvs'
branding:
icon: 'git-pull-request'
color: 'gray-dark'
inputs:
milliseconds: # change this
required: true
description: 'input description here'
default: 'default value if applicable'
github-token:
description: 'Github token, added magically'
keyword:
description: 'Word that must not be contained in the PR code'

runs:
using: 'node12'
main: 'dist/index.js'
main: 'lib/main.js'
Loading

0 comments on commit c5f3bd6

Please sign in to comment.