diff --git a/models/unit/unit.go b/models/unit/unit.go index 3beee6a572..5a8b9114f2 100644 --- a/models/unit/unit.go +++ b/models/unit/unit.go @@ -245,6 +245,7 @@ func (u *Type) CanBeDefault() bool { // Unit is a section of one repository type Unit struct { Type Type + Name string NameKey string URI string DescKey string @@ -272,6 +273,7 @@ func (u Unit) MaxPerm() perm.AccessMode { var ( UnitCode = Unit{ TypeCode, + "code", "repo.code", "/", "repo.code.desc", @@ -281,6 +283,7 @@ var ( UnitIssues = Unit{ TypeIssues, + "issues", "repo.issues", "/issues", "repo.issues.desc", @@ -290,6 +293,7 @@ var ( UnitExternalTracker = Unit{ TypeExternalTracker, + "ext_issues", "repo.ext_issues", "/issues", "repo.ext_issues.desc", @@ -299,6 +303,7 @@ var ( UnitPullRequests = Unit{ TypePullRequests, + "pulls", "repo.pulls", "/pulls", "repo.pulls.desc", @@ -308,6 +313,7 @@ var ( UnitReleases = Unit{ TypeReleases, + "releases", "repo.releases", "/releases", "repo.releases.desc", @@ -317,6 +323,7 @@ var ( UnitWiki = Unit{ TypeWiki, + "wiki", "repo.wiki", "/wiki", "repo.wiki.desc", @@ -326,6 +333,7 @@ var ( UnitExternalWiki = Unit{ TypeExternalWiki, + "ext_wiki", "repo.ext_wiki", "/wiki", "repo.ext_wiki.desc", @@ -335,6 +343,7 @@ var ( UnitProjects = Unit{ TypeProjects, + "projects", "repo.projects", "/projects", "repo.projects.desc", @@ -344,6 +353,7 @@ var ( UnitPackages = Unit{ TypePackages, + "packages", "repo.packages", "/packages", "packages.desc", @@ -353,6 +363,7 @@ var ( UnitActions = Unit{ TypeActions, + "actions", "repo.actions", "/actions", "actions.unit.desc", diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 1631c90ba2..6b732fb121 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1441,8 +1441,7 @@ commitstatus.failure = Failure commitstatus.pending = Pending commitstatus.success = Success -ext_issues = Access to external issues -ext_issues.desc = Link to an external issue tracker. +ext_issues = External issues projects = Projects projects.desc = Manage issues and pulls in project boards. @@ -1619,9 +1618,9 @@ issues.no_content = No description provided. issues.close = Close issue issues.comment_pull_merged_at = merged commit %[1]s into %[2]s %[3]s issues.comment_manually_pull_merged_at = manually merged commit %[1]s into %[2]s %[3]s -issues.close_comment_issue = Comment and close +issues.close_comment_issue = Close with comment issues.reopen_issue = Reopen -issues.reopen_comment_issue = Comment and reopen +issues.reopen_comment_issue = Reopen with comment issues.create_comment = Comment issues.closed_at = `closed this issue %[2]s` issues.reopened_at = `reopened this issue %[2]s` @@ -2025,8 +2024,7 @@ signing.wont_sign.commitssigned = The merge will not be signed as all the associ signing.wont_sign.approved = The merge will not be signed as the PR is not approved. signing.wont_sign.not_signed_in = You are not signed in. -ext_wiki = Access to external Wiki -ext_wiki.desc = Link to an external wiki. +ext_wiki = External Wiki wiki = Wiki wiki.welcome = Welcome to the Wiki. @@ -2766,6 +2764,26 @@ error.csv.unexpected = Can't render this file because it contains an unexpected error.csv.invalid_field_count = Can't render this file because it has a wrong number of fields in line %d. error.broken_git_hook = Git hooks of this repository seem to be broken. Please follow the documentation to fix them, then push some commits to refresh the status. +[repo.permissions] +code.read = Read: Access and clone the code of the repository. +code.write = Write: Push to the repository, create branches and tags. +issues.read = Read: Read and create issues and comments. +issues.write = Write: Close issues and manage metadata like labels, milestones, assignees, due dates and dependencies. +pulls.read = Read: Reading and create pull requests. +pulls.write = Write: Close pull requests and manage metadata like labels, milestones, assignees, due dates and dependencies. +releases.read = Read: View and download releases. +releases.write = Write: Publish, edit and delete releases and their assets. +wiki.read = Read: Read the integrated wiki and it's history. +wiki.write = Write: Create, update and delete pages in the integrated wiki. +projects.read = Read: Access repository project boards. +projects.write = Write: Create projects and columns and edit them. +packages.read = Read: View and download packages assigned to the repository. +packages.write = Write: Publish and delete packages assigned to the repository. +actions.read = Read: View integrated CI/CD pipelines and their logs. +actions.write = Write: Manually trigger, restart, cancel or approve pending CI/CD pipelines. +ext_issues = Access the link to an external issue tracker. The permissions are managed externally. +ext_wiki = Access the link to an external wiki. The permissions are managed externally. + [graphs] component_loading = Loading %s... component_loading_failed = Could not load %s @@ -3733,7 +3751,7 @@ management = Manage secrets [actions] actions = Actions -unit.desc = Manage integrated CI/CD pipelines with Forgejo Actions +unit.desc = Manage integrated CI/CD pipelines with Forgejo Actions. status.unknown = Unknown status.waiting = Waiting diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 1776f5e3ae..ed9cb9893a 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -65,8 +65,8 @@