Commit graph

104 commits

Author SHA1 Message Date
Nathan L Smith
6c3badb8ec
Remove infra UI and actionable obs workflows (#154084)
These have been replaced by equivalent GitHub Projects workflows
(example:
7858407)
2023-03-30 12:18:29 -05:00
Emmanuelle Raffenne
89a57434ec
Remove PAT token (#153589)
## Summary

Actions to add issues to specific projects are failing with the
following:

```Project label assigner action failed with error: Error querying project ID for project number 669: Your token has not been granted the required scopes to execute this query. The 'projectV2' field requires one of the following scopes: ['read:project'], but your token has only been granted the: ['repo', 'workflow', 'write:org'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens. ```

This PR attempts to fix it by removing the offending token and relying on `GITHUB_TOKEN` instead as recommended in [https://github.com/richkuz/projectnext-label-assigner#github-token](https://github.com/richkuz/projectnext-label-assigner#github-token)
2023-03-27 15:25:36 +01:00
Victor Martinez
fa74940809
action: GitHub command for new PRs created by the APM UI/Oblt teams (#153433)
## Summary

Make sure the `apm-ui`/`observability` teams are ware of the new
features, such as https://github.com/elastic/kibana/pull/153106

For such, this new action will create a GitHub comment only when a PR is
created by any member of `observability` team.

The comment will be something like:

<img width="1185" alt="image"
src="https://user-images.githubusercontent.com/2871786/226889581-58d9962d-93f0-400e-9b82-3ba12f84c4fe.png">

cc @elastic/apm-ui @cachedout @kuisathaverat

---------

Co-authored-by: Ivan Fernandez Calvo <kuisathaverat@users.noreply.github.com>
2023-03-23 09:34:44 +01:00
Victor Martinez
10b94977f8
github-action: support deploy my kibana instance using the Observability test clusters (#153106)
## Summary

As we discussed in an email, this is our proposal to facilitating the
Observability teams to create Kibana instances attached to the
Observability test environments by using the GitHub command
`/oblt-deploy`

If an Elastician added a GitHub comment then, the automation will create
the Kibana instance based on the PR changes. Then a comment with the
link to the GitHub issue that contains all the configuration details.
The GitHub issue is not accessible to the public since it's under a
private GitHub repository.
2023-03-21 18:35:54 +01:00
Brian Seeders
de1cef03b5
Allow appex-qa team to skip failed tests using automation (#151794) 2023-02-27 11:28:33 -05:00
Thomas Watson
da89dde7ac
[codeql] Do not run GitHub CodeQL Action on forks (#150974)
It turned out that the CodeQL action also runs on forks which generate a
lot of noise in the form of security e-mails to the owners of those
forks.
2023-02-14 08:44:11 +01:00
Nathan L Smith
09be2baedb
[skip ci] Fix labeling for Infrastructure UI (#150571)
This GitHub action broke, presumably because of changes in the API.

Instead of updating the GraphQL query, switch to use the
project-label-assigner action like the Actionable Observability team
does.
2023-02-09 14:10:59 -06:00
Emmanuelle Raffenne
44d483a569
Updating projectNext to 1.1.0 for AO actions (#150537)
After getting errors on action execution for adding issues labeled with
AO team to the corresponding project, we found out that we were using a
version of projectNext that relies on a deprecated API.

See [projectNext release
notes](/richkuz/projectnext-label-assigner/releases/tag/1.1.0) for
details.

This PR updates the action to use version 1.1.0 of `projectNext`
2023-02-08 14:55:51 +00:00
Thomas Watson
4f37604524
Enable GitHub Code Scanning on the 7.17 branch (#150035) 2023-02-01 17:00:50 +01:00
Thomas Watson
2b276a9dca
Enable GitHub Code Scanning (#148318)
This enables [GitHub Code Scanning][1] to run on the `main` branch once a day.
The result of the scans can be found under [Security > Code scanning][2].

Running the code scanner takes about two hours, so it's not feasible to
run for every PR, and for now I think it's too much to run on every
pushed commit to `main` as well. However, this can always be enabled
later as needed.

The scan is configured to ignore test files and dev-dependency packages
hosted inside the Kibana repo. If these were included in the scan, it
would take three hours instead of two and the report would include more
noise taking focus away from the important findings affecting
production.

[1]: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning
[2]: https://github.com/elastic/kibana/security/code-scanning
2023-01-27 04:03:16 -05:00
Kyle Pollich
d61299cd70
Update Fleet/Ingest board automation token (#144167)
Switch to a new token with the proper permissions to break the failing GH action.
2022-10-28 09:45:25 -04:00
Kyle Pollich
1831ebf0bb
[Fleet] Update GH Projects automation (#144123)
* [Fleet] Update GH Projects automation

Update GH projects automation for issues labeled with `Team:Fleet` to be automatically added to the Ingest Dev project with the proper `Area` property set.

* Update add-to-fleet-project.yml

* Rename add-to-fleet-project.yml to add-fleet-issues-to-ingest-project.yml
2022-10-27 14:24:43 -04:00
Søren Louv-Jansen
a48ec2c4ac
Bump Backport to v8.9.7 (#142968) 2022-10-10 13:25:42 +02:00
Gil Raphaelli
02a06f14f1
update ProjectNext -> ProjectV2 (#140343) 2022-09-08 20:59:15 -04:00
Lisa Cawley
5ea3838109
Auto-generate preview links for DOC PRs (#139593) 2022-09-01 08:02:33 -07:00
Søren Louv-Jansen
a5a9be439a
Bump backport v8.9.2 (#136620) 2022-07-19 10:29:55 -05:00
Brian Seeders
4fdbdd105f
Update on-merge.yml 2022-07-12 12:30:48 -04:00
Brian Seeders
114f8eba9c
Update on-merge.yml 2022-07-12 12:27:12 -04:00
Brian Seeders
1f0287caa4
[backport] Bump backport to 8.8.0 and add structured data to created backport PRs (#135597) 2022-07-06 13:46:22 -04:00
Søren Louv-Jansen
1279650320
Update Backport Github Action v8.5.2 (#134097) 2022-06-10 00:12:20 +02:00
Brian Seeders
8b12549c3f
[CI] Add opt-in on-merge action that automatically assigns version labels (#134101) 2022-06-09 15:45:44 -04:00
Emmanuelle Raffenne
d3d36cf0c1
Action to add issue to AO project (#127312)
* Action to add issue to AO project

* Switch to using richkuz projectnext-assigner as per jasonrhodes suggestion

* Add condition to run only on issues labeled as AO

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-23 09:08:49 +00:00
Brian Seeders
a4856b47fa
[failed-test] Auto-label failed-test issues whenever possible (#128089) 2022-03-18 14:44:07 -04:00
Jason Rhodes
9514e6be38
Update and rename project-infra-monitoring-ui.yml to add-to-imui-project.yml (#126963)
The previous action was failing with an obscure JSON error, so I've copied the APM and Fleet actions instead.
2022-03-04 16:07:45 -05:00
Jason Rhodes
1ed4aea9e4
Adds workflow for infra monitoring ui team (#126921)
* Adds workflow for infra monitoring ui team

* Adds other labels for our team

* Updates token to general use one

@tylersmalley mentioned this one exists, so it seems like a safer choice for now. Ultimately we may want a single one from the Elastic org that is enabled for every repo that needs it.
2022-03-04 11:23:35 -08:00
Tyler Smalley
70a4f7930f
Revert "Testing project_assigner action for beta projects" (#126952)
This reverts commit eed64fda74.
2022-03-04 11:19:58 -08:00
Jason Rhodes
eed64fda74
Testing project_assigner action for beta projects (#126950)
We suspect this action will not work with GH beta projects, so let's confirm.
2022-03-04 11:17:01 -08:00
Tyler Smalley
646c15c1de
[Github] Remove Security & Ops project assigner (#126939) 2022-03-04 10:01:56 -08:00
Josh Dover
1174ac0cfc
[Fleet] Fix matrix configuration in QA labeling job (#126906) 2022-03-04 14:25:34 +01:00
Josh Dover
91f30ed366
[Fleet] Fix json marshalling in QA labeling job (#126905) 2022-03-04 14:11:37 +01:00
Søren Louv-Jansen
8b994478cb
[backport] Use new backport action (#126542) 2022-03-03 13:36:50 +01:00
Josh Dover
f125202d64
[Fleet] Remove automation for old project board (#126591) 2022-03-01 14:57:07 +00:00
Josh Dover
a228d60864
Fix types for graphql actions (#126589) 2022-03-01 09:17:49 -05:00
Gil Raphaelli
0d75ca6649
Update APM Add to Project Parameter Types (#126533) 2022-02-28 16:52:56 -05:00
Josh Dover
9ddb3e8756
[Fleet] Fix event condition in QA label action (#126447) 2022-02-28 12:30:41 +01:00
Josh Dover
e2dd796bdf
[Fleet] Fix github token fetching in QA label action (#126445) 2022-02-28 12:25:15 +01:00
Josh Dover
b00831cedd
Add back Fleet QA labeling automation (#126327)
* Revert "Remove Fleet QA labeling automation (#126244)"

This reverts commit 324245c94c.

* Use pull_request_target event instead

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-28 11:37:15 +01:00
Søren Louv-Jansen
4155f166f3
Bump backport to 7.3.0 (#126149) 2022-02-25 01:01:20 +01:00
Josh Dover
324245c94c
Remove Fleet QA labeling automation (#126244) 2022-02-23 14:28:22 +01:00
Josh Dover
3ff03fcdf9
[Fleet] Fix GITHUB_TOKEN for Fleet QA labeling action (#125918) 2022-02-17 11:57:32 +01:00
Josh Dover
335d9f376a
Update token used for Fleet QA labeling action (#125774) 2022-02-16 15:19:51 +01:00
Kellen
5977b83900
Removes builder 2022-02-10 07:09:52 -08:00
Josh Dover
49ec2c4459
Add github action for labeling Fleet issues for QA team (#124949) 2022-02-09 07:03:23 -05:00
Josh Dover
c7595d7c36
Add failed-test and chore labels to Fleet project automation (#124994) 2022-02-08 12:31:21 -05:00
Josh Dover
19476a1f9c
Add bug and performance labels to Fleet assigner (#124837) 2022-02-07 10:47:22 -06:00
Josh Dover
2e04a8fa82
Add github action for adding tech debt items to Fleet project (#124824) 2022-02-07 08:50:52 -07:00
Kellen
9cc0333826
Adds dev doc builds (#124585) 2022-02-04 08:30:00 -08:00
Kellen
c70178d542
removes builder 2022-01-26 09:20:46 -08:00
Kellen
6f3a148376
updates devdocs builder pull all JSON 2022-01-26 08:06:01 -08:00
Kellen
1438e97783
Adds builder, preps for vercel (#122871)
* Adds builder, preps for vercel

* bumps builder version

* updates tokens

* Updates to target to enable on PRs

* Update builder.yml

fixes fork-based workflows

* Update builder.yml

* Renames to make intent more clear

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-25 12:07:09 -08:00