action-workflow-queue icon indicating copy to clipboard operation
action-workflow-queue copied to clipboard

Scope the concurrency at the branch level

Open markmssd opened this issue 1 year ago • 1 comments

Thanks for this action @ahmadnassri !

I've noticed that when we fetch the workflow runs here, it does not take into account the branch. For example:

  // get current run of this workflow
  const { data: { workflow_runs } } = await octokit.request('GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs', {
    ...github.context.repo,
    branch: github.context.ref.replace('refs/heads/', ''),
    workflow_id
  })

Would it make sense to have that scoping? I can open a PR if so!

markmssd avatar Feb 27 '24 21:02 markmssd

I've opened a PR so it's ready just in case!

markmssd avatar Feb 27 '24 22:02 markmssd