-
Notifications
You must be signed in to change notification settings - Fork 7
ci: Add super-linter for pull requests #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0e21c62
ci: Add super-linter for pull requests
CrawlerCode 2bf603b
fix: Install deps
CrawlerCode 7aa97e5
fix: Some fixes
CrawlerCode 0e7bc51
fix: More fixes
CrawlerCode 64384b9
fix: Add more
CrawlerCode a4b833d
fix: Move configs
CrawlerCode 804fac5
fix: Fix zizmor
CrawlerCode 8d9ea8d
Merge branch 'beta' of https://github.com/CrawlerCode/redmine-time-tr…
CrawlerCode d70e7f8
fix: Add stylelint & fix github actions
CrawlerCode 04daacd
fix: Fix more
CrawlerCode 6895baf
Merge branch 'beta' of https://github.com/CrawlerCode/redmine-time-tr…
CrawlerCode 18abdce
fix: Fix md
CrawlerCode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| body: | ||
| - type: textarea | ||
| attributes: | ||
| label: Describe the feature you'd like | ||
| description: A clear and concise description of what you want to happen | ||
| validations: | ||
| required: true | ||
| --- | ||
| body: | ||
| - type: textarea | ||
| attributes: | ||
| label: Describe the feature you'd like | ||
| description: A clear and concise description of what you want to happen | ||
| validations: | ||
| required: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| name: Report an issue | ||
| description: Create a report to help us improve | ||
| labels: ["bug"] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| blank_issues_enabled: false | ||
| contact_links: | ||
| - name: Feature request / Ideas | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [codespell] | ||
| skip = */src/lang/*.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "extends": ["../../stylelint.config.mjs"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import config from "../../eslint.config.mjs"; | ||
|
|
||
| export default config; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| rules: | ||
| unpinned-uses: | ||
| config: | ||
| policies: | ||
| "*": ref-pin | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| name: Lint | ||
|
|
||
| on: | ||
| pull_request: null | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
| statuses: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| cache: "pnpm" | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: super-linter | ||
| uses: super-linter/super-linter/slim@v8.4.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| IGNORE_GITIGNORED_FILES: true | ||
| STRIP_DEFAULT_WORKSPACE_FOR_REGEX: true | ||
| FILTER_REGEX_EXCLUDE: ^(CHANGELOG\.md|pnpm-lock\.yaml)$ | ||
| VALIDATE_BIOME_FORMAT: false # Prettier is used instead | ||
| VALIDATE_BIOME_LINT: false # Prettier is used instead | ||
| VALIDATE_JSCPD: false # TODO: Enable this linter in the future to detect code duplication |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,45 @@ | ||
| name: Publish Pre-Release | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - prereleased | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| publish-chrome-pre-release: | ||
| name: Publish Pre-Release to Chrome Web Store | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm run build:chrome:pre-release | ||
|
|
||
| - run: gh release upload ${{ github.event.release.tag_name }} $(ls .output/*-chrome.zip) | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.TOKEN }} | ||
|
|
||
| - run: pnpm wxt submit --chrome-zip .output/*-chrome.zip | ||
| env: | ||
| CHROME_EXTENSION_ID: adgcdimdkkaddeopcabokepmaihfhklb | ||
| CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
| CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
| CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
| --- | ||
| name: Publish Pre-Release | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - prereleased | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| publish-chrome-pre-release: | ||
| name: Publish Pre-Release to Chrome Web Store | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm run build:chrome:pre-release | ||
|
|
||
| - run: gh release upload "${RELEASE_TAG}" "$(ls .output/*-chrome.zip)" | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| RELEASE_TAG: ${{ github.event.release.tag_name }} | ||
|
|
||
| - run: pnpm wxt submit \ | ||
| --chrome-zip .output/*-chrome.zip | ||
| env: | ||
| CHROME_EXTENSION_ID: adgcdimdkkaddeopcabokepmaihfhklb | ||
| CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
| CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
| CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,64 +1,78 @@ | ||
| name: Publish | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - released | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| publish-chrome: | ||
| name: Publish to Chrome Web Store | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm run build:chrome:release | ||
|
|
||
| - run: gh release upload ${{ github.event.release.tag_name }} $(ls .output/*-chrome.zip) | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.TOKEN }} | ||
| - run: pnpm wxt submit --chrome-zip .output/*-chrome.zip | ||
| env: | ||
| CHROME_EXTENSION_ID: ldcanhhkffokndenejhafhlkapflgcjg | ||
| CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
| CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
| CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
|
|
||
| publish-firefox: | ||
| name: Publish to Firefox Addon Store | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm run build:firefox:release | ||
|
|
||
| - run: gh release upload ${{ github.event.release.tag_name }} $(ls .output/*-firefox.zip) | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.TOKEN }} | ||
|
|
||
| - run: pnpm wxt submit --firefox-zip .output/*-firefox.zip --firefox-sources-zip .output/*-sources.zip | ||
| env: | ||
| FIREFOX_EXTENSION_ID: "{ea2ad5bc-e458-414d-8565-5cfe9f7cf0c2}" | ||
| FIREFOX_JWT_ISSUER: ${{ secrets.FIREFOX_JWT_ISSUER }} | ||
| FIREFOX_JWT_SECRET: ${{ secrets.FIREFOX_JWT_SECRET }} | ||
| --- | ||
| name: Publish | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - released | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| publish-chrome: | ||
| name: Publish to Chrome Web Store | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm run build:chrome:release | ||
|
|
||
| - run: gh release upload "${RELEASE_TAG}" "$(ls .output/*-chrome.zip)" | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| RELEASE_TAG: ${{ github.event.release.tag_name }} | ||
| - run: pnpm wxt submit --chrome-zip .output/*-chrome.zip | ||
| env: | ||
| CHROME_EXTENSION_ID: ldcanhhkffokndenejhafhlkapflgcjg | ||
| CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
| CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
| CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
|
|
||
| publish-firefox: | ||
| name: Publish to Firefox Addon Store | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm run build:firefox:release | ||
|
|
||
| - run: gh release upload "${RELEASE_TAG}" "$(ls .output/*-firefox.zip)" | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| RELEASE_TAG: ${{ github.event.release.tag_name }} | ||
|
|
||
| - run: pnpm wxt submit \ | ||
| --firefox-zip .output/*-firefox.zip \ | ||
| --firefox-sources-zip .output/*-sources.zip | ||
| env: | ||
| FIREFOX_EXTENSION_ID: "{ea2ad5bc-e458-414d-8565-5cfe9f7cf0c2}" | ||
| FIREFOX_JWT_ISSUER: ${{ secrets.FIREFOX_JWT_ISSUER }} | ||
| FIREFOX_JWT_SECRET: ${{ secrets.FIREFOX_JWT_SECRET }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| CHANGELOG.md | ||
| pnpm-lock.yaml | ||
| src/routeTree.gen.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,24 @@ | ||
| ## Redmine dev setup | ||
| # Redmine dev setup | ||
|
|
||
| This folder provides local Redmine instances for manual testing against multiple Redmine versions. | ||
|
|
||
| ### Start a version | ||
| ## Start a version | ||
|
|
||
| Run from this directory: | ||
| Run from this directory (`.redmine`): | ||
|
|
||
| ```bash | ||
| cd .redmine | ||
| docker compose up -d redmine-v6 | ||
| ``` | ||
|
|
||
| Available services and ports: | ||
|
|
||
| - Redmine 6: http://localhost:3006 (service `redmine-v6`) | ||
| - Redmine 5: http://localhost:3005 (service `redmine-v5`) | ||
| - Redmine 4: http://localhost:3004 (service `redmine-v4`) | ||
| - Redmine 3: http://localhost:3003 (service `redmine-v3`) | ||
| - Redmine 2: http://localhost:3002 (service `redmine-v2`) | ||
| - Redmine 6: [http://localhost:3006](http://localhost:3006) (service `redmine-v6`) | ||
| - Redmine 5: [http://localhost:3005](http://localhost:3005) (service `redmine-v5`) | ||
| - Redmine 4: [http://localhost:3004](http://localhost:3004) (service `redmine-v4`) | ||
| - Redmine 3: [http://localhost:3003](http://localhost:3003) (service `redmine-v3`) | ||
| - Redmine 2: [http://localhost:3002](http://localhost:3002) (service `redmine-v2`) | ||
|
|
||
| ### Notes | ||
| ## Notes | ||
|
|
||
| - [Default credentials](https://hub.docker.com/_/redmine#accessing-the-application): `admin`/`admin` | ||
| - [Themes](https://www.redmine.org/projects/redmine/wiki/theme_list) are mounted from `.redmine/themes` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.