-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 何延龙 <[email protected]>
- Loading branch information
Showing
24 changed files
with
342 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Maintainers approval | ||
|
||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
maintainer-approved-check: | ||
name: Minimum approval count | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: find-maintainers | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
result-encoding: string | ||
script: | | ||
// Get the collaborators - filtered to maintainer permissions | ||
const maintainersResponse = await github.request('GET /repos/{owner}/{repo}/collaborators', { | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
permission: 'maintain', | ||
affiliation: 'all', | ||
per_page: 100 | ||
}); | ||
return maintainersResponse.data.map(item => item.login).join(', '); | ||
- uses: peternied/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-required: 1 | ||
required-approvers-list: ${{ steps.find-maintainers.outputs.result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...ang-mustache/src/main/java/org/opensearch/script/mustache/RenderSearchTemplateAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.script.mustache; | ||
|
||
import org.opensearch.action.ActionType; | ||
|
||
public class RenderSearchTemplateAction extends ActionType<SearchTemplateResponse> { | ||
|
||
public static final RenderSearchTemplateAction INSTANCE = new RenderSearchTemplateAction(); | ||
public static final String NAME = "indices:data/read/search/template/render"; | ||
|
||
private RenderSearchTemplateAction() { | ||
super(NAME, SearchTemplateResponse::new); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...che/src/main/java/org/opensearch/script/mustache/TransportRenderSearchTemplateAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.script.mustache; | ||
|
||
import org.opensearch.action.support.ActionFilters; | ||
import org.opensearch.client.node.NodeClient; | ||
import org.opensearch.common.inject.Inject; | ||
import org.opensearch.core.xcontent.NamedXContentRegistry; | ||
import org.opensearch.script.ScriptService; | ||
import org.opensearch.transport.TransportService; | ||
|
||
public class TransportRenderSearchTemplateAction extends TransportSearchTemplateAction { | ||
|
||
@Inject | ||
public TransportRenderSearchTemplateAction( | ||
TransportService transportService, | ||
ActionFilters actionFilters, | ||
ScriptService scriptService, | ||
NamedXContentRegistry xContentRegistry, | ||
NodeClient client | ||
) { | ||
super(RenderSearchTemplateAction.NAME, transportService, actionFilters, scriptService, xContentRegistry, client); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
plugins/discovery-azure-classic/licenses/commons-io-2.15.0.jar.sha1
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
plugins/discovery-azure-classic/licenses/commons-io-2.15.1.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f11560da189ab563a5c8e351941415430e9304ea |
Oops, something went wrong.