forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Console] Console definitions script should generate separate prs for…
… main and 8.x (elastic#207036)
- Loading branch information
1 parent
23b7f0f
commit 9e60b8e
Showing
2 changed files
with
12 additions
and
4 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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ main () { | |
report_main_step "Cloning repositories" | ||
|
||
rm -rf elasticsearch-specification | ||
if ! git clone https://github.com/elastic/elasticsearch-specification --depth 1; then | ||
if ! git clone --branch "$BUILDKITE_BRANCH" https://github.com/elastic/elasticsearch-specification --depth 1; then | ||
echo "Error: Failed to clone the elasticsearch-specification repository." | ||
exit 1 | ||
fi | ||
|
@@ -40,7 +40,7 @@ main () { | |
git config --global user.name "$KIBANA_MACHINE_USERNAME" | ||
git config --global user.email '[email protected]' | ||
|
||
PR_TITLE='[Console] Update console definitions' | ||
PR_TITLE="[Console] Update console definitions (${branch_name})" | ||
PR_BODY='This PR updates the console definitions to match the latest ones from the @elastic/elasticsearch-specification repo.' | ||
|
||
# Check if a PR already exists | ||
|
@@ -66,7 +66,15 @@ main () { | |
git push origin "$BRANCH_NAME" | ||
|
||
# Create PR | ||
gh pr create --title "$PR_TITLE" --body "$PR_BODY" --base main --head "${BRANCH_NAME}" --label 'release_note:skip' --label 'Feature:Console' --label 'Team:Kibana Management' | ||
gh pr create \ | ||
--title "$PR_TITLE" \ | ||
--body "$PR_BODY" \ | ||
--base "$BUILDKITE_BRANCH" \ | ||
--head "$BRANCH_NAME" \ | ||
--label 'backport:skip' \ | ||
--label 'release_note:skip' \ | ||
--label 'Feature:Console' \ | ||
--label 'Team:Kibana Management' | ||
} | ||
|
||
main |