Skip to content

Commit

Permalink
Upgrade trunk to 1.22.3-beta.26 (#830)
Browse files Browse the repository at this point in the history
[![Trunk](https://static.trunk.io/assets/trunk_action_upgrade_banner.png)](https://trunk.io)

cli upgraded: 1.22.3-beta.9 → 1.22.3-beta.26

This PR was generated by the [Trunk Action]. For more info, see our
[docs] or reach out on [Slack].

[Trunk Action]: https://github.com/trunk-io/trunk-action
[docs]: https://docs.trunk.io
[Slack]: https://slack.trunk.io/

---------

Co-authored-by: TylerJang27 <[email protected]>
Co-authored-by: Tyler Jang <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2024
1 parent a06c24b commit c204d0a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 0.1

# version used for local trunk runs and testing
cli:
version: 1.22.3-beta.9
version: 1.22.3-beta.26
shell_hooks:
enforce: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`Testing linter markdownlint test basic 1`] = `
"code": "MD025",
"file": "test_data/basic.in.md",
"issueClass": "ISSUE_CLASS_EXISTING",
"issueUrl": "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#MD025",
"issueUrl": "https://github.com/DavidAnson/markdownlint/blob/vx.x.x/doc/md025.md",
"level": "LEVEL_LOW",
"line": "3",
"linter": "markdownlint",
Expand Down
2 changes: 1 addition & 1 deletion tests/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface FileIssue {
targetPath?: string;
autofixOptions?: Autofix[];
ranges?: any[];
issueUrl: string;
issueUrl?: string;
belowThreshold?: boolean;
}

Expand Down
7 changes: 7 additions & 0 deletions tests/utils/landing_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,14 @@ const normalizeRange = ({ filePath: _filePath = undefined, ...rest }) => ({
...rest,
});

const normalizeIssueUrl = (issueUrl: string) =>
issueUrl.replace(/markdownlint\/blob\/v[0-9.]+\//gm, "markdownlint/blob/vx.x.x/").trim();

const normalizeIssues = ({
message: _message,
targetPath: _targetPath,
file: _file,
issueUrl: _issueUrl,
autofixOptions: _autofixOptions = [],
ranges: _ranges,
...rest
Expand All @@ -107,6 +111,9 @@ const normalizeIssues = ({
if (_autofixOptions.length > 0) {
ret.autofixOptions = _autofixOptions.map(normalizeAutofix);
}
if (_issueUrl) {
ret.issueUrl = normalizeIssueUrl(_issueUrl);
}
return ret;
};

Expand Down

0 comments on commit c204d0a

Please sign in to comment.