Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9ce4ca0
🧠 Update README stats
actions-user Oct 28, 2025
af37018
Create pipeline.yml
TheM1ddleM1n Oct 28, 2025
50ceeb6
🧠 Update README stats
actions-user Oct 28, 2025
dbd7152
Delete .github/workflows/updated-readme.yml
TheM1ddleM1n Oct 28, 2025
247bbc1
Delete .github/workflows/black.yml
TheM1ddleM1n Oct 28, 2025
20d6197
Delete .github/workflows/auto-reply.yml
TheM1ddleM1n Oct 28, 2025
5a7f427
Delete .github/workflows/CI.yml
TheM1ddleM1n Oct 28, 2025
042ce93
🧠 Update README stats
actions-user Oct 28, 2025
a7296fb
Update pipeline.yml
TheM1ddleM1n Oct 28, 2025
9c47ce6
🧠 Update README stats
actions-user Oct 28, 2025
21933b7
Update solve_10.py
TheM1ddleM1n Oct 28, 2025
5dd19f8
🧠 Update README stats
actions-user Oct 28, 2025
76126bf
🧠 Update README stats
actions-user Oct 29, 2025
37939e5
🧠 Update README stats
actions-user Oct 30, 2025
99d91dc
🧠 Update README stats
actions-user Oct 31, 2025
9e3ebdf
🧠 Update README stats
actions-user Nov 1, 2025
af51501
🧠 Update README stats
actions-user Nov 2, 2025
e38acaa
🧠 Update README stats
actions-user Nov 3, 2025
6e73825
🧠 Update README stats
actions-user Nov 4, 2025
470c637
🧠 Update README stats
actions-user Nov 5, 2025
a746088
🧠 Update README stats
actions-user Nov 6, 2025
2e2278a
🧠 Update README stats
actions-user Nov 7, 2025
af16f2a
🧠 Update README stats
actions-user Nov 8, 2025
089adbc
🧠 Update README stats
actions-user Nov 9, 2025
32ad73c
🧠 Update README stats
actions-user Nov 10, 2025
dae6068
🧠 Update README stats
actions-user Nov 11, 2025
4a9e8ed
🧠 Update README stats
actions-user Nov 12, 2025
e288bdf
🧠 Update README stats
actions-user Nov 13, 2025
43dc099
🧠 Update README stats
actions-user Nov 14, 2025
ff8ac0f
🧠 Update README stats
actions-user Nov 15, 2025
691dae7
🧠 Update README stats
actions-user Nov 16, 2025
b5b130e
🧠 Update README stats
actions-user Nov 17, 2025
9845df6
🧠 Update README stats
actions-user Nov 18, 2025
11a6b9b
🧠 Update README stats
actions-user Nov 19, 2025
2240222
🧠 Update README stats
actions-user Nov 20, 2025
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
24 changes: 0 additions & 24 deletions .github/workflows/CI.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/auto-reply.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/black.yml

This file was deleted.

115 changes: 115 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: 🚀 CI + CD Pipeline

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Daily at midnight for README updates

permissions:
contents: write
issues: write

jobs:
# Code Quality Checks
code-quality:
runs-on: ubuntu-latest
name: 🔍 Code Quality

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'

- name: Run Codespell
run: pipx run codespell
continue-on-error: true

- name: Run Ruff Check
run: pipx run ruff check --output-format=github
continue-on-error: true

- name: Run Ruff Format
run: pipx run ruff format
continue-on-error: true

- name: Install Black
run: pip install black

- name: Run Black Formatter
run: black .
continue-on-error: true

# Update README Statistics
update-readme:
runs-on: ubuntu-latest
name: 🧠 Update README Stats
if: github.event_name == 'push' || github.event_name == 'schedule'
needs: code-quality

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Count Python files and lines
run: |
PY_FILES=$(find . -name "*.py" | wc -l)
TOTAL_LINES=$(find . -name "*.py" -exec cat {} + | wc -l)
echo "PY_FILES=$PY_FILES" >> $GITHUB_ENV
echo "TOTAL_LINES=$TOTAL_LINES" >> $GITHUB_ENV

- name: Update README.md
run: |
STATS="📄 Total lines of code: $TOTAL_LINES\n🐍 Number of Python files: $PY_FILES"
DATE="🕒 Last updated: $(date -u +"%Y-%m-%d %H:%M UTC")"

sed -i "/<!-- STATS:START -->/,/<!-- STATS:END -->/c\\<!-- STATS:START -->\n$STATS\n<!-- STATS:END -->" README.md
sed -i "/<!-- UPDATED:START -->/,/<!-- UPDATED:END -->/c\\<!-- UPDATED:START -->\n$DATE\n<!-- UPDATED:END -->" README.md

- name: Commit changes
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "actions@github.com"
git add README.md
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "🧠 Update README stats"
git push
fi

# Auto-reply to new issues
auto-reply:
runs-on: ubuntu-latest
name: 🤖 Auto-Reply
if: github.event_name == 'issues' && github.event.action == 'opened'

steps:
- name: Comment on new issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.issue.number;
const username = context.payload.issue.user.login;
const comment = [
`👋 Hello @${username}, thank you for opening an issue!`,
``,
`I will get back to you as soon as I can. - 1501henify`,
``,
`We appreciate your input — Have a great day/night!`
].join('\n');

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
body: comment
});
38 changes: 0 additions & 38 deletions .github/workflows/updated-readme.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Each one is a small step toward becoming a full-stack developer.
✨ **Day 11 of Learning Python** ✨

<!-- STATS:START -->
📄 Total lines of code: 328
📄 Total lines of code: 329
🐍 Number of Python files: 22
<!-- STATS:END -->

<!-- UPDATED:START -->
🕒 Last updated: 2025-10-28 01:51 UTC
🕒 Last updated: 2025-11-20 02:02 UTC
<!-- UPDATED:END -->
6 changes: 3 additions & 3 deletions practie problems/solve_10.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##### PROJECT 1 #######
##### PROJECT No.1 #######
##Write a program that accepts an input from a user about their birth year
##Write an output telling the user his/her age depending on the information provided by the user
user_birthYear = int(input("What's your birth year: "))
user_birthYear = int(input("What is your birth year: "))
year_Const = 2025

print(f"You're {year_Const - user_birthYear} years old.")
print(f"You are {year_Const - user_birthYear} years old.")