Skip to content

Commit

Permalink
[8.15] [Fleet] Add GitHub action to auto-approve bundled package PR&#…
Browse files Browse the repository at this point in the history
…x27;s (#190736) (#191763)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Fleet] Add GitHub action to auto-approve bundled package PR's
(#190736)](#190736)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kyle
Pollich","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-08-20T13:13:59Z","message":"[Fleet]
Add GitHub action to auto-approve bundled package PR's (#190736)\n\n##
Summary\n\nAdds a GitHub action similar to others where Fleet's bundled
package\nPR's will be auto approved by the GitHub actions user. Today,
these PR's\nrequire human intervention which causes
headaches.\n\nExample PR:
https://github.com/elastic/kibana/pull/189514","sha":"a191dc33d28790890b856d279ac51be94b27944d","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.16.0"],"title":"[Fleet]
Add GitHub action to auto-approve bundled package
PR's","number":190736,"url":"https://github.com/elastic/kibana/pull/190736","mergeCommit":{"message":"[Fleet]
Add GitHub action to auto-approve bundled package PR's (#190736)\n\n##
Summary\n\nAdds a GitHub action similar to others where Fleet's bundled
package\nPR's will be auto approved by the GitHub actions user. Today,
these PR's\nrequire human intervention which causes
headaches.\n\nExample PR:
https://github.com/elastic/kibana/pull/189514","sha":"a191dc33d28790890b856d279ac51be94b27944d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190736","number":190736,"mergeCommit":{"message":"[Fleet]
Add GitHub action to auto-approve bundled package PR's (#190736)\n\n##
Summary\n\nAdds a GitHub action similar to others where Fleet's bundled
package\nPR's will be auto approved by the GitHub actions user. Today,
these PR's\nrequire human intervention which causes
headaches.\n\nExample PR:
https://github.com/elastic/kibana/pull/189514","sha":"a191dc33d28790890b856d279ac51be94b27944d"}}]}]
BACKPORT-->

Co-authored-by: Kyle Pollich <[email protected]>
  • Loading branch information
kibanamachine and kpollich authored Aug 29, 2024
1 parent ea9a206 commit c23a32f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/auto-approve-bundled-package-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
pull_request:
types:
- opened
paths:
- 'fleet_packages.json'

jobs:
approve:
name: Auto-approve bundled package updates
runs-on: ubuntu-latest
if: |
startsWith(github.event.pull_request.head.ref, 'update-bundled-packages') &&
github.event.pull_request.user.login == 'elasticmachine'
permissions:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0

0 comments on commit c23a32f

Please sign in to comment.