Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

keepalive: avoid diverging commits in forks#20

Open
dscho wants to merge 1 commit intogitgitgadget:maingitgitgadget/gitgitgadget-workflows:mainfrom
dscho:fix-keepalive-in-forks-againdscho/gitgitgadget-workflows:fix-keepalive-in-forks-againCopy head branch name to clipboard
Open

keepalive: avoid diverging commits in forks#20
dscho wants to merge 1 commit intogitgitgadget:maingitgitgadget/gitgitgadget-workflows:mainfrom
dscho:fix-keepalive-in-forks-againdscho/gitgitgadget-workflows:fix-keepalive-in-forks-againCopy head branch name to clipboard

Conversation

@dscho
Copy link
Member

@dscho dscho commented Jan 9, 2026

In forks of gitgitgadget-workflows, we want to prefer merging the upstream branch over generating keepalive commits that diverge from upstream.

To that end, run the workflow every week, and ensure that there is a commit at least every 4 weeks in forks, but every 3 weeks in the upstream repository. That way, the forks should always pick up the upstream's keepalive commit.

@dscho dscho requested a review from webstech January 9, 2026 18:08
@dscho dscho self-assigned this Jan 9, 2026
In forks of `gitgitgadget-workflows`, we want to prefer merging the
upstream branch over generating keepalive commits that diverge from
upstream.

To that end, run the workflow every week, and ensure that there is
a commit at least every 4 weeks in forks, but every 3 weeks in the
upstream repository. That way, the forks should always pick up the
upstream's keepalive commit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the fix-keepalive-in-forks-again branch from 6f70cff to b8d1227 Compare January 10, 2026 10:38
test 0 -lt $(git rev-list --count --since=3.weeks.ago HEAD)
test 0 -lt $(git rev-list --count --since=${{ github.event.repository.fork == true && '4' || '3' }}.weeks.ago HEAD)
then
echo "::notice::No need to keep alive, there were commits in the last three weeks"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this message be more specific? If I understand this correctly (stop laughing!) the notice will be issued more frequently for four weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.