This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 3843056, | |
"name": "Branching Rules", | |
"target": "branch", | |
"source_type": "Repository", | |
"source": "minesa-time/kaeru", | |
"enforcement": "active", | |
"conditions": { | |
"ref_name": { | |
"exclude": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
def scan_as_files(directory, search_text): | |
files_found = [] | |
pattern = re.compile(rf'\b{re.escape(search_text)}\b') # Ensure exact word match | |
print(f"Searching for: {search_text}") # Display search text in CMD | |
for filename in os.listdir(directory): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import re | |
import shutil | |
from pathlib import Path | |
from collections import defaultdict | |
def extract_category(filename): | |
""" | |
Extract the category from a filename. |
OlderNewer