Skip to content

folder level validation#65

Merged
ruowan merged 9 commits into
masterfrom
ruowan/folder-level-validation
Dec 30, 2020
Merged

folder level validation#65
ruowan merged 9 commits into
masterfrom
ruowan/folder-level-validation

Conversation

@ruowan

@ruowan ruowan commented Dec 23, 2020

Copy link
Copy Markdown
Member

No description provided.

@ruowan

ruowan commented Dec 23, 2020

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@ruowan ruowan closed this Dec 23, 2020
@ruowan ruowan reopened this Dec 23, 2020
@ruowan ruowan changed the title Ruowan/folder level validation folder level validation Dec 23, 2020
Comment thread src/index.ts
const fileChanges = await pr.diff()
// collect all errors from the 'sourceBranch'
await pr.checkout(pr.sourceBranch)
const sourceMap = await avocadoForDir(path.resolve(pr.workingDir, dir))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the source branch does not have the dir ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will return empty map and only report new errors.

Comment thread src/index.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants