From 23ed2a3dc76e9e2fe0a2deda193020a2cf1c1668 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:13:54 -0400 Subject: [PATCH 01/35] Redirects github action --- .github/outputs/renamed_files.txt | 0 .github/workflows/add-redirects.yml | 31 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/outputs/renamed_files.txt create mode 100644 .github/workflows/add-redirects.yml diff --git a/.github/outputs/renamed_files.txt b/.github/outputs/renamed_files.txt new file mode 100644 index 00000000..e69de29b diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml new file mode 100644 index 00000000..529a5a3a --- /dev/null +++ b/.github/workflows/add-redirects.yml @@ -0,0 +1,31 @@ +name: Add Redirects for Deleted or Renamed Files +on: + workflow_call: + pull_request_target: +jobs: + get-pr-changes: + name: Get Renamed Files + runs-on: ubuntu-latest + permissions: + issues: write + contents: write + pull-requests: write + repository-projects: write + steps: + - uses: actions/checkout@v4 + - name: Get renamed files + id: changed-files + # pin to a specific commit to ensure stability + uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c + with: + files: | + source/** + *.txt + include_all_old_new_renamed_files: 'true' + write_output_files: 'true' + - name: List renamed files + id: output-renamed + env: + RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files }} + run: | + cat .github/outputs/renamed_files.txt \ No newline at end of file From ab0f7be1b9da02bf5cc4c6b3795002913450c2fe Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:16:56 -0400 Subject: [PATCH 02/35] test rename --- source/index.txt | 2 +- source/{monitoring.txt => logging-monitoring.txt} | 0 .../{monitoring => logging-monitoring}/cluster-monitoring.txt | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename source/{monitoring.txt => logging-monitoring.txt} (100%) rename source/{monitoring => logging-monitoring}/cluster-monitoring.txt (100%) diff --git a/source/index.txt b/source/index.txt index 53398b22..020689ff 100644 --- a/source/index.txt +++ b/source/index.txt @@ -23,7 +23,7 @@ MongoDB PHP Library Run a Database Command Data Aggregation Indexes - Monitor Your Application + Monitor Your Application Security Specialized Data Formats Deploy to AWS Lambda diff --git a/source/monitoring.txt b/source/logging-monitoring.txt similarity index 100% rename from source/monitoring.txt rename to source/logging-monitoring.txt diff --git a/source/monitoring/cluster-monitoring.txt b/source/logging-monitoring/cluster-monitoring.txt similarity index 100% rename from source/monitoring/cluster-monitoring.txt rename to source/logging-monitoring/cluster-monitoring.txt From 0f79e08cc1bfff24f9594f61347997940b86dde5 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:26:38 -0400 Subject: [PATCH 03/35] edit --- .github/workflows/add-redirects.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 529a5a3a..2fdb16ae 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,9 +1,11 @@ -name: Add Redirects for Deleted or Renamed Files +name: add-redirects on: - workflow_call: - pull_request_target: + pull_request: + paths: + - "source/**/*.txt" + jobs: - get-pr-changes: + get-redirects-renamed: name: Get Renamed Files runs-on: ubuntu-latest permissions: @@ -18,9 +20,6 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: - files: | - source/** - *.txt include_all_old_new_renamed_files: 'true' write_output_files: 'true' - name: List renamed files From 538c72bfb2e869c41ea1d774c23fc0347402623a Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:28:27 -0400 Subject: [PATCH 04/35] revert --- source/index.txt | 2 +- source/{logging-monitoring.txt => monitoring.txt} | 0 .../{logging-monitoring => monitoring}/cluster-monitoring.txt | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename source/{logging-monitoring.txt => monitoring.txt} (100%) rename source/{logging-monitoring => monitoring}/cluster-monitoring.txt (100%) diff --git a/source/index.txt b/source/index.txt index 020689ff..53398b22 100644 --- a/source/index.txt +++ b/source/index.txt @@ -23,7 +23,7 @@ MongoDB PHP Library Run a Database Command Data Aggregation Indexes - Monitor Your Application + Monitor Your Application Security Specialized Data Formats Deploy to AWS Lambda diff --git a/source/logging-monitoring.txt b/source/monitoring.txt similarity index 100% rename from source/logging-monitoring.txt rename to source/monitoring.txt diff --git a/source/logging-monitoring/cluster-monitoring.txt b/source/monitoring/cluster-monitoring.txt similarity index 100% rename from source/logging-monitoring/cluster-monitoring.txt rename to source/monitoring/cluster-monitoring.txt From 9c796fcde3b012303da3127cb3f1f9334eb59996 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:33:08 -0400 Subject: [PATCH 05/35] edit --- .github/workflows/add-redirects.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 2fdb16ae..bec85b26 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,9 +1,7 @@ name: add-redirects on: - pull_request: - paths: - - "source/**/*.txt" - + workflow_call: + pull_request_target: jobs: get-redirects-renamed: name: Get Renamed Files @@ -20,6 +18,9 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: + files: | + source/ + *.txt include_all_old_new_renamed_files: 'true' write_output_files: 'true' - name: List renamed files From fb370329c1d7c1fad98269c040f6556c2f2c417f Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:34:15 -0400 Subject: [PATCH 06/35] source files --- .github/workflows/add-redirects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index bec85b26..2845c22a 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -19,7 +19,7 @@ jobs: uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: files: | - source/ + source/** *.txt include_all_old_new_renamed_files: 'true' write_output_files: 'true' From 70610ca525130937acd297c8e07fae121fc67e67 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:41:48 -0400 Subject: [PATCH 07/35] write to file --- .github/workflows/add-redirects.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 2845c22a..8f2d2643 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -23,9 +23,9 @@ jobs: *.txt include_all_old_new_renamed_files: 'true' write_output_files: 'true' - - name: List renamed files - id: output-renamed - env: - RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files }} + - name: Write renamed files to output + run: | + echo "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" > .github/outputs/renamed_files.txt + - name: Verify the contents of renamed_files.txt run: | cat .github/outputs/renamed_files.txt \ No newline at end of file From 052a61746ee11aaffdd45d99ddbda4c82efcd924 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 12:42:49 -0400 Subject: [PATCH 08/35] rename files --- source/index.txt | 2 +- source/{monitoring.txt => logging-monitoring.txt} | 0 .../{monitoring => logging-monitoring}/cluster-monitoring.txt | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename source/{monitoring.txt => logging-monitoring.txt} (100%) rename source/{monitoring => logging-monitoring}/cluster-monitoring.txt (100%) diff --git a/source/index.txt b/source/index.txt index 53398b22..020689ff 100644 --- a/source/index.txt +++ b/source/index.txt @@ -23,7 +23,7 @@ MongoDB PHP Library Run a Database Command Data Aggregation Indexes - Monitor Your Application + Monitor Your Application Security Specialized Data Formats Deploy to AWS Lambda diff --git a/source/monitoring.txt b/source/logging-monitoring.txt similarity index 100% rename from source/monitoring.txt rename to source/logging-monitoring.txt diff --git a/source/monitoring/cluster-monitoring.txt b/source/logging-monitoring/cluster-monitoring.txt similarity index 100% rename from source/monitoring/cluster-monitoring.txt rename to source/logging-monitoring/cluster-monitoring.txt From 6bde9912c3dd6a888bd35209af11d93dc5fac6e5 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:32:05 -0400 Subject: [PATCH 09/35] run --- .github/workflows/add-redirects.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 8f2d2643..d786802d 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,7 +1,6 @@ name: add-redirects on: - workflow_call: - pull_request_target: + push jobs: get-redirects-renamed: name: Get Renamed Files From 26613ee150faebaf316eaeb5f5ab6b45b7157789 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:34:47 -0400 Subject: [PATCH 10/35] test --- .github/workflows/add-redirects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index d786802d..0387b10f 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,6 +1,6 @@ name: add-redirects on: - push + pull_request_target: jobs: get-redirects-renamed: name: Get Renamed Files From 1050cb732df07a03cb79f6c2e9f62c010c3e3a7f Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:40:31 -0400 Subject: [PATCH 11/35] test --- .github/workflows/add-redirects.yml | 1 + source/{read => logging-monitoring}/change-streams.txt | 0 2 files changed, 1 insertion(+) rename source/{read => logging-monitoring}/change-streams.txt (100%) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 0387b10f..8f2d2643 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,5 +1,6 @@ name: add-redirects on: + workflow_call: pull_request_target: jobs: get-redirects-renamed: diff --git a/source/read/change-streams.txt b/source/logging-monitoring/change-streams.txt similarity index 100% rename from source/read/change-streams.txt rename to source/logging-monitoring/change-streams.txt From 7a885484e5af43c6b444241f2b68cf6368aa8e85 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:42:20 -0400 Subject: [PATCH 12/35] test again --- .github/workflows/add-redirects.yml | 8 +++----- source/{logging-monitoring => read}/change-streams.txt | 0 2 files changed, 3 insertions(+), 5 deletions(-) rename source/{logging-monitoring => read}/change-streams.txt (100%) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 8f2d2643..b1455ea8 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,7 +1,8 @@ name: add-redirects on: - workflow_call: - pull_request_target: + pull_request: + paths: + - "source/**" jobs: get-redirects-renamed: name: Get Renamed Files @@ -18,9 +19,6 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: - files: | - source/** - *.txt include_all_old_new_renamed_files: 'true' write_output_files: 'true' - name: Write renamed files to output diff --git a/source/logging-monitoring/change-streams.txt b/source/read/change-streams.txt similarity index 100% rename from source/logging-monitoring/change-streams.txt rename to source/read/change-streams.txt From 734f24c62d44634960c10adc64800481ede7ee88 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:47:33 -0400 Subject: [PATCH 13/35] write to file --- .github/workflows/add-redirects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index b1455ea8..a3eb4554 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -23,7 +23,7 @@ jobs: write_output_files: 'true' - name: Write renamed files to output run: | - echo "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" > .github/outputs/renamed_files.txt + printf "%s\n" "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" > .github/outputs/renamed_files.txt - name: Verify the contents of renamed_files.txt run: | cat .github/outputs/renamed_files.txt \ No newline at end of file From 347424685853ab68399dd3e137849eb4dd3fd966 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:49:30 -0400 Subject: [PATCH 14/35] see all renamed files --- .github/workflows/add-redirects.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index a3eb4554..d06c2058 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -21,6 +21,10 @@ jobs: with: include_all_old_new_renamed_files: 'true' write_output_files: 'true' + - name: Debug renamed files output + run: | + echo "Renamed files output:" + echo "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" - name: Write renamed files to output run: | printf "%s\n" "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" > .github/outputs/renamed_files.txt From 13af54e76d8581f6d72e9f76bbd07b98ed45c912 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:51:31 -0400 Subject: [PATCH 15/35] rename a file --- source/{whats-new.txt => release-notes.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename source/{whats-new.txt => release-notes.txt} (100%) diff --git a/source/whats-new.txt b/source/release-notes.txt similarity index 100% rename from source/whats-new.txt rename to source/release-notes.txt From 02cc502a42cebf2684a49c504b1be6ad780940be Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 13:58:08 -0400 Subject: [PATCH 16/35] env --- .github/workflows/add-redirects.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index d06c2058..a1c7657c 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -22,12 +22,16 @@ jobs: include_all_old_new_renamed_files: 'true' write_output_files: 'true' - name: Debug renamed files output + id: output-renamed + env: + RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files }} run: | echo "Renamed files output:" - echo "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" + echo "$RENAMED_FILES" - name: Write renamed files to output + id: write-renamed run: | - printf "%s\n" "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" > .github/outputs/renamed_files.txt + printf "%s\n" "$RENAMED_FILES" > .github/outputs/renamed_files.txt - name: Verify the contents of renamed_files.txt run: | cat .github/outputs/renamed_files.txt \ No newline at end of file From a0821bd9df3e316992e3efd2e1ac18ecfa24a391 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:14:24 -0400 Subject: [PATCH 17/35] test --- .github/workflows/add-redirects.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index a1c7657c..c48e60cc 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -19,14 +19,16 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: + files: | + *.txt include_all_old_new_renamed_files: 'true' write_output_files: 'true' - name: Debug renamed files output id: output-renamed env: - RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files }} + RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files_count }} run: | - echo "Renamed files output:" + echo "Renamed files count:" echo "$RENAMED_FILES" - name: Write renamed files to output id: write-renamed From 5948d67627b25164aa39c69671db8822a44bec72 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:16:55 -0400 Subject: [PATCH 18/35] test variable --- .github/workflows/add-redirects.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index c48e60cc..90ab899f 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -21,15 +21,14 @@ jobs: with: files: | *.txt - include_all_old_new_renamed_files: 'true' - write_output_files: 'true' + include_all_old_new_renamed_files: true + write_output_files: true - name: Debug renamed files output id: output-renamed env: RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files_count }} run: | - echo "Renamed files count:" - echo "$RENAMED_FILES" + echo "Renamed files count: $RENAMED_FILES" - name: Write renamed files to output id: write-renamed run: | From 43b53efbd6b785c0d345c13f09dd6d0038cc5e94 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:19:45 -0400 Subject: [PATCH 19/35] test --- .github/workflows/add-redirects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 90ab899f..b5aec26e 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -28,7 +28,7 @@ jobs: env: RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files_count }} run: | - echo "Renamed files count: $RENAMED_FILES" + echo "Renamed files count: ${{ steps.changed_files.outputs.all_old_new_renamed_files_count }}" - name: Write renamed files to output id: write-renamed run: | From 40bc2ef8df7eff55690bd4a65774a4f98eff3e9c Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:21:27 -0400 Subject: [PATCH 20/35] test --- .github/workflows/add-redirects.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index b5aec26e..a3712998 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -26,9 +26,9 @@ jobs: - name: Debug renamed files output id: output-renamed env: - RENAMED_FILES: ${{ steps.changed_files.outputs.all_old_new_renamed_files_count }} + RENAMED_FILES: ${{ steps.changed_files.outputs.all_changed_files }} run: | - echo "Renamed files count: ${{ steps.changed_files.outputs.all_old_new_renamed_files_count }}" + echo "Changed files: ${{ steps.changed_files.outputs.all_changed_files }}" - name: Write renamed files to output id: write-renamed run: | From ce33e3bbe475db0f1eaf2ec4dee0e5ab08459060 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:23:05 -0400 Subject: [PATCH 21/35] test --- .github/workflows/add-redirects.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index a3712998..ad67d67d 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -26,9 +26,9 @@ jobs: - name: Debug renamed files output id: output-renamed env: - RENAMED_FILES: ${{ steps.changed_files.outputs.all_changed_files }} + RENAMED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | - echo "Changed files: ${{ steps.changed_files.outputs.all_changed_files }}" + echo "Changed files: ${{ steps.changed-files.outputs.all_changed_files }}" - name: Write renamed files to output id: write-renamed run: | From 8627ca0b76a7c5d30728dd2323da911d0a8eacb0 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:25:08 -0400 Subject: [PATCH 22/35] simplify --- .github/workflows/add-redirects.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index ad67d67d..cbb725c1 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -19,8 +19,6 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: - files: | - *.txt include_all_old_new_renamed_files: true write_output_files: true - name: Debug renamed files output @@ -28,11 +26,5 @@ jobs: env: RENAMED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | - echo "Changed files: ${{ steps.changed-files.outputs.all_changed_files }}" - - name: Write renamed files to output - id: write-renamed - run: | - printf "%s\n" "$RENAMED_FILES" > .github/outputs/renamed_files.txt - - name: Verify the contents of renamed_files.txt - run: | - cat .github/outputs/renamed_files.txt \ No newline at end of file + echo "Changed files: " + echo "${{ steps.changed-files.outputs.all_changed_files }}" \ No newline at end of file From 2e78f0af57fe877aa24aa23d38524b71c7ff5759 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:26:39 -0400 Subject: [PATCH 23/35] fix --- .github/workflows/add-redirects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index cbb725c1..d74103d5 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -27,4 +27,4 @@ jobs: RENAMED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | echo "Changed files: " - echo "${{ steps.changed-files.outputs.all_changed_files }}" \ No newline at end of file + echo "${{ steps.changed-files.outputs.all_old_new_renamed_files_count }}" \ No newline at end of file From 97b2bdffa8e53590e7885f2b6f4d17a1b508cce3 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 14:41:19 -0400 Subject: [PATCH 24/35] all files --- .github/workflows/add-redirects.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index d74103d5..4d6cbee2 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -24,7 +24,7 @@ jobs: - name: Debug renamed files output id: output-renamed env: - RENAMED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} + RENAMED_FILES: ${{ steps.changed-files.outputs.all_old_new_renamed_files }} run: | echo "Changed files: " - echo "${{ steps.changed-files.outputs.all_old_new_renamed_files_count }}" \ No newline at end of file + echo "${{ steps.changed-files.outputs.all_old_new_renamed_files }}" \ No newline at end of file From 5d75e016be6e1678c322c4d66db294a38e793481 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 15:34:13 -0400 Subject: [PATCH 25/35] test --- .github/workflows/add-redirects.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 4d6cbee2..eaa3b76e 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -20,11 +20,20 @@ jobs: uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: include_all_old_new_renamed_files: true - write_output_files: true - - name: Debug renamed files output - id: output-renamed + + - name: Parse renamed files + id: renamed-files + if: steps.changed-files.outputs.renamed_files_count > 0 env: RENAMED_FILES: ${{ steps.changed-files.outputs.all_old_new_renamed_files }} run: | - echo "Changed files: " - echo "${{ steps.changed-files.outputs.all_old_new_renamed_files }}" \ No newline at end of file + new_redirects="" + for file in $RENAMED_FILES; do + old=$(echo "$file" | cut -d',' -f1) + old="${old#source}" + old="${old%.txt}/" + new=$(echo "$file" | cut -d',' -f2) + new="${new#source}" + new="${new%.txt}/" + new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " + done \ No newline at end of file From 118015984c96d949959f04bf2fc1d611e785bc37 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 15:36:41 -0400 Subject: [PATCH 26/35] print --- .github/workflows/add-redirects.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index eaa3b76e..e64b2b9d 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -36,4 +36,5 @@ jobs: new="${new#source}" new="${new%.txt}/" new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " - done \ No newline at end of file + done + echo "new_redirects" \ No newline at end of file From 451706755d2ce0d82c96f3a8d68728cf49014f91 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 15:38:27 -0400 Subject: [PATCH 27/35] test --- .github/workflows/add-redirects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index e64b2b9d..54d1be2b 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -37,4 +37,4 @@ jobs: new="${new%.txt}/" new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " done - echo "new_redirects" \ No newline at end of file + echo "${new_redirects}" \ No newline at end of file From eadbfec91260b8042973b8b57087bea90c6b5b4f Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 15:45:13 -0400 Subject: [PATCH 28/35] delete test --- .github/workflows/add-redirects.yml | 14 ++++++++++++++ source/tutorial.txt | 16 ---------------- 2 files changed, 14 insertions(+), 16 deletions(-) delete mode 100644 source/tutorial.txt diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 54d1be2b..4b5ec00b 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -37,4 +37,18 @@ jobs: new="${new%.txt}/" new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " done + echo "${new_redirects}" + - name: Parse deleted files + id: deleted-files + if: steps.changed-files.outputs.deleted_files_count > 0 + env: + DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }} + run: | + new_redirects="" + for file in $DELETED_FILES; do + old=$(echo "$file" | cut -d',' -f1) + old="${old#source}" + old="${old%.txt}/" + new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}
  • " + done echo "${new_redirects}" \ No newline at end of file diff --git a/source/tutorial.txt b/source/tutorial.txt deleted file mode 100644 index 4786bb9e..00000000 --- a/source/tutorial.txt +++ /dev/null @@ -1,16 +0,0 @@ -:orphan: - -Tutorials -========= - -.. meta:: - :description: Explore various tutorials for using the MongoDB PHP Library. - - -.. toctree:: - - /tutorial/server-selection - /tutorial/collation - /tutorial/commands - /tutorial/encryption - /tutorial/aws-lambda From 56b05fd29184a67d3997cb14de2db6d2975c920a Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 16:01:38 -0400 Subject: [PATCH 29/35] test --- .github/workflows/add-redirects.yml | 12 ++++++------ source/{release-notes.txt => whats-new.txt} | 0 2 files changed, 6 insertions(+), 6 deletions(-) rename source/{release-notes.txt => whats-new.txt} (100%) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 4b5ec00b..2afa849d 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -27,7 +27,7 @@ jobs: env: RENAMED_FILES: ${{ steps.changed-files.outputs.all_old_new_renamed_files }} run: | - new_redirects="" + renamed_redirects="" for file in $RENAMED_FILES; do old=$(echo "$file" | cut -d',' -f1) old="${old#source}" @@ -35,20 +35,20 @@ jobs: new=$(echo "$file" | cut -d',' -f2) new="${new#source}" new="${new%.txt}/" - new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " + renamed_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " done - echo "${new_redirects}" + echo "${renamed_redirects}" - name: Parse deleted files id: deleted-files if: steps.changed-files.outputs.deleted_files_count > 0 env: DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }} run: | - new_redirects="" + deleted_redirects="${renamed_redirects}" for file in $DELETED_FILES; do old=$(echo "$file" | cut -d',' -f1) old="${old#source}" old="${old%.txt}/" - new_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}
  • " + deleted_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}
  • " done - echo "${new_redirects}" \ No newline at end of file + echo "${deleted_redirects}" \ No newline at end of file diff --git a/source/release-notes.txt b/source/whats-new.txt similarity index 100% rename from source/release-notes.txt rename to source/whats-new.txt From 73c1baaf708cdbf11d0337a8876687be7c4022f8 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 16:08:38 -0400 Subject: [PATCH 30/35] test --- .github/workflows/add-redirects.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 2afa849d..849efff6 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -38,17 +38,9 @@ jobs: renamed_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " done echo "${renamed_redirects}" - - name: Parse deleted files - id: deleted-files - if: steps.changed-files.outputs.deleted_files_count > 0 - env: - DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }} - run: | - deleted_redirects="${renamed_redirects}" - for file in $DELETED_FILES; do - old=$(echo "$file" | cut -d',' -f1) - old="${old#source}" - old="${old%.txt}/" - deleted_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}
  • " - done - echo "${deleted_redirects}" \ No newline at end of file + echo "redirects=${renamed_redirects}" >> "$GITHUB_OUTPUT" + - name: Update the PR Description + uses: MongoCaleb/pr-description-action@master + with: + content: "\n${{ steps.renamed-files.outputs.redirects }}\n" + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 330b91636b42c330cf5c45d420b2d7fb68d09c39 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 16:21:13 -0400 Subject: [PATCH 31/35] try again --- .github/workflows/add-redirects.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 849efff6..e2c31f93 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -37,10 +37,12 @@ jobs: new="${new%.txt}/" renamed_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " done - echo "${renamed_redirects}" + if [ "$renamed_redirects" == "" ]; then + renamed_redirects="No redirects to add" + fi echo "redirects=${renamed_redirects}" >> "$GITHUB_OUTPUT" - name: Update the PR Description uses: MongoCaleb/pr-description-action@master with: - content: "\n${{ steps.renamed-files.outputs.redirects }}\n" - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + content: "\n${{ steps.renamed-files.outputs.redirects }}\n" + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From e0f73b4e6a2f211c7d28648ca5b6dedf34d60e1c Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 12 May 2025 16:25:16 -0400 Subject: [PATCH 32/35] test --- .github/workflows/add-redirects.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index e2c31f93..036c347f 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,8 +1,6 @@ name: add-redirects on: pull_request: - paths: - - "source/**" jobs: get-redirects-renamed: name: Get Renamed Files @@ -19,8 +17,10 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: + files: | + source/** + **.txt include_all_old_new_renamed_files: true - - name: Parse renamed files id: renamed-files if: steps.changed-files.outputs.renamed_files_count > 0 From 4e23224d68db2495cb0b6f1dd6a81d1e2ed84d4d Mon Sep 17 00:00:00 2001 From: norareidy Date: Tue, 13 May 2025 10:23:43 -0400 Subject: [PATCH 33/35] updates --- .github/workflows/add-redirects.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/add-redirects.yml b/.github/workflows/add-redirects.yml index 036c347f..e5234f4a 100644 --- a/.github/workflows/add-redirects.yml +++ b/.github/workflows/add-redirects.yml @@ -1,6 +1,6 @@ name: add-redirects on: - pull_request: + pull_request_target: jobs: get-redirects-renamed: name: Get Renamed Files @@ -17,10 +17,10 @@ jobs: # pin to a specific commit to ensure stability uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c with: + include_all_old_new_renamed_files: true files: | source/** **.txt - include_all_old_new_renamed_files: true - name: Parse renamed files id: renamed-files if: steps.changed-files.outputs.renamed_files_count > 0 @@ -31,18 +31,32 @@ jobs: for file in $RENAMED_FILES; do old=$(echo "$file" | cut -d',' -f1) old="${old#source}" - old="${old%.txt}/" + old="${old%.txt}" new=$(echo "$file" | cut -d',' -f2) new="${new#source}" - new="${new%.txt}/" - renamed_redirects+="
  • [*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}$new
  • " + new="${new%.txt}" + renamed_redirects+="- [\\*-master]: \$\{prefix\}/\$\{version\}$old/ -> \$\{base\}/\$\{version\}$new/
    " done if [ "$renamed_redirects" == "" ]; then renamed_redirects="No redirects to add" fi echo "redirects=${renamed_redirects}" >> "$GITHUB_OUTPUT" + - name: Parse deleted files + id: deleted-files + if: steps.changed-files.outputs.deleted_files_count > 0 + env: + DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }} + run: | + deleted_redirects="" + for file in $DELETED_FILES; do + old=$(echo "$file" | cut -d',' -f1) + old="${old#source}" + old="${old%.txt}/" + deleted_redirects+="[\*-master]: \$\{prefix\}/\$\{version\}$old -> \$\{base\}/\$\{version\}\\n" + done + echo "${deleted_redirects}" - name: Update the PR Description uses: MongoCaleb/pr-description-action@master with: - content: "\n${{ steps.renamed-files.outputs.redirects }}\n" + content: "\n- [ ] Did you add redirects for renamed files?\n${{ steps.renamed-files.outputs.redirects }}\n- [ ] Did you add redirects for deleted files?" token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From bf0fd85f91430192099d4c483e0a60fd8415bae6 Mon Sep 17 00:00:00 2001 From: norareidy Date: Tue, 13 May 2025 10:24:58 -0400 Subject: [PATCH 34/35] revert file changes --- source/index.txt | 2 +- source/{logging-monitoring.txt => monitoring.txt} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename source/{logging-monitoring.txt => monitoring.txt} (100%) diff --git a/source/index.txt b/source/index.txt index 020689ff..53398b22 100644 --- a/source/index.txt +++ b/source/index.txt @@ -23,7 +23,7 @@ MongoDB PHP Library Run a Database Command Data Aggregation Indexes - Monitor Your Application + Monitor Your Application Security Specialized Data Formats Deploy to AWS Lambda diff --git a/source/logging-monitoring.txt b/source/monitoring.txt similarity index 100% rename from source/logging-monitoring.txt rename to source/monitoring.txt From a655f016f07d1c831a18a8e7ecee0169e138858d Mon Sep 17 00:00:00 2001 From: norareidy Date: Tue, 13 May 2025 10:26:01 -0400 Subject: [PATCH 35/35] fix --- .github/outputs/renamed_files.txt | 0 source/{logging-monitoring => monitoring}/cluster-monitoring.txt | 0 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .github/outputs/renamed_files.txt rename source/{logging-monitoring => monitoring}/cluster-monitoring.txt (100%) diff --git a/.github/outputs/renamed_files.txt b/.github/outputs/renamed_files.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/source/logging-monitoring/cluster-monitoring.txt b/source/monitoring/cluster-monitoring.txt similarity index 100% rename from source/logging-monitoring/cluster-monitoring.txt rename to source/monitoring/cluster-monitoring.txt