perago.find_matching_publication_commit#

perago.find_matching_publication_commit(commits, *, logical_task_key, task_id, staging_commit)[源代码]#

Find the published commit that matches one staged workspace attempt.

Parameters:
commitsSequence[object]

Candidate commits from the target branch history. Each commit must expose id and optional metadata either as attributes or mapping keys.

logical_task_keystr

Stable logical task identity that must match the publish metadata.

task_idstr

Concrete Conductor task attempt id that must match the publish metadata.

staging_commitstr

Staging commit id that must match the publish metadata.

Returns:
str | None

Matching published commit id, or None when no commit satisfies the full metadata match.

参数:
返回类型:

str | None