mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[8.x] [Console] Console definitions script should generate separate prs for main and 8.x (#207036) (#208550)
# Backport This will backport the following commits from `main` to `8.x`: - [[Console] Console definitions script should generate separate prs for main and 8.x (#207036)](https://github.com/elastic/kibana/pull/207036) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2025-01-28T14:43:31Z","message":"[Console] Console definitions script should generate separate prs for main and 8.x (#207036)","sha":"9e60b8e4b8b68012d965ca3bdb42d0527c034b06","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Console] Console definitions script should generate separate prs for main and 8.x","number":207036,"url":"https://github.com/elastic/kibana/pull/207036","mergeCommit":{"message":"[Console] Console definitions script should generate separate prs for main and 8.x (#207036)","sha":"9e60b8e4b8b68012d965ca3bdb42d0527c034b06"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207036","number":207036,"mergeCommit":{"message":"[Console] Console definitions script should generate separate prs for main and 8.x (#207036)","sha":"9e60b8e4b8b68012d965ca3bdb42d0527c034b06"}}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <rivasign@gmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
0262b79422
commit
04d550f645
2 changed files with 12 additions and 4 deletions
|
@ -22,7 +22,7 @@ spec:
|
|||
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-management'
|
||||
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
|
||||
allow_rebuilds: false
|
||||
branch_configuration: main
|
||||
branch_configuration: main 8.x
|
||||
default_branch: main
|
||||
repository: elastic/kibana
|
||||
pipeline_file: .buildkite/pipelines/console_definitions_sync.yml
|
||||
|
|
|
@ -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 '42973632+kibanamachine@users.noreply.github.com'
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue