Support .profile README.md in User profile#1286
Labels
No labels
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✅ Fixed
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🌐 Translation
🌠 Long-term
🎉 Feature
🎯 Enhancement
🏗️ Build
🐛 Bug
👋 Good-first-issue
💀 Deprecation
💡 Suggestion
💬 Discussion
💭 Brainstorming
💰 Sponsored
💻 UI/UX
📄 Documentation
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
📡 Needs-feedback
📱 F-droid
📸 Release
🔒 Security
🔙 Backport
🔙 Has-backport
🔙 Needs-backport
🔙 Regression
🔭 Cannot-reproduce
🗄️ Repository
🗒️ Changelog
🗓️ Summary
🤾 Google-play
🥑 Ready
🧪 Testing
🧺 Cleanup
🧺 Needs-cleanup
🧾 Confirmed
🩹 External-dependecy
🪒 Refactor
🪜 Upstream
🙇♂️ Needs-help
🚀 Improvement
🚨 Investigate
🛡️ Blocked
🛰️ API-dependency
🟦 Website
No project
No assignees
3 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference
gitnex/GitNex#1286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forgejo (not sure about gitea) added support for having a profile readme by creating a
.profilerepository with a README.md file in it to display.It would be cool if Gitnex could support displaying this profile readme when viewing a profile.
Can confirm: Gitea also has this feature. It was added in v1.20.0 (https://github.com/go-gitea/gitea/pull/23260).
@Andre601 this definitely is possible, with:
I would love to see an example repository for this in action and whether the API object is necessary to get that info.
Looking at the API docs, there doesn't seem to be any path that would directly provide the profile readme content...
At most is there the option to get the files of a repository and then check for the readme, but this would be somewhat unoptimal.
I'll see that I can propose adding a new API route to Gitea so that it could eventually be merged into Forgejo, if Gitea decides to add it...
That would be great.
https://github.com/go-gitea/gitea/issues/26879
Gitea contributor suggests to just make a normal request towards
{user}/.profile/raw/branch/main/README.mdand if it returns 404 treat it like no readme exists.I'm not too sure about that one tbh. Especially given that the repository may not have
mainormasterdefined as their default branches, so it would be guess work here...Maybe he is talking about the web. That path will work on the web version.
To make the this work in GitNex, I can make use of file content API,
/repos/{owner}/{repo}/contents/{filepath}. I will check this out in detail soon.