This repository has been archived by the owner on Apr 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CI docs * Add versioning section * Update apps/web/pages/docs/ci.mdx Co-authored-by: floe-app[bot] <140294159+floe-app[bot]@users.noreply.github.com> * Add changeset * Bump review-action version * Try out new action version * Omit version patch to see if it works * Try with star * Hardcode version * Add versionless blurb * Add back GITHUB_TOKEN * Update apps/web/pages/docs/ci.mdx Co-authored-by: floe-app[bot] <140294159+floe-app[bot]@users.noreply.github.com> * Remove the third person rule --------- Co-authored-by: floe-app[bot] <140294159+floe-app[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4e325dd
commit 3c950d3
Showing
8 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@floe/review-action": minor | ||
--- | ||
|
||
Modify diff lookup strategy to support forked braches in PRs. |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Don't use "we" or "I" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Callout } from 'nextra/components' | ||
|
||
# CI | ||
|
||
Using the Floe Reviews GitHub Action is the easiest way to integrate Floe | ||
Reviews into your CI pipeline. The action will automatically review your pull | ||
request diffs and leave comments for issues and suggested fixes. | ||
|
||
## Usage | ||
|
||
Copy the following workflow into the repository's `.github/workflows` directory. | ||
|
||
<Callout emoji="💡">Be sure to set `FLOE_API_WORKSPACE` and | ||
`FLOE_API_SECRET` on the "Actions secrets and variables" page in your GitHub | ||
settings. `GITHUB_TOKEN` is available by default.</Callout> | ||
|
||
```yaml copy filename=".github/workflows/floe-review.yml" | ||
name: "Floe Review" | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
Review: | ||
env: | ||
FLOE_API_WORKSPACE: ${{ secrets.FLOE_API_WORKSPACE }} | ||
FLOE_API_SECRET: ${{ secrets.FLOE_API_SECRET }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# Checkout the Floe repository | ||
- name: Checkout Floe | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Floe-dev/floe | ||
ref: "@floe/[email protected]" | ||
path: ./.github/actions/floe-actions | ||
|
||
# Run the review action | ||
- name: Review | ||
uses: ./.github/actions/floe-actions/actions/review-action | ||
``` | ||
## Versioning | ||
The Floe Review GitHub Action is versioned using the `ref` attribute and passing | ||
a git tag. You can find the latest `@floe/review-action` | ||
[here](https://github.com/Floe-dev/floe/tags). | ||
|
||
You can keep Floe up to date with the latest versioning by removing the `ref`, | ||
but this is not recommended while Floe is in beta. |
3c950d3
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.
Successfully deployed to the following URLs:
floe-api – ./apps/api
www.api.floe.dev
floe-api-git-main-floe-dev.vercel.app
floe-api.vercel.app
floe-api-floe-dev.vercel.app
api.floe.dev
3c950d3
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.
Successfully deployed to the following URLs:
floe-app – ./apps/app
floe-app-git-main-floe-dev.vercel.app
floe-app-floe-dev.vercel.app
floe-app.vercel.app
app.floe.dev
www.app.floe.dev