We use meta to manage OpenSearch plugins as a set.
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
.
npm install -g meta
cd plugins
meta git update
Use meta git pull
to subsequently pull the latest revisions.
plugins> meta gh issue list
cd plugins
meta project import new-plugin [email protected]:opensearch-project/new-plugin.git
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 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"