promoting-dev-to-main

Featured

Use when preparing, reviewing, resolving conflicts for, or merging a CORAL release pull request from the long-lived dev branch into main.

AI & Automation 910 stars 120 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
99
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Promoting dev to main ## Core rule Merge `dev → main` release PRs with a **merge commit**. Never squash or rebase these promotions. Ordinary contribution PRs still target `dev` and may be squash-merged. The release promotion is the exception because `main` must retain `dev` in its ancestry. Squashing a promotion makes the next release re-present old commits and can create large false conflicts. ## Workflow 1. Confirm the PR is exactly `base=main`, `head=dev` and no duplicate release PR is open. 2. Review `main..dev`, required CI, and deployment checks. 3. In GitHub, open the merge-method dropdown and choose **Create a merge commit**. With the CLI, use: ```bash gh pr merge <number> --repo Human-Agent-Society/CORAL --merge ``` 4. Keep the long-lived `dev` branch. Do not delete or force-push it. 5. Fetch both branches and verify the released `dev` tip is an ancestor of `main`: ```bash git fetch origin dev main git merge-base --is-ancestor origin/dev origin/main ``` Exit status `0` is required. 6. Confirm post-merge CI, release automation, deployments, and production smoke checks. ## If GitHub reports conflicts Do not force-rebase the shared `dev` branch. First inspect the topology and reproduce conflicts with `git merge-tree`. If an earlier release was squash-merged, `main` may have the same tree as an earlier `dev` commit without sharing its ancestry. Verify tree equivalence before choosing a repair. Prefer merging `main` back i...

Details

Author
Human-Agent-Society
Repository
Human-Agent-Society/CORAL
Created
5 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

release-promotion

Use when the integration branch looks ready to ship and someone wants to promote it to the release branch and tag a release, when a just-tagged release needs its deploy verified live and healthy ("did the deploy land", "is prod healthy after the release"), when a bad release needs rolling back ("roll back the release", "revert prod"), or when a production incident needs a hotfix landed correctly. For the hotfix path specifically, this skill's hotfix notes carry the both-branches detail.

1 Updated today
yoelgal
Code & Development Listed

atmos-new-pr-merge

Ship a finished feature or bugfix through a short-lived PR branch with archival history: create a branch from main (or another base), push commits, open a PR using the repo PR template, auto-merge into main, then checkout main and pull latest. Use whenever the user says "new pr merge", "开 PR 并合并", "创建 PR 然后合并到 main", "push 并合并", "leave a PR for the record", or runs /atmos-new-pr-merge. Prefer this over committing or pushing directly to main for routine feature work and bugfixes.

5 Updated today
AruNi-01
Code & Development Listed

mergemain

Safely bring the latest main into the current branch. Fetches main fresh from the remote, merges it into the working branch, and resolves conflicts by reading the full context of both sides — keeping the branch's logic changes and main's unrelated UI/infra changes rather than blindly taking one side. Asks the user whenever intent is genuinely ambiguous. Use when asked to merge or sync with main, update a branch, or when the user runs /mergemain.

2 Updated 1 weeks ago
nazmulnahid-git