From 29e07dc75cd45e5bd0114d227f4c3288ec15f739 Mon Sep 17 00:00:00 2001 From: Robby Milo Date: Fri, 13 Dec 2024 10:01:43 +0100 Subject: [PATCH 1/3] add docs deploy preview --- .github/workflows/deploy-pr-preview.yml | 23 +++++++++++++++++++++++ CODEOWNERS | 12 ++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy-pr-preview.yml diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml new file mode 100644 index 0000000000000..f30e5e3988eae --- /dev/null +++ b/.github/workflows/deploy-pr-preview.yml @@ -0,0 +1,23 @@ +name: Deploy pr preview + +on: + pull_request: + types: + - opened + - synchronize + - closed + paths: + - "docs/sources/**" + +jobs: + deploy-pr-preview: + uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main + with: + sha: ${{ github.event.pull_request.head.sha }} + branch: ${{ github.head_ref }} + event_number: ${{ github.event.number }} + title: ${{ github.event.pull_request.title }} + repo: loki + website_directory: content/docs/loki/latest + relative_prefix: /docs/loki/latest/ + index_file: true diff --git a/CODEOWNERS b/CODEOWNERS index 1d122e1f580c5..fd22fc5e5bf49 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,20 +1,28 @@ # Default owners for everything in the repo, unless a later match takes precedence. -* @grafana/loki-team + +- @grafana/loki-team # Documentation. + /docs/ @grafana/docs-logs @grafana/loki-team +/.github/workflows/deploy-pr-preview.yml @grafana/docs-logs # Loki operator + /operator/ @grafana/loki-team @periklis @xperimental @JoaoBraveCoding -/.github/workflows/operator* @grafana/loki-team @periklis @xperimental @JoaoBraveCoding +/.github/workflows/operator\* @grafana/loki-team @periklis @xperimental @JoaoBraveCoding # Logql grammar + # The observability logs team is listed as co-codeowner for grammar file. This is to receive notifications about updates, so these can be implemented in https://github.com/grafana/lezer-logql + /pkg/logql/syntax/expr.y @grafana/observability-logs @grafana/loki-team # Nix + /nix/ @trevorwhitney flake.nix @trevorwhitney # No owners - allows sub-maintainers to merge changes. + CHANGELOG.md From 401858881c5aca88faffead43f78117988082cc7 Mon Sep 17 00:00:00 2001 From: Robby Milo Date: Fri, 13 Dec 2024 10:06:43 +0100 Subject: [PATCH 2/3] fix codeowners file --- CODEOWNERS | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index fd22fc5e5bf49..99a083f5ec3f3 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,28 +1,21 @@ # Default owners for everything in the repo, unless a later match takes precedence. - -- @grafana/loki-team +* @grafana/loki-team # Documentation. - /docs/ @grafana/docs-logs @grafana/loki-team /.github/workflows/deploy-pr-preview.yml @grafana/docs-logs # Loki operator - /operator/ @grafana/loki-team @periklis @xperimental @JoaoBraveCoding -/.github/workflows/operator\* @grafana/loki-team @periklis @xperimental @JoaoBraveCoding +/.github/workflows/operator* @grafana/loki-team @periklis @xperimental @JoaoBraveCoding # Logql grammar - # The observability logs team is listed as co-codeowner for grammar file. This is to receive notifications about updates, so these can be implemented in https://github.com/grafana/lezer-logql - /pkg/logql/syntax/expr.y @grafana/observability-logs @grafana/loki-team # Nix - /nix/ @trevorwhitney flake.nix @trevorwhitney # No owners - allows sub-maintainers to merge changes. - CHANGELOG.md From 056e469897a2ad4d39c1fea976c3c993434c4174 Mon Sep 17 00:00:00 2001 From: Robby Milo Date: Fri, 13 Dec 2024 10:07:09 +0100 Subject: [PATCH 3/3] revert codeowners change --- CODEOWNERS | 1 - 1 file changed, 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 99a083f5ec3f3..1d122e1f580c5 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -3,7 +3,6 @@ # Documentation. /docs/ @grafana/docs-logs @grafana/loki-team -/.github/workflows/deploy-pr-preview.yml @grafana/docs-logs # Loki operator /operator/ @grafana/loki-team @periklis @xperimental @JoaoBraveCoding