Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/leaderboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
REPO_URL: ${{ steps.extract.outputs.repo_url }}
run: |
# SAFE: REPO_URL comes from workflow output, not direct user input
ORG_REPO=$(echo "$REPO_URL" | sed 's|https://github.com/||' | sed 's|\.git$||')
ORG_REPO=$(echo "$REPO_URL" | sed 's|git@github.com:||' | sed 's|https://github.com/||' | sed 's|\.git$||')

IS_PRIVATE=$(gh repo view "$ORG_REPO" --json isPrivate -q '.isPrivate')

Expand All @@ -106,7 +106,7 @@ jobs:
SUBMITTER: ${{ github.event.pull_request.user.login }}
run: |
# SAFE: All values in environment variables
ORG_REPO=$(echo "$REPO_URL" | sed 's|https://github.com/||' | sed 's|\.git$||')
ORG_REPO=$(echo "$REPO_URL" | sed 's|git@github.com:||' | sed 's|https://github.com/||' | sed 's|\.git$||')

if gh api "/repos/$ORG_REPO/collaborators/$SUBMITTER" 2>/dev/null; then
echo "✅ $SUBMITTER is a collaborator on $ORG_REPO"
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.27.5](https://github.com/ambient-code/agentready/compare/v2.27.4...v2.27.5) (2026-02-17)


### Bug Fixes

* **cli:** Use removesuffix instead of rstrip for .git URL stripping ([#292](https://github.com/ambient-code/agentready/issues/292)) ([6bd08cf](https://github.com/ambient-code/agentready/commit/6bd08cf50d541ed4a73ed347d43da48a4a540f3f))

## [2.27.4](https://github.com/ambient-code/agentready/compare/v2.27.3...v2.27.4) (2026-02-17)


Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

AgentReady is a Python CLI tool that evaluates repositories against a comprehensive set of carefully researched attributes that make codebases more effective for AI-assisted development. It generates interactive HTML reports, version-control friendly Markdown reports, and machine-readable JSON output.

**Current Status**: v2.27.4 - Core assessment engine complete, most essential assessors implemented, LLM-powered learning, research report management
**Current Status**: v2.27.5 - Core assessment engine complete, most essential assessors implemented, LLM-powered learning, research report management

**Self-Assessment Score**: 80.0/100 (Gold) - See `examples/self-assessment/`

Expand Down Expand Up @@ -446,7 +446,7 @@ Use the `github-pages-docs` agent for documentation updates after:
---

**Last Updated**: 2026-02-17 by Jeremy Eder
**AgentReady Version**: 2.27.4
**AgentReady Version**: 2.27.5
**Self-Assessment**: 80.0/100 (Gold) ✨

### GitHub Actions Guidelines
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "agentready"
version = "2.27.4"
version = "2.27.5"
description = "Assess and bootstrap git repositories for AI-assisted development with automated remediation and continuous learning"
authors = [{name = "Jeremy Eder", email = "jeder@redhat.com"}]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/agentready/cli/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def extract_repo_info(assessment_data: dict) -> tuple[str, str, float, str]:
try:
# Handle SSH format: git@github.com:org/repo.git
if repo_url.startswith("git@github.com:"):
org_repo = repo_url.split("git@github.com:")[1].rstrip(".git")
org_repo = repo_url.split("git@github.com:")[1].removesuffix(".git")
# Handle HTTPS format: https://github.com/org/repo.git
else:
org_repo = repo_url.split("github.com/")[1].strip("/").rstrip(".git")
org_repo = repo_url.split("github.com/")[1].strip("/").removesuffix(".git")

org, repo = org_repo.split("/")
except (IndexError, ValueError):
Expand Down
2 changes: 1 addition & 1 deletion src/agentready/services/repository_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_repository_name_from_url(self, url: str) -> str:
# For URLs, extract from the last part of the path
# https://github.com/user/repo.git -> repo
parsed = urlparse(url)
path = parsed.path.rstrip("/").rstrip(".git")
path = parsed.path.rstrip("/").removesuffix(".git")
return Path(path).name or "repository"

def clone_repository(
Expand Down
Loading
Loading