Skip to content

Commit

Permalink
use-label, ESLInt, and improved logging (#18)
Browse files Browse the repository at this point in the history
Important changes: 
- Node v12 => v16, new usage of `import`/`export`
- Uses new versions of `@actions` toolkit
- Uses ESLint and fixes all lints
- Changed label configuration from `label-x` properties to `use-label`
- Replaced all instances of `console.log` with `core.debug`/`.info`/`.warning`/`.setFailed`
  • Loading branch information
Levi-Lesches authored Jul 20, 2022
1 parent 9d1f43a commit ccd6631
Show file tree
Hide file tree
Showing 305 changed files with 64,730 additions and 35,944 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
}
14 changes: 3 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@ inputs:
description: "The GitHub token to use. Make sure to use a Personal Access Token, so PRs can be updated."
required: false
default: ${{ github.token }}
label-name:
description: "The name of the label that will be added to blocked issues and pull requests."
use-label:
description: "The name of the label to apply to blocked issues or pull requests. If not found, the default value will be used."
required: false
default: "blocked"
label-description:
description: "The description of the label added to blocked issues and pull requests."
required: false
default: "This PR is waiting for one or more issues to be closed."
label-color:
description: "The color of the label added to blocked issues and pull requests."
required: false
default: "000000"
branding:
icon: "git-pull-request"
color: "red"
runs:
using: 'node12'
using: 'node16'
main: 'src/index.js'
307 changes: 307 additions & 0 deletions node_modules/.package-lock.json

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

Loading

0 comments on commit ccd6631

Please sign in to comment.