-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add org level milestones #31175
base: main
Are you sure you want to change the base?
add org level milestones #31175
Conversation
templates/org/milestones/list.tmpl
Outdated
<div class="list-header"> | ||
{{template "repo/issue/search" .}} | ||
<a class="ui small primary button" href="{{$.Link}}/new">{{ctx.Locale.Tr "repo.milestones.new"}}</a> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templates/org/milestones/list.tmpl
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templates/org/milestones/new.tmpl
Outdated
<div class="divider"></div> | ||
<div class="gt-text-right"> | ||
{{if .PageIsEditMilestone}} | ||
<a class="ui primary basic button" href="{{.OrgLink}}/milestones"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a class="ui primary basic button" href="{{.OrgLink}}/milestones"> | |
<a class="ui basic button" href="{{.OrgLink}}/milestones"> |
Generally there should only be one primary button per button group
templates/org/milestones/view.tmpl
Outdated
<a class="ui primary basic button link-action" href data-url="{{$.Link}}/open">{{ctx.Locale.Tr "repo.milestones.open"}} | ||
</a> | ||
{{else}} | ||
<a class="ui red basic button link-action" href data-url="{{$.Link}}/close">{{ctx.Locale.Tr "repo.milestones.close"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a class="ui primary basic button link-action" href data-url="{{$.Link}}/open">{{ctx.Locale.Tr "repo.milestones.open"}} | |
</a> | |
{{else}} | |
<a class="ui red basic button link-action" href data-url="{{$.Link}}/close">{{ctx.Locale.Tr "repo.milestones.close"}} | |
<a class="ui primary button link-action" href data-url="{{$.Link}}/open">{{ctx.Locale.Tr "repo.milestones.open"}} | |
</a> | |
{{else}} | |
<a class="ui red button link-action" href data-url="{{$.Link}}/close">{{ctx.Locale.Tr "repo.milestones.close"}} |
Likely this looks better.
templates/org/milestones/view.tmpl
Outdated
<div role="main" aria-label="{{.Title}}" class="page-content organization milestone"> | ||
{{template "org/header" .}} | ||
<div class="ui container"> | ||
<div class="gt-df"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These gt-
classes no longer exist so this is surely broken, please migrate to Tailwind.css's tw-
classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this pr was created before the tailwind switch, i updated our gitea but forgot this pr, will fix this and all other lint issue
templates/org/milestones/view.tmpl
Outdated
{{if .IsClosed}} | ||
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}} | ||
{{else}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templates/org/milestones/view.tmpl
Outdated
|
||
{{template "repo/issue/filters" .}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{template "repo/issue/filters" .}} | |
{{template "repo/issue/filters" .}} |
This PR is coming from an org, so maintainers have no push permission to the source branch. Can this be allowed somehow? Would make things easier. |
i have no idea, let me ask someone |
So you want to push to "source branch" in source repo (the fork) ? that sounds very odd.. that would not work even if I forked it to my personal repo ? that sounds weird.. :) If you know of any org settings for the org - I can change them though as I am org owner though. @iminfinity will fix merge conflict and other things, so its good to merge right? |
in this case - @iminfinity will have to update our fork of latest main and then re-apply/adjust his commits to work (and test ofcourse) - and then push the updated change so it matches |
Maybe it'd be easier if you re-raise the PR from a user account so that we can push fixes onto this branch. I don't know why GitHub has this silly restriction to not allow collaboration on org branches. |
I could try to explain more: we encourage contributors to enable "Allow maintainers to edit" for their PRs, then maintainers could help to improve the code together and update&merge. However, GitHub has a restriction: if a PR is from an org, then no maintainer could edit that PR. That's why the PRs from an org are difficult to review&improve. If a PR is from a user's account and allows maintainers to edit, then some maintainers who have interests and experiences could work together to try to complete it. |
And one more thing, there are still many problems, for example: the db migration should use XORM sync, many CSS styles are no long available ( Haven't really taken a look carefully, but I guess it's far from mature. |
#20203
org-mile.mp4
PR sponsored by Obmondo.com