From ed95b85bd7631fe6a165ff7df83367adead2e792 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 7 Nov 2023 13:20:59 +0100 Subject: [PATCH 1/2] updatecli: link to the original Pull Request In addition to the GitHub commit to help with tracking the consumers --- .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 ed83e9271..8de6a5872 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 2972b191e..2c4f01ca0 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 c594fa965..8bf36dc4a 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/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: From a566f3bbf49be0921f2e4b4c76b82a98c1318510 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 7 Nov 2023 13:31:12 +0100 Subject: [PATCH 2/2] Update .ci/updatecli.d/update-specs.yml --- .ci/updatecli.d/update-specs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/updatecli.d/update-specs.yml b/.ci/updatecli.d/update-specs.yml index 8bf36dc4a..a4c94742c 100644 --- a/.ci/updatecli.d/update-specs.yml +++ b/.ci/updatecli.d/update-specs.yml @@ -28,7 +28,7 @@ sources: dependson: - sha spec: - command: gh api /repos/elastic/apm/commits/{{ source "sha" }}/pulls --jq '.[].html_url' + command: gh api /repos/elastic/apm-data/commits/{{ source "sha" }}/pulls --jq '.[].html_url' environments: - name: GITHUB_TOKEN - name: PATH