forked from elastic/beats
-
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.
Merge branch 'feature/use-with-kind-k8s-env' of github.com:v1v/beats …
…into feature/use-with-kind-k8s-env * 'feature/use-with-kind-k8s-env' of github.com:v1v/beats: (52 commits) ci: home is declared within withBeatsEnv ci: use withKindEnv step ci: use getBranchesFromAliases and support next-patch-8 (elastic#30400) Update fields.yml (elastic#29609) Heartbeat: fix browser metrics and trace mappings (elastic#30258) Apply light edits to 8.0 changelog (elastic#30351) packetbeat/beater: make sure Npcap installation runs before interfaces are needed (elastic#30396) Add a ring-buffer reporter to libbeat (elastic#28750) Osquerybeat: Add install verification for osquerybeat (elastic#30388) update windows matrix support (elastic#30373) Refactor of metricbeat process-gathering metrics and system/process (elastic#30076) adjust next changelog wording (elastic#30371) [Metricbeat] azure: move event report into loop validDim loop (elastic#29945) fix: report GitHub Check before the cache (elastic#30372) Add support for non-unique keys in Kafka output headers (elastic#30369) ci: 6 major branch reached EOL (elastic#30357) reduce Elastic Agent shut down time by stopping processes concurrently (elastic#29650) [Filebeat] Add message to register encode/decode debug logs (elastic#30271) [libbeat] kafka message header support (elastic#29940) Heartbeat: set duration to zero for syntax errors (elastic#30227) ...
- Loading branch information
Showing
254 changed files
with
5,711 additions
and
4,074 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Add QA labels to Elastic Agent issues | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
fetch_issues_to_label: | ||
runs-on: ubuntu-latest | ||
# Only run on PRs that were merged for the Elastic Agent teams | ||
if: | | ||
github.event.pull_request.merged_at && | ||
( | ||
contains(github.event.pull_request.labels.*.name, 'Team:Elastic-Agent') || | ||
contains(github.event.pull_request.labels.*.name, 'Team:Elastic-Agent-Data-Plane') || | ||
contains(github.event.pull_request.labels.*.name, 'Team:Elastic-Agent-Control-Plane') | ||
) | ||
outputs: | ||
matrix: ${{ steps.issues_to_label.outputs.value }} | ||
label_ids: ${{ steps.label_ids.outputs.value }} | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: closing_issues | ||
with: | ||
query: | | ||
query closingIssueNumbersQuery($prnumber: Int!) { | ||
repository(owner: "elastic", name: "beats") { | ||
pullRequest(number: $prnumber) { | ||
closingIssuesReferences(first: 10) { | ||
nodes { | ||
id | ||
labels(first: 20) { | ||
nodes { | ||
id | ||
name | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
prnumber: ${{ github.event.number }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: sergeysova/jq-action@v2 | ||
id: issues_to_label | ||
with: | ||
# Map to the issues' node id | ||
cmd: echo $CLOSING_ISSUES | jq -c '.repository.pullRequest.closingIssuesReferences.nodes | map(.id)' | ||
multiline: true | ||
env: | ||
CLOSING_ISSUES: ${{ steps.closing_issues.outputs.data }} | ||
- uses: sergeysova/jq-action@v2 | ||
id: label_ids | ||
with: | ||
# Get list of version labels on pull request and map to label's node id, append 'QA:Ready For Testing' id ("LA_kwDOAPya887jWb9x") | ||
cmd: echo $PR_LABELS | jq -c 'map(select(.name | test("v[0-9]+\\.[0-9]+\\.[0-9]+")) | .node_id) + ["LA_kwDOAPya887jWb9x"]' | ||
multiline: true | ||
env: | ||
PR_LABELS: ${{ toJSON(github.event.pull_request.labels) }} | ||
|
||
label_issues: | ||
needs: fetch_issues_to_label | ||
runs-on: ubuntu-latest | ||
# For each issue closed by the PR run this job | ||
strategy: | ||
matrix: | ||
issueNodeId: ${{ fromJSON(needs.fetch_issues_to_label.outputs.matrix) }} | ||
name: Label issue ${{ matrix.issueNodeId }} | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: add_labels_to_closed_issue | ||
with: | ||
query: | | ||
mutation add_label($issueid:String!, $labelids:[String!]!) { | ||
addLabelsToLabelable(input: {labelableId: $issueid, labelIds: $labelids}) { | ||
clientMutationId | ||
} | ||
} | ||
issueid: ${{ matrix.issueNodeId }} | ||
labelids: ${{ needs.fetch_issues_to_label.outputs.label_ids }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
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
Oops, something went wrong.