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

Document how to use Dependabot to keep a test suite submodule up to date #549

Open
Julian opened this issue Apr 11, 2022 · 3 comments
Open
Labels
enhancement An enhancement to the tooling or structure of the suite (as opposed to a new test).

Comments

@Julian
Copy link
Member

Julian commented Apr 11, 2022

(Via @Relequestual here)

Implementers may appreciate a GitHub action which automatically sends PRs to their repo to update the test suite.

As a concrete example, python-jsonschema has a git-subtree of this suite here, and would benefit from automated pull requests whenever the main branch of this repository is updated.

To do this in general, such a github action would need to be configured with the path within a repo where the subtree lives, likely need to support both git-subtree as well as git-submodule (and possibly git-subrepo), and allow for passing options to the subtree/submodule command (e.g. if someone wanted a git subtree pull --squash to be the PR).

It's unclear that this should live in this precise repo rather than an adjacent one, but putting it here to track/ack the request.

@Julian Julian added the enhancement An enhancement to the tooling or structure of the suite (as opposed to a new test). label Apr 11, 2022
@notEthan
Copy link
Contributor

You can configure dependabot to update git submodules. .github/dependabot.yml:

version: 2
updates:
  - package-ecosystem: gitsubmodule
    directory: "/"
    schedule:
      interval: daily

or so. No subtrees though (dependabot/dependabot-core#3741), and I hadn't even heard of git-subrepo, looks like it is a third-party addon.

@Julian Julian changed the title Provide a GitHub Action for Auto-updating a subrepo of the test suite within implementations Document how to use Dependabot to keep a test suite submodule up to date Dec 29, 2022
@Julian
Copy link
Member Author

Julian commented Dec 29, 2022

(Just seeing the comment)

That sounds perfect I think, and I'd forgotten about it -- changing the title to instead just say we should document exactly what you wrote pretty much.

PR welcome from anyone of course to do so.

@Cryptonics1

This comment was marked as spam.

@Julian Julian mentioned this issue May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to the tooling or structure of the suite (as opposed to a new test).
Projects
None yet
Development

No branches or pull requests

3 participants