-
Notifications
You must be signed in to change notification settings - Fork 47
Add CI for submitting plugins to Marketplace on merge #548
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
base: main
Are you sure you want to change the base?
Conversation
| github.event.pull_request.merged == true && | ||
| contains(github.event.pull_request.labels.*.name, 'Submit on merge') | ||
| # FIXME: Should be production | ||
| environment: development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self to fix before merging.
| ERROR_WEBHOOK_URL: ${{ secrets.ERROR_WEBHOOK_URL }} | ||
| RETOOL_URL: ${{ secrets.RETOOL_URL }} | ||
| # FIXME: Should be production | ||
| FRAMER_ENV: development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should fix
| const SubmissionResponseSchema = v.object({ | ||
| version: v.number(), | ||
| // FIXME: THIS SHOULD BE DEPLOYED: | ||
| // SEE: https://github.com/framer/creators/pull/2487/files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self: remove the fallback
2975293 to
cfb070c
Compare
|
@cursor review |
|
/gemini review |
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
| github.event.pull_request.merged == true && | ||
| contains(github.event.pull_request.labels.*.name, 'Submit on merge') | ||
| # FIXME: Should be production | ||
| environment: development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Development environment hardcoded instead of production
High Severity
The workflow has environment: development and FRAMER_ENV: development hardcoded with FIXME comments. The PR notes explicitly state "note to self to fix before merging." If merged as-is, all plugins submitted via the "Submit on merge" flow would go to the development environment instead of production.
Additional Locations (1)
| package.json | ||
| yarn.lock | ||
| .yarnrc.yml | ||
| .yarn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sparse checkout missing required .tool-versions file
High Severity
The sparse checkout configuration does not include .tool-versions, but the Setup Node.js step on line 51 requires this file via node-version-file: .tool-versions. The workflow will fail because the file won't exist after the sparse checkout completes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cfb070c03c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
efb8561 to
1abd9e6
Compare
- Add GitHub Actions workflows for plugin submission - Add scripts for validating PR body and submitting plugins - Add test:scripts command and related dev dependencies - Update PR template
| node-version-file: .tool-versions | ||
|
|
||
| - name: Validate PR body | ||
| run: yarn dlx tsx scripts/validate-pr-body.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dlx tsx is a lil unfortunate but I didn't want to install all workspace dependencies for this small script.
Would it be better to make scripts/ a separate package (ci-scripts) and have a only focused dependencies?


Description
This PR adds new Github action workflows:
Submit on Merge
Submit on mergelabel is added to a PRSubmit Plugin
pluginPathandchangeloginputCheck PR body
Pre merge Checklist
developmentandproductionenvironments in framer/plugins CI and configure secrets and env variablesdevelopmenttoproductionin CI jobs after QA#team-pluginsinstead of#testTesting
Please test in the fork to test the PR workflow: niekert/plugins.
LMK when you start QA I will give you full repo permissions.
plugins/csv-importfor the plugin path#testslack channel when completed. Test the links in the slack message.niekert/pluginsfork locally and create a new branchcsv-importplugin succesfullymainafter the merge