Allow initializing the Git notes required by GitGitGadget#14
Draft
Allow initializing the Git notes required by GitGitGadget#14
Conversation
The grand idea to use GitGitGadget for projects other than Git is to allow configuring it via a custom JSON that is stored as a repository variable. Let's do this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The grand idea to use GitGitGadget for projects other than Git is to allow configuring it via a custom JSON that is stored as a repository variable. Let's do this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
… Actions The GitHub Actions of GitGitGadget just learned the trick to accept the project configuration as an input parameter. The idea is to store this configuration in the repository variable called `CONFIG`. Here is the code change to make use of this repository variable. Obviously, this means that the workflows should no longer run in forks without said configuration. For details about configuring GitGitGadget to support projects other than Git, see TBD. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
With my current push to let GitGitGadget work for other projects than Git, it is no longer appropriate to refer to the `git` repository forks directly. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
We just started to pass the project-specific configuration stored in the `CONFIG` repository variable to the GitHub Actions of GitGitGadget. That configuration contains information about the correct repositories to target (which might not be `gitgitgadget/git` and friends). Let's use this information when obtaining (and using) the installation access tokens. This is especially necessary when creating and updating that Check Run in `handle-pr-push` and in `handle-pr-comment`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
These should be taken from the project config which is now expected to be present as the `CONFIG` repository variable. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
So far, GitGitGadget has supported one project, and one single project only: the Git project. But the Git project is far from the only one that prides itself by doing patch review on a mailing list. To allow GitGitGadget's convenience of PRs being sent to mailing lists to benefit other projects, too, here is a workflow that will have to be triggered to initialize the prerequisite Git notes in the `pr-repo`. For details about setting up GitGitGadget to support a project other than Git, see TBD. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
a252d88 to
3caaa47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To support projects other than Git, the idea is to:
upstream-repo) into a new org where PRs can be handled by GitGitGadget (pr-repo)public-inboxrepository (if the upstream project does not maintain one themselves, this will have to be maintained in addition to the GitGitGadget instance)gitgitgadget-workflowsinto the same, new orgCONFIGrepository variable (using the original project settings as template)gitgitgadget-github-appinto the same, new orggitgitgadget-github-appfork to that Azure FunctionI went through these motions, targeting the Cygwin project, and successfully
/submited the first patch that way.This PR is stacked on top of #13 and requires gitgitgadget/gitgitgadget#1995 to be merged first.