Skip to content

Add a GitHub CI to check sorting HttpsExclusions#596

Open
piquark6046 wants to merge 15 commits into
masterfrom
update/bank-ci
Open

Add a GitHub CI to check sorting HttpsExclusions#596
piquark6046 wants to merge 15 commits into
masterfrom
update/bank-ci

Conversation

@piquark6046

@piquark6046 piquark6046 commented Jun 14, 2024

Copy link
Copy Markdown
Member

It does not have lint-staged npm package to check the ordering at only GitHub-hosted workflow runner automatically.
If the CI finds any incorrect ordering in banks.txt file, the workflow run will be failed. Otherwise, the workflow run will be succeeded.

@piquark6046 piquark6046 requested review from Alex-302 and zloyden June 14, 2024 06:18
@piquark6046 piquark6046 changed the title Add a GitHu CI to check sorting HttpsExclusions Add a GitHub CI to check sorting HttpsExclusions Jun 14, 2024
@Alex-302

Copy link
Copy Markdown
Member

In this case, all lines will be sorted, including comments //.

  • Sorting should not be applied to comments.
  • After a comment, the sorting should start again.

@piquark6046 piquark6046 marked this pull request as draft June 14, 2024 11:18
@piquark6046 piquark6046 marked this pull request as ready for review June 14, 2024 11:44
@Alex-302 Alex-302 requested a review from scripthunter7 June 25, 2024 09:05

@scripthunter7 scripthunter7 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I left some comments, please take a look

Comment thread .github/workflows/lint.yml Outdated
Comment thread package.json Outdated
Comment thread tools/banks.mts Outdated
Comment thread tools/banks.mts Outdated
Comment thread tools/banks.mts Outdated
piquark6046 and others added 2 commits June 25, 2024 09:39
Co-authored-by: scripthunter7 <d.tota@adguard.com>
Comment thread tools/banks.mts
Comment thread tsconfig.json
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated

@scripthunter7 scripthunter7 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

cc @Alex-302 I think you can merge it

branches:
- master
paths:
- "**/*.txt"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Both "**/*.txt" can be replaced by a relative path of banks.txt?

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.

Sure, But, it can be extended in the future.

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.

4 participants