Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Automate syncing master into dev after each release

Closed
#70 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
git, github-actions
Domain
ci-cd, devops, release

Research direction

Start by reviewing CONTRIBUTING.md, the branch-sync requirement in #69, and the repository's existing workflow configuration. Trace how pushes to master and workflow_dispatch should compare master with dev, then verify the no-op case and the sync pull request's branch name, label, merge guidance, and CI path. Done means the workflow reliably opens the requested PR only when dev is behind.

Written by the indexing model from the issue text.

Description

Summary

Automate syncing master back into dev, so the two branches cannot silently drift apart
again.

Why

dev fell 14 commits behind master and nobody noticed until a downstream build broke.
Repaired in #68, but the underlying cause is unaddressed: the sync is a manual step that is
easy to forget after a release.

What was missing from dev was not incidental — the whole WebARKitVideoLuma module, the KPM
matcher determinism fix (2c9f630), the logging work and the 1.7.6 version bump.

The consequence is worse than untidy history. CONTRIBUTING.md tells contributors to branch
from dev and open PRs against dev. While dev was stale, a branch taken from it could not
be built by consumers at all:

emcc: error: .../WebARKit/WebARKitVideoLuma.cpp: No such file or directory

WebARKitVideoLuma.cpp lives at WebARKit/WebARKitVideoLuma.cpp on master, which is where
jsartoolkitNFT's tools/makem.js expects it; on
the stale dev it was absent. So the documented contribution flow produced unbuildable
branches — hit while opening #67.

Why not a ruleset instead

A branch ruleset can restrict merge methods, but only unconditionally per branch. The rule that
matters here is conditional on the kind of PR:

PR into dev correct method
master -> dev sync merge commit
ordinary feature or fix squash is fine

Restricting dev to merge-commits-only would force every feature PR into a merge commit too,
contradicting the squash convention. Leaving squash enabled leaves the bad case reachable. A
ruleset is wrong about half the time, so it is not the right instrument.

More to the point: the drift did not happen because anyone chose the wrong merge button. It
happened because nobody ran the sync for 14 commits. Automation addresses that; enforcement
does not.

Proposed approach

A workflow that opens a master -> dev pull request whenever master moves ahead:

  • Trigger on push to master (and workflow_dispatch for manual runs).
  • Exit quietly when dev is already up to date, so it is silent in the normal case.
  • Open a PR from a chore/sync-dev-<sha> branch into dev when it is not.
  • Label it so it is recognisable, and state in the body that it must be merged with a
    merge commit, not squashed or rebased — see #69.

Opening a PR rather than pushing directly keeps CI in the loop and leaves a human to resolve
conflicts on the rare occasion there are any. #68 merged with none.

An alternative worth considering is auto-merging the sync PR when it is conflict-free and CI is
green, leaving a human only for the conflicting case.

Notes

  • #69 documents the merge-commit requirement for branch-sync PRs. This issue is about removing
    the need to remember it.
  • Worth checking whether webarkit-testing and other consumers track dev or master, since
    that affects how urgent a stale dev actually is.
Dominant language
C++
Stars
21
Forks
8
Avg merge
7h 30m
Merged PRs (30d)
25

Getting set up

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.

More from webarkit/WebARKitLib

All issues in webarkit/WebARKitLib

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.