mirror of
https://github.com/actions/labeler.git
synced 2026-01-12 16:11:56 +08:00
* push to excess labels to avoid reaching the limit
* build dist
* never set more than 100 labels
* use splice instead of set
* ignore IDE folders
* install @octokit/plugin-retry
* always setLabels
* fix indentations
* fix specs
* add spec for excess labels
* prettier
* licensed cache
* revert to !!core.getInput('sync-labels')
* better warning for exceeded labels
* keep manually-added labels
* nest the dedupe logic
* rename `removeLabel` to `removeLabelFromList` to avoid confusion
* use Sets, and issue a call only if labels have actually changed
* remove IDE config folders from gitignore
* remove obsolete duplucation check
---------
Co-authored-by: Mark Massoud <mark@unrealcloud.io>
51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
{
|
|
"name": "labeler",
|
|
"version": "4.1.0",
|
|
"description": "Labels pull requests by files altered",
|
|
"main": "lib/main.js",
|
|
"scripts": {
|
|
"build": "tsc && ncc build lib/main.js",
|
|
"format": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --write \"**/*.{ts,yml,yaml}\"",
|
|
"format-check": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --check \"**/*.{ts,yml,yaml}\"",
|
|
"lint": "eslint --config ./.eslintrc.js \"**/*.ts\"",
|
|
"lint:fix": "eslint --config ./.eslintrc.js \"**/*.ts\" --fix",
|
|
"test": "jest"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/actions/labeler.git"
|
|
},
|
|
"keywords": [
|
|
"github",
|
|
"actions",
|
|
"label",
|
|
"labeler"
|
|
],
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/core": "^1.10.0",
|
|
"@actions/github": "^5.1.1",
|
|
"@octokit/plugin-retry": "^5.0.2",
|
|
"js-yaml": "^4.1.0",
|
|
"minimatch": "^7.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^27.4.1",
|
|
"@types/js-yaml": "^4.0.5",
|
|
"@types/minimatch": "^5.1.2",
|
|
"@types/node": "^16.11.7",
|
|
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
"@typescript-eslint/parser": "^5.59.11",
|
|
"@vercel/ncc": "^0.36.1",
|
|
"eslint": "^8.42.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-jest": "^27.2.1",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"jest": "^27.5.1",
|
|
"prettier": "^2.8.8",
|
|
"ts-jest": "^27.1.3",
|
|
"typescript": "^4.9.5"
|
|
}
|
|
}
|