mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 12:07:32 +00:00
Merge branch 'main' into v4-general-refactoring
This commit is contained in:
@@ -169,7 +169,6 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -202,10 +201,10 @@ on:
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: label-the-PR
|
||||
uses: actions/labeler@v4
|
||||
|
||||
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -174,11 +174,11 @@ function getLabelGlobs(client, configurationPath) {
|
||||
let configurationContent;
|
||||
try {
|
||||
if (!fs_1.default.existsSync(configurationPath)) {
|
||||
core.info(`The configuration file (path: ${configurationPath}) isn't not found locally, fetching via the api`);
|
||||
core.info(`The configuration file (path: ${configurationPath}) was not found locally, fetching via the api`);
|
||||
configurationContent = yield fetchContent(client, configurationPath);
|
||||
}
|
||||
else {
|
||||
core.info(`The configuration file (path: ${configurationPath}) is found locally, reading from the file`);
|
||||
core.info(`The configuration file (path: ${configurationPath}) was found locally, reading from the file`);
|
||||
configurationContent = fs_1.default.readFileSync(configurationPath, {
|
||||
encoding: 'utf8'
|
||||
});
|
||||
|
||||
782
package-lock.json
generated
782
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -35,15 +35,15 @@
|
||||
"@types/js-yaml": "^4.0.5",
|
||||
"@types/minimatch": "^5.1.2",
|
||||
"@types/node": "^16.11.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
||||
"@typescript-eslint/parser": "^5.62.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
||||
"@typescript-eslint/parser": "^6.1.0",
|
||||
"@vercel/ncc": "^0.36.1",
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint": "^8.46.0",
|
||||
"eslint-config-prettier": "^8.9.0",
|
||||
"eslint-plugin-jest": "^27.2.3",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"jest": "^27.5.1",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier": "^3.0.0",
|
||||
"ts-jest": "^27.1.3",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
|
||||
@@ -19,14 +19,14 @@ export const getLabelGlobs = (
|
||||
.then(() => {
|
||||
if (!fs.existsSync(configurationPath)) {
|
||||
core.info(
|
||||
`The configuration file (path: ${configurationPath}) isn't not found locally, fetching via the api`
|
||||
`The configuration file (path: ${configurationPath}) was not found locally, fetching via the api`
|
||||
);
|
||||
|
||||
return getContent(client, configurationPath);
|
||||
}
|
||||
|
||||
core.info(
|
||||
`The configuration file (path: ${configurationPath}) is found locally, reading from the file`
|
||||
`The configuration file (path: ${configurationPath}) was found locally, reading from the file`
|
||||
);
|
||||
|
||||
return fs.readFileSync(configurationPath, {
|
||||
|
||||
Reference in New Issue
Block a user