Skip to content

Commit 1ea9c51

Browse files
committed
fix
1 parent 0dbc43a commit 1ea9c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ app.post('/', bodyParser.json(), async (req, res) => {
4545
return res.sendStatus(500)
4646
}
4747

48-
const finalYamlDocs = parsedYaml.map(py => {
48+
const finalYamlDocs = parsedYaml.map((py, index) => {
4949
if (py.kind !== 'pipeline') return yaml.stringify(py)
5050
if (py.trigger && py.trigger.changeset && py.trigger.changeset.includes) {
5151
const requiredFiles = py.trigger.changeset.includes
@@ -57,7 +57,7 @@ app.post('/', bodyParser.json(), async (req, res) => {
5757
}
5858
}
5959

60-
const trimmedSteps = py.steps.filter((s, index) => {
60+
const trimmedSteps = py.steps.filter(s => {
6161
if (!s.when || !s.when.changeset || !s.when.changeset.includes) return true
6262
const requiredFiles = s.when.changeset.includes
6363
const matchedFiles = glob.match(requiredFiles, filesChanged, { dot: true })

0 commit comments

Comments
 (0)