Checking unreleased commits
Check which workspace repos have commits since their newest release.
Repos without GitHub releases report None. Commit messages matching DEFAULT_SKIP, [tool.fastws].release_skip, or skip are ignored; GitHub API failures per repo are captured inside ReleaseReport.
ws_releases
async def ws_releases(
project:str=None, # Limit to this package's transitive workspace dependencies (default: the repo containing cwd, if any)
skip:str=None, # Extra start-of-message regex for commits that need no release
workspace:str='', # Workspace root (defaults to the active venv's parent, else cwd)
repos_file:str='repos.txt', # File containing repo list
nodeps:bool=False, # Report only the project itself, not its dependency closure
):Report workspace repos with commits since their newest release.
check_releases
async def check_releases(
project:str=None, # Limit to this package's transitive workspace dependencies (default: the repo containing cwd, if any)
skip=None, # Extra start-of-message regex or list of regexes for commits that need no release
workspace:str='', # Workspace root (defaults to the active venv's parent, else cwd)
repos_file:str='repos.txt', # File containing the repo list
nodeps:bool=False, # Report only `project` itself rather than its dependency closure
)->ReleaseReport: # Rows of `(repo, pending)` across the selected workspace reposCheck workspace repos for unreleased commits.
Passing project (or running inside a member checkout) restricts the check to that package’s transitive dependency closure, or to the package itself with nodeps=True. Repos listed in [tool.fastws].release_exclude are skipped.
check_release
async def check_release(
repo:str, # Repository name (`'name'` or `'owner/name'`; default owner is `AnswerDotAI`)
skip=None, # Extra start-of-message regex, list of regexes, or precompiled `re.Pattern` list to ignore
)->list[str] | None: # First lines of commits on the default branch since the newest release, or `None` when the repo has no releasesReturn unreleased commit summaries for one GitHub repository.
ReleaseReport
def ReleaseReport(
*args, **kwargs
):Rows of (repo, pending) where pending is a list of commit summaries, None (no releases), or an Exception.
repr(ReleaseReport([('fastcore', ['Fix edge case']), ('fastship', []), ('newpkg', None)]))