-
Notifications
You must be signed in to change notification settings - Fork 31
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
Improve UX for Github project sync #1046
Comments
@taylordowns2000 Above on point 3. Github does not enable us to know if an app ID is created or not, the following is the error body we get before permissions and also when the installation_id is wrong. I can use the copy above for the message however it will replace the other one for errors.
On limiting them to just one, we can't do that as that is entirely done in Github, if they install to more than one repo the repos and their branches will be available on the pickList On knowing the branches are the same, in the context of checking through the REST API it appears we can't check that On Creating workflows via the REST API from what I can see is a Read API On verifying if the workflows are setup well I am unsure of how to get that implemented. I'll go through the API some more. Proposals for the questions:
on -> repository_dispatch
on -> push_to_branch
|
All sounds good. For creating the workflows, I think this needs to be done by opening a PR (via the github app) once the user installs the github app: Note how you set up Renovate for github repos… once you’ve installed, you’ll see this PR (link below) show up on your repo. The PR creates a workflow and asks to merge it into main. That workflow uses the renovate github action.
|
@taylordowns2000 do we have further action for this? |
when you're happy with the documentation for the current flow, yes, I think we should have lightning propose these workflows in a PR when a user installs them: https://github.com/OpenFn/demo-openhie/tree/main/.github/workflows but please finish the docs before moving onto this |
The files: |
At the time of writing, I think this is the current UX flow (is this correct @zacck ?) for the new Github version control system:
*Can we limit it to just one? What happens if they install in two or ten?
**How do we know if it's the same as the branch you chose in step 5?
Before we ask someone to go through this process we should clean it up significantly.
In v1, OpenFn actually added a webhook to the repo so that no additional github config was required. This should be possible in v2 as well, given that a GitHub app can create and manage workflows in the repo that it was installed in.
Note that after these workflows are created, we need Lightning to verify that they've been set up properly.
In v1, once we get the success message after creating the webhook we display that webhook ID to the user:
Questions:
commit to branch X
OR onrepostiory_dispatch_event
should the workflow: (a) check for changes on lightning, (b) merge them in alongside whatever local changes were just made in github, if any, then (c) deploy to lightning?The text was updated successfully, but these errors were encountered: