Milestone Creation: make "due date" optional #240
Labels
No Label
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🔙 Backport
💭 Brainstorming
🐛 Bug
🔭 Cannot-reproduce
🧺 Cleanup
🧾 Confirmed
💬 Discussion
📄 Documentation
🎯 Enhancement
🩹 External-dependecy
📱 F-droid
🎉 Feature
👋 Good-first-issue
🤾 Google-play
🔙 Has-backport
🚀 Improvement
🚨 Investigate
🌠 Long-term
🔙 Needs-backport
🧺 Needs-cleanup
📡 Needs-feedback
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
🥑 Ready
🪒 Refactor
🔙 Regression
📸 Release
🔒 Security
💡 Suggestion
🧪 Testing
🌐 Translation
💻 UI/UX
🪜 Upstream
🟦 Website
🙇♂️ Needs-help
🛰️ API-dependency
🛡️ Blocked
🏗️ Build
🗒️ Changelog
🗄️ Repository
🗓️ Summary
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#240
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
note: creat issue via gitnex auto assign you too
The last time I checked these both were required by the API. Cant say about 1.9 or 1.10 now.
Is both optional now by the API?
Its not in 1.10.1 (tested)
POST /repos/{owner}/{repo}/milestones?token=...
body:
works fine
but
does not!
If it works with 1.9 too, then we can make it optional. Otherwise a logic/fallback will be needed for 1.9.
@mmarif gitea API makes a different if a parameter is in json with value: "" or not!!
Is that considered a bug in gitea api?
this has to do with json -> go struct convertion ...
I could not find a easy way to fix this now (I have to change the type to string and parse time myself usw ...)
an easy workaround for GitNex (backwards compatible) exist:
if we like to have NO due_date set UnixTime:
253402297199
wich is in go:
time.ParseInLocation("2006-01-02", "9999-12-31", time.Local)