Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5aa01e4
feat: Smart Watchdog
HarshM1010 Mar 25, 2026
f5430f8
Merge branch 'Lamatic:main' into feat/agentic_watchdog
HarshM1010 Mar 25, 2026
1b9fb2f
chore: address CodeRabbit review feedback and fix env mapping
HarshM1010 Mar 25, 2026
bc7fed0
Merge branch 'feat/agentic_watchdog' of https://github.com/HarshM1010…
HarshM1010 Mar 25, 2026
4ca5266
Delete CHALLENGE.md
HarshM1010 Mar 26, 2026
f0eb9b0
Delete CLAUDE.md
HarshM1010 Mar 26, 2026
a8dc53a
added some minor changes
HarshM1010 Mar 26, 2026
863a153
Merge branch 'feat/agentic_watchdog' of https://github.com/HarshM1010…
HarshM1010 Mar 26, 2026
e052fa4
commented some logs
HarshM1010 Mar 26, 2026
2f06905
solved issues raised by coderabbitai
HarshM1010 Mar 26, 2026
2f0b7f4
resolved the issues raised by the coderabbit
HarshM1010 Mar 26, 2026
e7d1d34
used reactMarkdown to style the response
HarshM1010 Mar 27, 2026
8aee149
Merge branch 'Lamatic:main' into feat/intelligent_watchdog
HarshM1010 Mar 27, 2026
f6a21b1
added the flow directory
HarshM1010 Mar 27, 2026
0ab3d9a
resolved some issues related to timeout and input and response handling
HarshM1010 Mar 27, 2026
cc38262
resolved some minor changes in readme.md and inputs.json file
HarshM1010 Mar 27, 2026
3095fd2
made some changes in readme.md file and reduced the timeout to 40 sec
HarshM1010 Mar 27, 2026
abc5c6d
resolved issues raised by coderabbit
HarshM1010 Mar 27, 2026
6981bb0
Merge branch 'Lamatic:main' into feat/Add-Intelligent-Watchdog-automa…
HarshM1010 Mar 28, 2026
e083075
resolved the issue related to leaky abstraction
HarshM1010 Mar 28, 2026
fb945dc
Merge branch 'feat/Add-Intelligent-Watchdog-automation-kit-for-compet…
HarshM1010 Mar 28, 2026
3a41fbf
fix: correctly map org_name from loop iterator
HarshM1010 Mar 28, 2026
ead9c79
added auth check and rate limiter
HarshM1010 Mar 28, 2026
0e41d9d
Merge branch 'Lamatic:main' into feat/Add-Intelligent-Watchdog-automa…
HarshM1010 Mar 30, 2026
2af9792
Merge branch 'Lamatic:main' into feat/Add-Intelligent-Watchdog-automa…
HarshM1010 Mar 31, 2026
b9bdd6d
used upstash redis rate limiter and moved fetch logic to server side …
HarshM1010 Mar 31, 2026
15d4004
Merge branch 'feat/Add-Intelligent-Watchdog-automation-kit-for-compet…
HarshM1010 Mar 31, 2026
b7edf0b
feat: align folder structure with mission specs
HarshM1010 Mar 31, 2026
608231b
made the answers look more structured
HarshM1010 Mar 31, 2026
b745f04
reverted the changes made in the files outside the project
HarshM1010 Mar 31, 2026
102a792
Merge branch 'Lamatic:main' into feat/Add-Intelligent-Watchdog-automa…
HarshM1010 Apr 1, 2026
1605e7a
Merge branch 'Lamatic:main' into feat/Add-Intelligent-Watchdog-automa…
HarshM1010 Apr 1, 2026
0dab108
changed some files
HarshM1010 Apr 1, 2026
e00692f
Merge branch 'feat/Add-Intelligent-Watchdog-automation-kit-for-compet…
HarshM1010 Apr 1, 2026
1d78d46
refactor: apply coderabbit suggestions
HarshM1010 Apr 1, 2026
b1c28ff
Merge branch 'Lamatic:main' into feat/Add-Intelligent-Watchdog-automa…
HarshM1010 Apr 3, 2026
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
Binary file removed .DS_Store
Binary file not shown.
78 changes: 3 additions & 75 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
if: startsWith(github.event.pull_request.title, 'feat:')
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -24,7 +20,6 @@ jobs:
run: git fetch origin ${{ github.event.pull_request.base.ref }}

- name: Validate contribution structure
id: validate
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
Expand All @@ -42,13 +37,8 @@ jobs:

if [ -z "$CHANGED_FILES" ]; then
echo "No changed files detected."
SUMMARY_FILE="/tmp/pr_validation_summary.md"
{
echo "## PR Validation Results"
echo ""
echo "No contribution files detected in this PR."
} > "$SUMMARY_FILE"
cat "$SUMMARY_FILE" >> "$GITHUB_STEP_SUMMARY"
echo "## PR Validation Results" >> "$GITHUB_STEP_SUMMARY"
echo "No contribution files detected in this PR." >> "$GITHUB_STEP_SUMMARY"
exit 0
fi

Expand Down Expand Up @@ -235,7 +225,6 @@ jobs:

# --- F. Output results to job summary ---

SUMMARY_FILE="/tmp/pr_validation_summary.md"
{
echo "## PR Validation Results"
echo ""
Expand Down Expand Up @@ -315,9 +304,7 @@ jobs:
echo ""
echo "Refer to [CONTRIBUTING.md](./CONTRIBUTING.md) and [CLAUDE.md](./CLAUDE.md) for the expected folder structure."
fi
} > "$SUMMARY_FILE"

cat "$SUMMARY_FILE" >> "$GITHUB_STEP_SUMMARY"
} >> "$GITHUB_STEP_SUMMARY"

# Print to logs as well
if [ ${#ERRORS[@]} -gt 0 ]; then
Expand All @@ -331,62 +318,3 @@ jobs:

echo ""
echo "=== ALL CHECKS PASSED ==="

- name: Post validation results as PR comment
if: always()
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SUMMARY_FILE="/tmp/pr_validation_summary.md"
PR_NUMBER="${{ github.event.pull_request.number }}"
REPO="${{ github.repository }}"

if [ ! -f "$SUMMARY_FILE" ]; then
echo "No summary file found, skipping comment."
exit 0
fi

# Find an existing bot comment that starts with the validation header
COMMENT_ID=$(gh api "repos/$REPO/issues/$PR_NUMBER/comments" \
--jq '.[] | select(.user.type == "Bot" and (.body | startswith("## PR Validation Results"))) | .id' \
| head -1)

if [ -n "$COMMENT_ID" ]; then
gh api "repos/$REPO/issues/comments/$COMMENT_ID" \
--method PATCH \
-f body="$(cat "$SUMMARY_FILE")"
else
gh api "repos/$REPO/issues/$PR_NUMBER/comments" \
--method POST \
-f body="$(cat "$SUMMARY_FILE")"
fi

- name: Apply passing-checks label
if: always()
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER="${{ github.event.pull_request.number }}"
REPO="${{ github.repository }}"
LABEL="passing-checks"

# Ensure the label exists in the repo
if ! gh api "repos/$REPO/labels/$LABEL" --silent 2>/dev/null; then
if gh api "repos/$REPO/labels" \
--method POST \
-f name="$LABEL" \
-f color="0e8a16" \
-f description="All validation checks passed" 2>/dev/null; then
echo "Created label '$LABEL'"
else
echo "Warning: Could not create label '$LABEL' (insufficient permissions or network error)"
fi
fi

if [ "${{ steps.validate.outcome }}" = "success" ]; then
gh pr edit "$PR_NUMBER" --add-label "$LABEL" --repo "$REPO"
echo "Added '$LABEL' label to PR #$PR_NUMBER"
else
gh pr edit "$PR_NUMBER" --remove-label "$LABEL" --repo "$REPO" 2>/dev/null || true
echo "Removed '$LABEL' label from PR #$PR_NUMBER (validation failed)"
fi
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
**/.DS_Store

.env
**/.DS_Store
Loading
Loading