Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.75 KB

META.md

File metadata and controls

69 lines (48 loc) · 1.75 KB

Managing OpenSearch Plugins

We use meta to manage OpenSearch plugins as a set.

Install GH

Install and configure GitHub CLI from cli.github.com/manual/installation. Authenticate with gh auth login and ensure that it works, e.g. gh issue list.

Install Meta

npm install -g meta

Check Out Plugins

cd plugins
meta git update

Use meta git pull to subsequently pull the latest revisions.

Get Repo Info

plugins> meta gh issue list

Add a New Plugin

cd plugins
meta project import new-plugin [email protected]:opensearch-project/new-plugin.git

Create or Update Labels in All Plugin Repos

Install ghi, e.g. brew install ghi.

meta exec "ghi label 'backwards-compatibility' -c '#773AA8'

This makes it easy to create version labels.

meta exec "ghi label 'untriaged' -c '#fbca04'"
meta exec "ghi label 'v1.0.0' -c '#d4c5f9'"
meta exec "ghi label 'v1.1.0' -c '#c5def5'"
meta exec "ghi label 'v2.0.0' -c '#b94c47'"

Create an Issue in All Plugin Repos

Create a file for the issue body, e.g. issue.md.

meta exec "gh issue create --label backwards-compatibility --title 'Ensure backwards compatibility with ODFE' --body-file ../issue.md"