Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff against branch in pending PR #13

Merged
merged 3 commits into from
Jul 12, 2022
Merged

Diff against branch in pending PR #13

merged 3 commits into from
Jul 12, 2022

Conversation

bgilbert
Copy link
Contributor

We've been diffing against the downstream main branch, which creates an incentive to merge upstream template PRs expeditiously to keep the diff clean. However, it also adds noise to the downstream Git history. It'd be better to let changes accumulate in a PR, and merge it just before starting a release.

Add tmpl8 command-line options allowing it to sync the cache (and thus generate the diff) from the downstream PR branch instead. If that branch is missing, fall back to the downstream main branch as before. This is implemented via a regex and replacement string for repo URLs and a single branch name for all repos, since that's all we actually need right now.

Hardcode arguments in the Makefile to match the values used by the GitHub workflow.

bgilbert added 3 commits June 30, 2022 04:32
We've been diffing against the downstream main branch, which creates an
incentive to merge upstream template PRs expeditiously to keep the diff
clean.  However, it also adds noise to the downstream Git history.  It'd
be better to let changes accumulate in a PR, and merge it just before
starting a release.

Add tmpl8 command-line options allowing it to sync the cache (and thus
generate the diff) from the downstream PR branch instead.  If that branch
is missing, fall back to the downstream main branch as before.  This is
implemented via a regex and replacement string for repo URLs and a single
branch name for all repos, since that's all we actually need right now.

Hardcode arguments in the Makefile to match the values used by the GitHub
workflow.
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

I don't fully understand this, but it seems sane.

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