From 0fe5c56ad1ea2a4f11c1613f04a3870a3daf0ef4 Mon Sep 17 00:00:00 2001 From: Stephan Merker Date: Wed, 16 Oct 2024 09:20:30 +0200 Subject: [PATCH 1/2] Consider only rfc-0000-* files for generate_id - assign-rfc-number script failed on rfc-draft-cfapiv2-eol.md which contains a digit in the file name --- toc/rfc/assign-rfc-number.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toc/rfc/assign-rfc-number.sh b/toc/rfc/assign-rfc-number.sh index e9a74456..e8772bc1 100755 --- a/toc/rfc/assign-rfc-number.sh +++ b/toc/rfc/assign-rfc-number.sh @@ -27,7 +27,7 @@ NOPUSH=${NOPUSH:-} # generate_id() { - id="$(find "$script_dir" -maxdepth 2 -type f -exec basename {} \; | sed 's/[^0-9]*//' | sed -E 's|^([[:digit:]]{4})-.*$|\1|' | sort | tail -n 1 | sed 's/^0*//')" + id="$(find "$script_dir" -maxdepth 2 -type f -exec basename {} \; | grep -E '^rfc-[0-9]{4}-' | sed 's/[^0-9]*//' | sed -E 's|^([[:digit:]]{4})-.*$|\1|' | sort | tail -n 1 | sed 's/^0*//')" ((id++)) printf "%04d" "${id}" } From d7b48620d0da3bcadeea18aaf64f6fa36c329e7f Mon Sep 17 00:00:00 2001 From: Stephan Merker Date: Wed, 16 Oct 2024 09:22:35 +0200 Subject: [PATCH 2/2] Assigning number 0032 to RFC from PR #941 --- toc/rfc/{rfc-draft-cfapiv2-eol.md => rfc-0032-cfapiv2-eol.md} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename toc/rfc/{rfc-draft-cfapiv2-eol.md => rfc-0032-cfapiv2-eol.md} (96%) diff --git a/toc/rfc/rfc-draft-cfapiv2-eol.md b/toc/rfc/rfc-0032-cfapiv2-eol.md similarity index 96% rename from toc/rfc/rfc-draft-cfapiv2-eol.md rename to toc/rfc/rfc-0032-cfapiv2-eol.md index 4a759b8d..8428ac22 100644 --- a/toc/rfc/rfc-draft-cfapiv2-eol.md +++ b/toc/rfc/rfc-0032-cfapiv2-eol.md @@ -3,8 +3,8 @@ - Name: CF API v2 End of Life - Start Date: 2024-08-08 - Author(s): stephanme -- Status: Draft -- RFC Pull Request: [#941](https://github.com/cloudfoundry/community/pull/941) +- Status: Accepted +- RFC Pull Request: [community#941](https://github.com/cloudfoundry/community/pull/941) ## Summary