Skip to content

Commit 61a4b07

Browse files
authored
Add project tag to forum posts (#343)
* Support sending project name as an additional tag to release posts * Add project name to test tags * Swap 'release-management' tag for 'release', which seems more appropriate.
1 parent a86a31b commit 61a4b07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/forum_post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _prepare_post(self) -> dict[str, str | list[str]]:
117117
"raw": post_md,
118118
"category": self.category_id,
119119
"created_at": self.created,
120-
"tags": ["devtools", "release-management"],
120+
"tags": ["devtools", "release", self.project_short],
121121
}
122122

123123
def post(self) -> None:

test/test_forum_post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ def test_prepare_post(post_instance: forum_post.Post) -> None:
4545
"raw": release_notes,
4646
"category": post_instance.category_id,
4747
"created_at": post_instance.created,
48-
"tags": ["devtools", "release-management"],
48+
"tags": ["devtools", "release", "molecule"],
4949
}

0 commit comments

Comments
 (0)