-
Notifications
You must be signed in to change notification settings - Fork 19
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 compatabilty with classic probot patterns #24
base: master
Are you sure you want to change the base?
Conversation
Item 1:The
|
Item 2GitHub App vs GitHub ActionGitHub Apps provided an installation ID to uniquely identify installations. This was used by plugins and apps (such as probot/metadata for example) to uniquely identify the instance. Should this be moved to a more generic model that can return either a unique APP ID or something like |
Item 3:Octokit accessI admittedly haven't done as much research here, but know it posed a problem on the |
Item 4What does a hybrid app look like?This is what i'm looking at today. Does this make sense, can we optimize elsewhere?
|
yay, glad to hear that it works for you!
We archived
I'm reluctant to transparently amend the event payload, it's not something we do on in other circumstances. An alternative we might consider The probot application function accepts a 2nd argument which is an object that can accept context-specific options. That's how the Probot Server passes the async function app(app, { repository }) => {}) I'm not saying it's better overall, just an alternative. I like that it's more explicit and not doing magic things in the background that would be hard to debug if something didn't work as expected, e.g. when creating tests.
I'm not sure about this one. We cannot just make up an installation ID, it is used for authentication. If anything we should set it to something like
In future we should also get In Probot 11, you should be able to achive the same with const octokit = app.auth()
Why do you have the same entrypoint for GitHub Action and other environments? I'd probably use
|
Recently, i've been migrating some classic probot apps to run on top of the GitHub Actions platform, and found this adapter to be a huge help in simplifying that process.
However, I've found that there are some core assumptions that are built into probot usage patterns and functions that break with:
This pull request attempts to make some additional changes in
adapter-github-actions
or discusses potential changes in other packages to simplify this migration process.