Skip to content

Commit 99aae2d

Browse files
fix: update deprecated 'lingo.dev auth --login' references to 'lingo.dev login' (#1108)
* fix: update deprecated 'lingo.dev auth --login' references to 'lingo.dev login' - Updated error messages in status.ts, i18n.ts, and init.ts - Replaced all instances of deprecated 'auth --login' command with 'login' - Maintains authentication flow functionality while using current command syntax Fixes #1104 Co-Authored-By: matej@lingo.dev <matej@lednicky.name> * fix: apply prettier formatting to i18n.ts - Fix formatting issue that was causing CI check to fail - Consolidate multi-line error message to single line per prettier rules Co-Authored-By: matej@lingo.dev <matej@lednicky.name> * fix: apply prettier formatting to workflow and config files - Fix formatting issues in .claude/agents/code-architect-reviewer.md - Fix formatting issues in .github/workflows/claude-code-review.yml - Fix formatting issues in .github/workflows/claude-issue-autolabel.yml - Fix formatting issues in .github/workflows/label-all-unlabeled-issues.yml These were pre-existing formatting issues causing CI checks to fail. The core changes to update deprecated 'lingo.dev auth --login' references remain intact. Co-Authored-By: matej@lingo.dev <matej@lednicky.name> * feat: add changeset for deprecated command reference updates - Add changeset for updating 'lingo.dev auth --login' to 'lingo.dev login' - Patch-level change for CLI error message updates - Resolves CI requirement for changeset to be present in PR Co-Authored-By: matej@lingo.dev <matej@lednicky.name> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: matej@lingo.dev <matej@lednicky.name>
1 parent 2834163 commit 99aae2d

8 files changed

Lines changed: 25 additions & 16 deletions

File tree

.changeset/early-shrimps-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
Update deprecated 'lingo.dev auth --login' command references to 'lingo.dev login' in CLI error messages

.claude/agents/code-architect-reviewer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,31 @@ You are an Expert Software Architect and Code Reviewer with deep expertise in cl
99
When reviewing code, you will:
1010

1111
**Architectural Analysis:**
12+
1213
- Evaluate overall code structure and organization
1314
- Assess adherence to SOLID principles and design patterns
1415
- Identify architectural smells and suggest improvements
1516
- Review separation of concerns and modularity
1617
- Analyze dependency management and coupling
1718

1819
**Clean Code Assessment:**
20+
1921
- Review naming conventions for clarity and expressiveness
2022
- Evaluate function and class sizes (single responsibility)
2123
- Check for code duplication and suggest DRY improvements
2224
- Assess readability and self-documenting code practices
2325
- Review error handling and edge case coverage
2426

2527
**Best Practices Validation:**
28+
2629
- Verify adherence to language-specific conventions
2730
- Check for proper use of abstractions and interfaces
2831
- Evaluate testing strategy and testability
2932
- Review performance considerations and potential bottlenecks
3033
- Assess security implications and vulnerabilities
3134

3235
**Review Process:**
36+
3337
1. First, understand the code's purpose and context
3438
2. Analyze the overall architecture and design decisions
3539
3. Examine implementation details for clean code violations
@@ -38,13 +42,15 @@ When reviewing code, you will:
3842
6. Provide concrete, actionable recommendations with examples
3943

4044
**Feedback Format:**
45+
4146
- Start with positive observations about good practices
4247
- Organize feedback by category (Architecture, Clean Code, Performance, etc.)
4348
- For each issue, explain the problem, why it matters, and how to fix it
4449
- Provide code examples for suggested improvements when helpful
4550
- End with a summary of key action items
4651

4752
**Quality Standards:**
53+
4854
- Be thorough but focus on the most impactful improvements
4955
- Explain the reasoning behind each recommendation
5056
- Consider maintainability, scalability, and team collaboration

.github/workflows/claude-code-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99
inputs:
1010
pr_number:
11-
description: 'PR number to review'
11+
description: "PR number to review"
1212
required: false
1313
type: string
1414

@@ -250,4 +250,4 @@ jobs:
250250
- NEVER approve without thorough analysis
251251
- ALWAYS provide actionable feedback with examples
252252
env:
253-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
253+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/claude-issue-autolabel.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
inputs:
88
issue_number:
9-
description: 'Issue number to label'
9+
description: "Issue number to label"
1010
required: false
1111
type: string
1212

@@ -156,4 +156,3 @@ jobs:
156156
- ALWAYS be matter-of-fact and use simple, casual language
157157
env:
158158
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
159-

.github/workflows/label-all-unlabeled-issues.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ jobs:
1010
issues: write
1111
contents: read
1212
actions: write
13-
13+
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

1818
- name: Find and Label Unlabeled Issues
1919
run: |
2020
echo "Finding all issues without 'autolabeled' label..."
21-
21+
2222
# Get all issues without the "autolabeled" label
2323
unlabeled_issues=$(gh issue list --limit 1000 --json number,labels --jq '.[] | select(.labels | map(.name) | contains(["autolabeled"]) | not) | .number')
24-
24+
2525
if [[ -z "$unlabeled_issues" ]]; then
2626
echo "No issues found without 'autolabeled' label"
2727
exit 0
2828
fi
29-
29+
3030
echo "Found issues without 'autolabeled' label:"
3131
echo "$unlabeled_issues"
3232
echo ""
33-
33+
3434
# Process each issue by triggering the labeling workflow
3535
for issue_number in $unlabeled_issues; do
3636
echo "Triggering labeling workflow for issue #$issue_number..."
@@ -42,8 +42,8 @@ jobs:
4242
# Wait a bit to avoid overwhelming the system
4343
sleep 10
4444
done
45-
45+
4646
echo "Triggered labeling workflows for all issues without 'autolabeled' label"
4747
echo "Check workflow runs: gh run list --workflow=claude-issue-autolabel.yml"
4848
env:
49-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

packages/cli/src/cli/cmd/i18n.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export async function validateAuth(settings: ReturnType<typeof getSettings>) {
542542
if (!settings.auth.apiKey) {
543543
throw new CLIError({
544544
message:
545-
"Not authenticated. Please run `lingo.dev auth --login` to authenticate.",
545+
"Not authenticated. Please run `lingo.dev login` to authenticate.",
546546
docUrl: "authError",
547547
});
548548
}
@@ -554,8 +554,7 @@ export async function validateAuth(settings: ReturnType<typeof getSettings>) {
554554
const user = await authenticator.whoami();
555555
if (!user) {
556556
throw new CLIError({
557-
message:
558-
"Invalid API key. Please run `lingo.dev auth --login` to authenticate.",
557+
message: "Invalid API key. Please run `lingo.dev login` to authenticate.",
559558
docUrl: "authError",
560559
});
561560
}

packages/cli/src/cli/cmd/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export default new InteractiveCommand()
234234
}
235235
} else {
236236
Ora().warn(
237-
"You are not logged in. Run `npx lingo.dev@latest auth --login` to login.",
237+
"You are not logged in. Run `npx lingo.dev@latest login` to login.",
238238
);
239239
}
240240
} else {

packages/cli/src/cli/cmd/status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default new Command()
7676
ora.succeed(`Authenticated as ${auth.email}`);
7777
} else {
7878
ora.info(
79-
"Not authenticated. Continuing without authentication. (Run `lingo.dev auth --login` to authenticate)",
79+
"Not authenticated. Continuing without authentication. (Run `lingo.dev login` to authenticate)",
8080
);
8181
}
8282
} catch (error) {

0 commit comments

Comments
 (0)