docker / docker/metadata-action

Support `merge_group` events for `type=ref` tags

Open
#529 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
Dominant language
TypeScript
Stars
1.1k
Forks
160
Avg merge
4d 17h
Merged PRs (30d)
12

Description

Description

Github Merge Queue is a common part of a CI/CD flow nowadays. In our case the test suite triggered by the Merge Queue relies on the existence of a Docker image. For us it only makes sense to tag it with the PR number that went into the Merge Queue so we could also benefit from layer cache later on.

It'd be really nice to have a type=ref,event=mq tag option, similar to the type=ref,event=pr one.
Currently, our workaround is type=raw,value=pr-${{ <PR Number> }},enable=${{ github.event_name == 'merge_group' }} where the PR number is extracted from github.event.merge_group.head_ref.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing type=ref,event=pr handling and the tag-generation entry point. Compare the merge_group event data, including github.event.merge_group.head_ref, with the current workaround; done means type=ref,event=mq produces a tag containing the merged pull request number.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.