Skip to content

Commit 41d6af8

Browse files
phnarph
authored andcommitted
Use the elastic-agent repository and adjust the label id (#53)
* Use the elastic-agent repository and adjust the label id This make sure we use the elastic_agent repository instead of the beats repository and use the appropriate node id for the label.
1 parent 786356c commit 41d6af8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/qa-labels.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Add QA labels to Elastic Agent issues
22
on:
3-
pull_request:
3+
pull_request_target:
44
types:
55
- closed
66

@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
query: |
2626
query closingIssueNumbersQuery($prnumber: Int!) {
27-
repository(owner: "elastic", name: "beats") {
27+
repository(owner: "elastic", name: "elastic-agent") {
2828
pullRequest(number: $prnumber) {
2929
closingIssuesReferences(first: 10) {
3030
nodes {
@@ -53,8 +53,8 @@ jobs:
5353
- uses: sergeysova/jq-action@v2
5454
id: label_ids
5555
with:
56-
# Get list of version labels on pull request and map to label's node id, append 'QA:Ready For Testing' id ("LA_kwDOAPya887jWb9x")
57-
cmd: echo $PR_LABELS | jq -c 'map(select(.name | test("v[0-9]+\\.[0-9]+\\.[0-9]+")) | .node_id) + ["LA_kwDOAPya887jWb9x"]'
56+
# Get list of version labels on pull request and map to label's node id, append 'QA:Ready For Testing' id ("LA_kwDOGgEmJc7mkkl9]")
57+
cmd: echo $PR_LABELS | jq -c 'map(select(.name | test("v[0-9]+\\.[0-9]+\\.[0-9]+")) | .node_id) + ["LA_kwDOGgEmJc7mkkl9]'
5858
multiline: true
5959
env:
6060
PR_LABELS: ${{ toJSON(github.event.pull_request.labels) }}

0 commit comments

Comments
 (0)