eslint check the .github/actions-scripts/* files too (#23698)
* eslint check the .github/actions-scripts/* files too * but ignore node_modules/.bin/* * fix errors * last one * feedbacked
This commit is contained in:
@@ -134,8 +134,8 @@ async function run() {
|
||||
// Exclude existing items going forward.
|
||||
// Until we have a way to check from a PR whether the PR is in a project,
|
||||
// this is how we (roughly) avoid overwriting PRs that are already on the board
|
||||
let newItemIDs = []
|
||||
let newItemAuthors = []
|
||||
const newItemIDs = []
|
||||
const newItemAuthors = []
|
||||
itemIDs.forEach((id, index) => {
|
||||
if (!existingItemIDs.includes(id)) {
|
||||
newItemIDs.push(id)
|
||||
|
||||
@@ -85,8 +85,8 @@ async function run() {
|
||||
// - affected docs sets (not considering changes to data/assets)
|
||||
let numFiles = 0
|
||||
let numChanges = 0
|
||||
let features = new Set([])
|
||||
const files = data.item.files.nodes.forEach((node) => {
|
||||
const features = new Set([])
|
||||
data.item.files.nodes.forEach((node) => {
|
||||
numFiles += 1
|
||||
numChanges += node.additions
|
||||
numChanges += node.deletions
|
||||
|
||||
1
.github/workflows/code-lint.yml
vendored
1
.github/workflows/code-lint.yml
vendored
@@ -18,6 +18,7 @@ on:
|
||||
- '**.yaml'
|
||||
- '**.yml'
|
||||
- '**.scss'
|
||||
- .eslintrc.js
|
||||
# In case something like eslint or tsc or prettier upgrades
|
||||
- 'package-lock.json'
|
||||
# Ultimately, for debugging this workflow itself
|
||||
|
||||
Reference in New Issue
Block a user