From 4eca31ea93196116c8c72416d05bf69940af697a Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Thu, 14 Mar 2024 12:27:39 -0400 Subject: [PATCH 1/2] ToolMetadata.rule_url should be optional; expose via API --- src/codemodder/codemods/api.py | 1 + src/codemodder/codemods/base_codemod.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codemodder/codemods/api.py b/src/codemodder/codemods/api.py index f09910ea..c375dc41 100644 --- a/src/codemodder/codemods/api.py +++ b/src/codemodder/codemods/api.py @@ -8,6 +8,7 @@ Metadata, Reference, ReviewGuidance, + ToolMetadata, ) from codemodder.codemods.libcst_transformer import ( LibcstResultTransformer, diff --git a/src/codemodder/codemods/base_codemod.py b/src/codemodder/codemods/base_codemod.py index 57f057f3..b3229ca9 100644 --- a/src/codemodder/codemods/base_codemod.py +++ b/src/codemodder/codemods/base_codemod.py @@ -41,7 +41,7 @@ class ToolMetadata: name: str rule_id: str rule_name: str - rule_url: str + rule_url: str | None = None class BaseCodemod(metaclass=ABCMeta): From 74c728f4e9056f97528c5806ab15e5dd9604199a Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Thu, 14 Mar 2024 12:31:32 -0400 Subject: [PATCH 2/2] Run test workflow on release branches --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2afdfd3..a3173b81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,12 +5,14 @@ on: branches: - main - develop + - "[0-9]+.[0-9]+.x" tags: - "[0-9]+.[0-9]+.[0-9]+" pull_request: branches: - main - develop + - "[0-9]+.[0-9]+.x" merge_group: concurrency: