Skip to content

Commit

Permalink
enhance(repo-settings): add first-time contributor approval option (#768
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ecrupper authored Feb 22, 2024
1 parent a9457e8 commit 8ddb96f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/elm/Pages/RepoSettings.elm
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ forkPolicy repo msg =
, div [ class "form-controls", class "-stack" ]
[ radio repo.approve_build "fork-always" "Always Require Admin Approval" <| msg repo.org repo.name "approve_build" "fork-always"
, radio repo.approve_build "fork-no-write" "Require Admin Approval When Contributor Is Read Only" <| msg repo.org repo.name "approve_build" "fork-no-write"
, radio repo.approve_build "first-time" "Require Admin Approval for First Time Contributors" <| msg repo.org repo.name "approve_build" "first-time"
, radio repo.approve_build "never" "Never Require Admin Approval" <| msg repo.org repo.name "approve_build" "never"
]
]
Expand Down Expand Up @@ -921,6 +922,9 @@ updateForkPolicyTip field =
"fork-no-write" ->
text " (repository admin must approve all builds from outside contributors with read-only access to the repo)"

"first-time" ->
text " (repository admin must approve all builds from outside contributors who have not contributed to the repo before)"

"never" ->
text " (any outside contributor can run a PR build)"

Expand Down

0 comments on commit 8ddb96f

Please sign in to comment.