From 385cddd682b160b77b7cf8f571a4cf7cbb09e471 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 7 Nov 2023 13:36:03 +0100 Subject: [PATCH] updatecli: link to the original Pull Request --- .ci/updatecli.d/update-gherkin-specs.yml | 11 ++++++++++- .ci/updatecli.d/update-json-specs.yml | 11 ++++++++++- .ci/updatecli.d/update-specs.yml | 10 ++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.ci/updatecli.d/update-gherkin-specs.yml b/.ci/updatecli.d/update-gherkin-specs.yml index 8deb269fc..6dde4380c 100644 --- a/.ci/updatecli.d/update-gherkin-specs.yml +++ b/.ci/updatecli.d/update-gherkin-specs.yml @@ -23,7 +23,15 @@ sources: transformers: - findsubmatch: pattern: "[0-9a-f]{40}" - + pull_request: + kind: shell + dependson: + - sha + spec: + command: gh api /repos/elastic/apm/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + environments: + - name: GITHUB_TOKEN + - name: PATH api_key.feature: kind: file spec: @@ -65,6 +73,7 @@ actions: ### Why *Changeset* * https://github.com/elastic/apm/commit/{{ source "sha" }} + * {{ source "pull_request" }} targets: api_key.feature: diff --git a/.ci/updatecli.d/update-json-specs.yml b/.ci/updatecli.d/update-json-specs.yml index 13d25c834..c86c99d26 100644 --- a/.ci/updatecli.d/update-json-specs.yml +++ b/.ci/updatecli.d/update-json-specs.yml @@ -23,7 +23,15 @@ sources: transformers: - findsubmatch: pattern: "[0-9a-f]{40}" - + pull_request: + kind: shell + dependson: + - sha + spec: + command: gh api /repos/elastic/apm/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + environments: + - name: GITHUB_TOKEN + - name: PATH container_metadata_discovery.json: kind: file spec: @@ -69,6 +77,7 @@ actions: ### Why *Changeset* * https://github.com/elastic/apm/commit/{{ source "sha" }} + * {{ source "pull_request" }} targets: container_metadata_discovery.json: diff --git a/.ci/updatecli.d/update-specs.yml b/.ci/updatecli.d/update-specs.yml index ab3bd34c7..d18f73677 100644 --- a/.ci/updatecli.d/update-specs.yml +++ b/.ci/updatecli.d/update-specs.yml @@ -23,6 +23,15 @@ sources: transformers: - findsubmatch: pattern: "[0-9a-f]{40}" + pull_request: + kind: shell + dependson: + - sha + spec: + command: gh api /repos/elastic/apm-data/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + environments: + - name: GITHUB_TOKEN + - name: PATH error.json: kind: file spec: @@ -60,6 +69,7 @@ actions: ### Why *Changeset* * https://github.com/elastic/apm-data/commit/{{ source "sha" }} + * {{ source "pull_request" }} targets: error.json: