-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rules-guided-onboarding
- Loading branch information
Showing
244 changed files
with
6,765 additions
and
1,975 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
issues: | ||
- missingLabel: needs-team | ||
regex: ^(\:ml)|(Team:.*)$ | ||
regex: (^\:ml$)|(^Team:.+$)|(^EUI$) |
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,51 @@ | ||
name: Add Fleet issue to Platform Ingest project | ||
|
||
on: | ||
issues: | ||
types: | ||
- labeled | ||
|
||
env: | ||
INGEST_PROJECT_ID: 'PVT_kwDOAGc3Zs4AEzn4' | ||
FLEET_LABEL: 'Team:Fleet' | ||
AREA_FIELD_ID: 'PVTSSF_lADOAGc3Zs4AEzn4zgEgZSo' | ||
FLEET_UI_OPTION_ID: '411a7b86' | ||
|
||
jobs: | ||
add_to_ingest_project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: add_to_project | ||
if: ${{ github.event.label.name == env.FLEET_LABEL }} | ||
with: | ||
query: | | ||
# Variables have to be snake cased because of https://github.com/octokit/graphql-action/issues/164 | ||
mutation AddToIngestProject($project_id: ID!, $content_id: ID!) { | ||
addProjectV2ItemById(input: { projectId: $project_id, contentId: $content_id }) { | ||
item { | ||
id | ||
} | ||
} | ||
} | ||
project_id: ${{ env.INGEST_PROJECT_ID }} | ||
content_id: ${{ github.event.issue.node_id }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLEET_TECH_KIBANA_USER_TOKEN }} | ||
- uses: octokit/[email protected] | ||
id: set_fleet_ui_area | ||
if: github.event.label.name == env.FLEET_LABEL | ||
with: | ||
query: | | ||
mutation updateIngestArea($item_id: ID!, $project_id: ID!, $area_field_id: ID!, $area_id: String) { | ||
updateProjectV2ItemFieldValue( | ||
input: { itemId: $item_id, projectId: $project_id, fieldId: $area_field_id, value: { singleSelectOptionId: $area_id } }) { | ||
clientMutationId | ||
} | ||
} | ||
item_id: ${{ fromJSON(steps.add_to_project.outputs.data).addProjectV2ItemById.item.id }} | ||
project_id: ${{ env.INGEST_PROJECT_ID }} | ||
area_field_id: ${{ env.AREA_FIELD_ID }} | ||
area_id: ${{ env.FLEET_UI_OPTION_ID }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLEET_TECH_KIBANA_USER_TOKEN }} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 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 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.