Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
APIs
git-eca-rest-api
Commits
e6defe9b
Commit
e6defe9b
authored
Apr 22, 2021
by
Martin Lowe
🇨🇦
Committed by
Martin Lowe
Apr 22, 2021
Browse files
Remove outdated terminology
parent
828d1903
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/eclipsefoundation/git/eca/resource/ValidationResource.java
View file @
e6defe9b
...
...
@@ -58,8 +58,8 @@ public class ValidationResource {
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
ValidationResource
.
class
);
@Inject
@ConfigProperty
(
name
=
"eclipse.mail.
white
list"
)
List
<
String
>
whitel
ist
ed
Users
;
@ConfigProperty
(
name
=
"eclipse.mail.
allow
list"
)
List
<
String
>
allowL
istUsers
;
// eclipse API rest client interfaces
@Inject
@RestClient
AccountsAPI
accounts
;
...
...
@@ -186,7 +186,7 @@ public class ValidationResource {
EclipseUser
eclipseCommitter
=
getIdentifiedUser
(
committer
);
if
(
eclipseCommitter
==
null
)
{
// check if whitelisted or bot
if
(
is
Whitelist
edUser
(
committer
.
getMail
()))
{
if
(
is
Allow
edUser
(
committer
.
getMail
()))
{
addMessage
(
response
,
String
.
format
(
...
...
@@ -333,8 +333,8 @@ public class ValidationResource {
});
}
private
boolean
is
Whitelist
edUser
(
String
mail
)
{
return
whitel
ist
ed
Users
.
indexOf
(
mail
)
!=
-
1
;
private
boolean
is
Allow
edUser
(
String
mail
)
{
return
allowL
istUsers
.
indexOf
(
mail
)
!=
-
1
;
}
/**
...
...
src/main/resources/application.properties
View file @
e6defe9b
...
...
@@ -13,4 +13,4 @@ quarkus.http.port=8080
oauth2.client-id
=
placeholder
oauth2.client-secret
=
placeholder
eclipse.mail.whitelist
=
noreply@github.com
\ No newline at end of file
eclipse.mail.allowlist
=
noreply@github.com
\ No newline at end of file
src/test/resources/application.properties
View file @
e6defe9b
...
...
@@ -15,4 +15,4 @@ oauth2.client-secret=placeholder
quarkus.log.level
=
DEBUG
eclipse.mail.whitelist
=
noreply@github.com
\ No newline at end of file
eclipse.mail.allowlist
=
noreply@github.com
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment