Compare commits

..

169 Commits

Author SHA1 Message Date
Gitea Action
1a4b276aea Update profile stats 2026-03-22 07:00:56 +00:00
Gitea Action
e514b1dedb Update profile stats 2026-03-22 06:01:58 +00:00
Gitea Action
06b7cc1e26 Update profile stats 2026-03-22 05:02:24 +00:00
Gitea Action
84a5bae75d Update profile stats 2026-03-22 04:02:26 +00:00
Gitea Action
fd03e950b2 Update profile stats 2026-03-22 03:02:27 +00:00
Gitea Action
9b06b91230 Update profile stats 2026-03-22 02:18:26 +00:00
Gitea Action
8b37091e6f Update profile stats 2026-03-22 01:21:47 +00:00
Gitea Action
1936211bb7 Update profile stats 2026-03-14 19:08:33 +00:00
Gitea Action
f10dae243a Update profile stats 2026-03-08 18:06:27 +00:00
Gitea Action
81c899609a Update profile stats 2026-03-08 17:03:16 +00:00
Gitea Action
ab310968a6 Update profile stats 2026-03-08 16:01:51 +00:00
Gitea Action
f25c4c324f Update profile stats 2026-03-08 15:01:21 +00:00
Gitea Action
ef7ae3d289 Update profile stats 2026-03-08 14:02:18 +00:00
Gitea Action
4aba5079cf Update profile stats 2026-03-08 13:01:35 +00:00
Gitea Action
ee576c5594 Update profile stats 2026-03-08 12:01:23 +00:00
Gitea Action
9d25d90893 Update profile stats 2026-03-08 11:01:44 +00:00
Gitea Action
09ed909c1c Update profile stats 2026-03-08 10:01:53 +00:00
Gitea Action
0f299f7f71 Update profile stats 2026-03-08 09:01:45 +00:00
Gitea Action
fdf42fc68d Update profile stats 2026-03-08 08:01:33 +00:00
Gitea Action
b7b82a8736 Update profile stats 2026-03-08 07:01:44 +00:00
Gitea Action
cb5ae0ef3f Update profile stats 2026-03-08 06:01:56 +00:00
Gitea Action
4a3987e5d0 Update profile stats 2026-03-08 05:02:25 +00:00
Gitea Action
403ae7fcbc Update profile stats 2026-03-08 04:02:13 +00:00
Gitea Action
5284712005 Update profile stats 2026-03-08 03:02:30 +00:00
Gitea Action
f27f717249 Update profile stats 2026-03-08 02:02:54 +00:00
Gitea Action
cec0a6cb95 Update profile stats 2026-03-08 01:01:56 +00:00
Gitea Action
035b7e52ee Update profile stats 2026-03-08 00:02:05 +00:00
Gitea Action
6c790d78f2 Update profile stats 2026-03-07 23:02:23 +00:00
Gitea Action
331acf4d8f Update profile stats 2026-03-07 22:01:53 +00:00
Gitea Action
fa10e7fc52 Update profile stats 2026-03-07 21:01:53 +00:00
Gitea Action
3fb8a54fbb Update profile stats 2026-03-07 20:01:31 +00:00
Gitea Action
c4450d7990 Update profile stats 2026-03-07 19:01:17 +00:00
Gitea Action
0a1708c6f4 Update profile stats 2026-03-07 18:02:04 +00:00
Gitea Action
f0be06e303 Update profile stats 2026-03-07 17:00:56 +00:00
Gitea Action
b70c35475e Update profile stats 2026-03-07 15:04:33 +00:00
Gitea Action
e3afcc53c2 Update profile stats 2026-03-07 14:19:28 +00:00
d2b9e66c10 fix: 🐛 Added git pull functionality to workflow.
Added a git pull function to my workflow to allow repo synchronosity.
2026-03-07 14:17:47 +00:00
Gitea Action
e94a65726a Update profile stats 2026-03-05 18:23:08 +00:00
Gitea Action
1367b24436 Update profile stats 2026-03-05 17:09:34 +00:00
Gitea Action
af88cc4305 Update profile stats 2026-03-05 16:04:34 +00:00
Gitea Action
d829ecb79c Update profile stats 2026-03-05 15:01:01 +00:00
Gitea Action
9afdf504d6 Update profile stats 2026-03-05 14:01:06 +00:00
Gitea Action
b517797b10 Update profile stats 2026-03-05 13:55:56 +00:00
7f88e080cc feat: Added new organisation tracking and some basic badges.
Edited the repos table so it contains a badge displaying last commit time, and created a new table displaying current owned organisations.
2026-03-05 13:55:08 +00:00
Gitea Action
d681e06239 Update profile stats 2026-03-05 13:01:02 +00:00
Gitea Action
f26e3adc4c Update profile stats 2026-03-05 12:00:51 +00:00
Gitea Action
758879ba87 Update profile stats 2026-03-05 11:00:48 +00:00
Gitea Action
4a70d27f8b Update profile stats 2026-03-05 10:00:56 +00:00
Gitea Action
e8c3606295 Update profile stats 2026-03-05 09:00:43 +00:00
Gitea Action
3ac2246a7d Update profile stats 2026-03-05 08:00:45 +00:00
Gitea Action
100d4b6dd1 Update profile stats 2026-03-05 07:00:45 +00:00
Gitea Action
839984d5c8 Update profile stats 2026-03-05 06:01:21 +00:00
Gitea Action
34830c406f Update profile stats 2026-03-05 05:00:53 +00:00
Gitea Action
801b73ef29 Update profile stats 2026-03-05 04:00:53 +00:00
Gitea Action
8cca9bc1ae Update profile stats 2026-03-05 03:01:21 +00:00
Gitea Action
a5e30ba57c Update profile stats 2026-03-05 02:01:18 +00:00
Gitea Action
1f50a52519 Update profile stats 2026-03-05 01:00:50 +00:00
Gitea Action
f261436efe Update profile stats 2026-03-05 00:01:08 +00:00
Gitea Action
8f64fa003a Update profile stats 2026-03-04 23:01:01 +00:00
Gitea Action
3c10363e22 Update profile stats 2026-03-04 22:01:23 +00:00
Gitea Action
e463247b08 Update profile stats 2026-03-04 21:01:48 +00:00
Gitea Action
47a5d53408 Update profile stats 2026-03-04 20:01:42 +00:00
Gitea Action
6a5d1ea61b Update profile stats 2026-03-04 19:00:58 +00:00
Gitea Action
0a7f38c71f Update profile stats 2026-03-04 18:01:42 +00:00
Gitea Action
a963c17669 Update profile stats 2026-03-04 17:00:50 +00:00
Gitea Action
2fb69a4aec Update profile stats 2026-03-04 16:00:41 +00:00
Gitea Action
ffa5177cc5 Update profile stats 2026-03-04 15:01:13 +00:00
Gitea Action
8f8d187bde Update profile stats 2026-03-04 14:00:55 +00:00
Gitea Action
fa3c40e493 Update profile stats 2026-03-04 13:00:42 +00:00
Gitea Action
c35f8ddd8a Update profile stats 2026-03-04 12:00:52 +00:00
Gitea Action
c504943f84 Update profile stats 2026-03-04 11:01:50 +00:00
Gitea Action
a821dbfccf Update profile stats 2026-03-04 10:00:56 +00:00
Gitea Action
67480298f8 Update profile stats 2026-03-04 09:00:53 +00:00
Gitea Action
d71561563b Update profile stats 2026-03-04 08:00:45 +00:00
Gitea Action
c5d80fe762 Update profile stats 2026-03-04 07:00:55 +00:00
Gitea Action
c4b80f9c2b Update profile stats 2026-03-04 06:00:53 +00:00
Gitea Action
135c35c7b8 Update profile stats 2026-03-04 05:00:31 +00:00
Gitea Action
99f1f1fc37 Update profile stats 2026-03-04 04:00:49 +00:00
Gitea Action
68d9fe4e9a Update profile stats 2026-03-04 03:01:07 +00:00
Gitea Action
23217107ac Update profile stats 2026-03-04 02:01:11 +00:00
Gitea Action
9789defce1 Update profile stats 2026-03-04 01:00:49 +00:00
Gitea Action
fe3526ad09 Update profile stats 2026-03-04 00:01:07 +00:00
Gitea Action
c1d3bceb2a Update profile stats 2026-03-03 23:01:28 +00:00
Gitea Action
d485837b42 Update profile stats 2026-03-03 22:01:13 +00:00
Gitea Action
70359cba80 Update profile stats 2026-03-03 21:00:56 +00:00
Gitea Action
bcc08a5213 Update profile stats 2026-03-03 20:01:27 +00:00
Gitea Action
b0c69a129a Update profile stats 2026-03-03 19:01:18 +00:00
Gitea Action
0f3a03a88c Update profile stats 2026-03-03 18:01:56 +00:00
Gitea Action
f0627b3c0b Update profile stats 2026-03-03 16:02:23 +00:00
Gitea Action
12e42cbfe3 Update profile stats 2026-03-03 15:02:49 +00:00
Gitea Action
7ebb379b14 Update profile stats 2026-03-03 14:01:59 +00:00
Gitea Action
a01d72085e Update profile stats 2026-03-03 13:01:33 +00:00
Gitea Action
e246710c70 Update profile stats 2026-03-03 12:01:31 +00:00
Gitea Action
2b8184d926 Update profile stats 2026-03-03 11:01:17 +00:00
Gitea Action
fc48d86767 Update profile stats 2026-03-03 10:01:54 +00:00
Gitea Action
2b3f4548d8 Update profile stats 2026-03-03 09:01:28 +00:00
Gitea Action
4a3a37699d Update profile stats 2026-03-03 08:01:22 +00:00
Gitea Action
d45aa0e391 Update profile stats 2026-03-03 07:01:22 +00:00
Gitea Action
d23fdc3f17 Update profile stats 2026-03-03 06:01:52 +00:00
Gitea Action
09e949986a Update profile stats 2026-03-03 05:01:26 +00:00
Gitea Action
f9eab05189 Update profile stats 2026-03-03 04:01:39 +00:00
Gitea Action
171fb8de7c Update profile stats 2026-03-03 03:01:41 +00:00
Gitea Action
4e4c735876 Update profile stats 2026-03-03 02:02:32 +00:00
Gitea Action
c4d0199349 Update profile stats 2026-03-03 01:01:04 +00:00
Gitea Action
13561392ae Update profile stats 2026-03-03 00:01:22 +00:00
Gitea Action
fcbee2e07e Update profile stats 2026-03-02 23:03:46 +00:00
Gitea Action
258d4288d9 Update profile stats 2026-03-02 22:03:30 +00:00
Gitea Action
8992eb706d Update profile stats 2026-03-02 20:03:13 +00:00
Gitea Action
2fcd32ff41 Update profile stats 2026-03-02 19:01:31 +00:00
Gitea Action
fe3044ab1f Update profile stats 2026-03-02 18:03:30 +00:00
Gitea Action
6de4a8e899 Update profile stats 2026-03-02 17:02:11 +00:00
Gitea Action
b3f0f91f9e Update profile stats 2026-03-02 16:01:56 +00:00
Gitea Action
33ff18f3ce Update profile stats 2026-03-02 15:01:49 +00:00
Gitea Action
55dee7772c Update profile stats 2026-03-02 14:02:30 +00:00
Gitea Action
64367a916d Update profile stats 2026-03-02 13:01:31 +00:00
Gitea Action
e3db71cb05 Update profile stats 2026-03-02 12:01:30 +00:00
Gitea Action
62539824a3 Update profile stats 2026-03-02 11:01:13 +00:00
Gitea Action
823aa6c319 Update profile stats 2026-03-02 10:01:25 +00:00
Gitea Action
d10103e1ce Update profile stats 2026-03-02 09:01:08 +00:00
Gitea Action
0dc439e5d4 Update profile stats 2026-03-02 08:01:15 +00:00
Gitea Action
c7d4a9c96f Update profile stats 2026-03-02 07:01:08 +00:00
Gitea Action
37926d5c2f Update profile stats 2026-03-02 06:01:27 +00:00
Gitea Action
2c90c19c83 Update profile stats 2026-03-02 05:01:22 +00:00
Gitea Action
6bab05409a Update profile stats 2026-03-02 04:01:33 +00:00
Gitea Action
889695a592 Update profile stats 2026-03-02 03:01:39 +00:00
Gitea Action
52af2611cc Update profile stats 2026-03-02 02:01:29 +00:00
Gitea Action
01d3f7da4f Update profile stats 2026-03-02 01:01:27 +00:00
Gitea Action
aba04dc511 Update profile stats 2026-03-02 00:02:10 +00:00
Gitea Action
b22da4d8cc Update profile stats 2026-03-01 23:01:47 +00:00
Gitea Action
44d0e08996 Update profile stats 2026-03-01 22:01:57 +00:00
Gitea Action
6899f3ccb9 Update profile stats 2026-03-01 21:01:51 +00:00
Gitea Action
e57c72f385 Update profile stats 2026-03-01 19:04:43 +00:00
Gitea Action
949ae2effb Update profile stats 2026-03-01 18:04:03 +00:00
Gitea Action
29d46969de Update profile stats 2026-03-01 17:02:10 +00:00
Gitea Action
8713d0a303 Update profile stats 2026-03-01 16:01:56 +00:00
Gitea Action
f340adff05 Update profile stats 2026-03-01 15:02:19 +00:00
Gitea Action
315b48683f Update profile stats 2026-03-01 14:01:56 +00:00
Gitea Action
49548b5192 Update profile stats 2026-03-01 13:01:26 +00:00
Gitea Action
b26b6c9fc7 Update profile stats 2026-03-01 12:01:32 +00:00
Gitea Action
7686aa430c Update profile stats 2026-03-01 11:01:48 +00:00
Gitea Action
08a7cd86b4 Update profile stats 2026-03-01 10:02:29 +00:00
Gitea Action
0200997f00 Update profile stats 2026-03-01 09:01:44 +00:00
Gitea Action
d77fc6476d Update profile stats 2026-03-01 08:01:33 +00:00
Gitea Action
96c1cb5cf1 Update profile stats 2026-03-01 07:01:21 +00:00
Gitea Action
aed0193c04 Update profile stats 2026-03-01 06:01:38 +00:00
Gitea Action
8f9d1dea3f Update profile stats 2026-03-01 05:01:22 +00:00
Gitea Action
a50b46b47e Update profile stats 2026-03-01 04:01:49 +00:00
Gitea Action
73417aa86a Update profile stats 2026-03-01 03:02:38 +00:00
Gitea Action
d2a50dd914 Update profile stats 2026-03-01 02:01:49 +00:00
Gitea Action
8a58ec3d7d Update profile stats 2026-03-01 01:01:50 +00:00
Gitea Action
96210f0c41 Update profile stats 2026-03-01 00:02:44 +00:00
Gitea Action
3f015ba8c6 Update profile stats 2026-02-28 23:02:13 +00:00
Gitea Action
d34043d332 Update profile stats 2026-02-28 22:01:54 +00:00
Gitea Action
7064ce5329 Update profile stats 2026-02-28 21:01:40 +00:00
Gitea Action
54a871bde6 Update profile stats 2026-02-28 20:01:58 +00:00
Gitea Action
8af023068a Update profile stats 2026-02-28 19:01:21 +00:00
Gitea Action
67d4776efc Update profile stats 2026-02-28 18:01:47 +00:00
Gitea Action
4037d8040b Update profile stats 2026-02-28 17:01:05 +00:00
Gitea Action
b9f16b611d Update profile stats 2026-02-28 16:01:07 +00:00
Gitea Action
bf92f5e477 Update profile stats 2026-02-28 15:00:59 +00:00
Gitea Action
f74521533a Update profile stats 2026-02-28 14:35:47 +00:00
f89ed9bcda Refactor collect_gitea_data to include release count and update README generation logic 2026-02-28 14:35:07 +00:00
25fb1a3604 Merge branch 'main' of https://gitea.nathan-falvey.synology.me/nathan/.profile 2026-02-28 14:11:16 +00:00
a620be202e Enhance README generation by adding access links to repositories and improving release count display; update debug request functionality 2026-02-28 14:11:13 +00:00
Gitea Action
8b22a7d9f1 Update profile stats 2026-02-28 14:01:07 +00:00
Gitea Action
b8e068f87b Update profile stats 2026-02-28 13:54:47 +00:00
78e52b9ec2 Merge branch 'main' of https://gitea.nathan-falvey.synology.me/nathan/.profile 2026-02-28 13:54:08 +00:00
ccb6d15776 Add tabulate dependency and enhance README generation with repository release count 2026-02-28 13:54:07 +00:00
Gitea Action
60d8ac5200 Update profile stats 2026-02-28 13:49:05 +00:00
4 changed files with 81 additions and 15 deletions

View File

@@ -23,5 +23,6 @@ jobs:
run: |
git config --local user.email "action@gitea.com"
git config --local user.name "Gitea Action"
git pull
git add README.md
git diff --quiet && git diff --staged --quiet || (git commit -m "Update profile stats" && git push)

View File

@@ -1,20 +1,28 @@
# nathan' Developer Hub
# Nathan's Developer Hub
## Welcome to nathan's Gitea Developer Hub! This is a collection of repositories and projects that I have created and maintained on my Gitea instance. Here you can find various projects that I have worked on, ranging from personal projects to open-source contributions.
## Welcome to Nathan's Gitea Developer Hub! This is a collection of repositories and projects that I have created and maintained on my Gitea instance. Here you can find various projects that I have worked on, ranging from personal projects to open-source contributions.
### 📂 Repository Breakdown
- [.profile](https://gitea.nathan-falvey.synology.me/nathan/.profile) - Python
| Name | Language | Size | Releases | Private | Archived | Access Link | Last Commit |
|:--------------------------------|:-----------|:---------|:-----------|:----------|:-----------|:---------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| .profile | Python | 268.00 B | None | No | No | [View](https://gitea.nathan-falvey.synology.me/nathan/.profile) | ![Gitea Last Commit](https://img.shields.io/gitea/last-commit/nathan/.profile?gitea_url=https%3A%2F%2Fgitea.nathan-falvey.synology.me&style=flat-square) |
| custom-portainer-configurations | N/A | 55.00 B | None | No | No | [View](https://gitea.nathan-falvey.synology.me/nathan/custom-portainer-configurations) | ![Gitea Last Commit](https://img.shields.io/gitea/last-commit/nathan/custom-portainer-configurations?gitea_url=https%3A%2F%2Fgitea.nathan-falvey.synology.me&style=flat-square) |
**Total Repositories:** 1
## 📊 Stats Summary
**Total Storage Used:** 66.00 B
**Total Repositories:** 2
**Languages Used:** Python
**Total Storage Used:** 323.00 B
### **Languages Used:**
```
- **Python**
```
### System Information
**Gitea Version:** 1.25.4
**Gitea Version:** 1.25.5
**System Uptime:** 12 days, 21:51:21
**System Uptime:** 1:07:36

View File

@@ -1 +1,2 @@
requests
requests
tabulate

View File

@@ -3,6 +3,7 @@ import requests
import traceback
import pprint
import datetime
import tabulate
# --- Configuration ---
GITEA_URL = "https://gitea.nathan-falvey.synology.me"
@@ -41,6 +42,7 @@ def collect_gitea_data():
version_info = do_request(f"{GITEA_URL}/api/v1/version", headers=headers)
version_string = version_info.get("version", "Unknown") if version_info else "Unknown"
repos_info = do_request(f"{GITEA_URL}/api/v1/users/{USERNAME}/repos?type=owner", headers=headers)
organisations_info = do_request(f"{GITEA_URL}/api/v1/users/{USERNAME}/orgs", headers=headers)
repos = []
if repos_info is not None:
for repo in repos_info:
@@ -52,36 +54,88 @@ def collect_gitea_data():
"archived": repo.get("archived", False),
"language": repo.get("language", "N/A"),
"size": repo.get("size", 0),
"release_count": repo.get("release_count", 0),
})
organisations = []
if organisations_info is not None:
for org in organisations_info:
organisations.append({
"name": org.get("name", "N/A"),
"id": org.get("id", "N/A"),
"private": org.get("private", False),
"description": org.get("description", "N/A"),
"full_name": org.get("full_name", "N/A"),
})
return {
"username": USERNAME,
"version": version_string,
"uptime": get_uptime(),
"repos": repos or []
"repos": repos or [],
"organisations": organisations or [],
}
def do_readme_parse():
data = collect_gitea_data() # does all the API calls and collects the data into a structured format, collected once to avoid multiple API calls during the README build process, this data will be used to populate the README template with the relevant information about the Gitea instance and the user's repositories.
storage_used = sum(repo["size"] for repo in data["repos"])
languages_used = set(repo["language"] for repo in data["repos"] if repo["language"] != "N/A")
username = data["username"].capitalize() if data["username"] else "Unknown User"
md = f"# {username}'s Developer Hub\n\n"
md += f"## Welcome to {username}'s Gitea Developer Hub! This is a collection of repositories and projects that I have created and maintained on my Gitea instance. Here you can find various projects that I have worked on, ranging from personal projects to open-source contributions.\n\n"
if data["repos"]:
md += f"### 📂 Repository Breakdown\n\n"
tab_headers = ["Name", "Language", "Size", "Releases", "Private", "Archived", "Access Link", "Last Commit"]
tab_rows = []
for repo in data["repos"]:
md += f"- [{repo['name']}]({GITEA_URL}/{USERNAME}/{repo['name']}) - {repo['language']}\n"
tab_rows.append([
repo["name"],
repo["language"] if len(repo["language"]) > 1 else "N/A",
format_bytes(repo["size"]),
repo["release_count"]if repo["release_count"] > 0 else "None",
"Yes" if repo["private"] else "No",
"Yes" if repo["archived"] else "No",
f"[View]({GITEA_URL}/{USERNAME}/{repo['name']})",
f"![Gitea Last Commit](https://img.shields.io/gitea/last-commit/{USERNAME}/{repo['name']}?gitea_url=https%3A%2F%2Fgitea.nathan-falvey.synology.me&style=flat-square)"
])
md += tabulate.tabulate(tab_rows, headers=tab_headers, tablefmt="pipe")
md += "\n\n"
md += "## 📊 Stats Summary\n"
md += f"\n**Total Repositories:** {len(data['repos'])}\n\n"
md += f"**Total Storage Used:** {format_bytes(storage_used)}\n\n"
if languages_used:
md += f"### **Languages Used:**"
md += f"### **Languages Used:**\n\n"
md += "```\n"
for lang in languages_used:
md += f"- **{lang}**\n"
if len(lang) > 1: # Filter out empty or invalid language entries
md += f"- **{lang}**\n"
md += "```"
md += "\n"
if data["organisations"]:
md += f"### 🏢 Owned Organisation Breakdown\n\n"
tab_headers = ["Name", "Description", "Private", "Access Link"]
tab_rows = []
for org in data["organisations"]:
tab_rows.append([
org["name"],
org["description"] if len(org["description"]) > 1 else "N/A",
"Yes" if org["private"] else "No",
f"[View]({GITEA_URL}/{org['name']})"
])
md += tabulate.tabulate(tab_rows, headers=tab_headers, tablefmt="pipe")
md += "\n\n"
md += "\n"
@@ -109,6 +163,8 @@ def do_readme_build():
def debug_request():
headers = {"Authorization": f"token {GITEA_TOKEN}"}
version_info = do_request(f"{GITEA_URL}/api/v1/version", headers=headers)
users_heatmap = do_request(f"{GITEA_URL}/api/v1/users/{USERNAME}/heatmap", headers=headers)
print(f"User Heatmap: {users_heatmap}")
version_string = version_info.get("version", "Unknown") if version_info else "Unknown"
if version_info:
print(f"Gitea Version: {version_string}")