-
Notifications
You must be signed in to change notification settings - Fork 0
chore: migrate to dappco.re import paths #2
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
Changes from all commits
0607c5b
d852525
63714ec
913bbb5
666e3a6
c525437
b3f6229
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, dev] | ||
| pull_request: | ||
| branches: [main] | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| jobs: | ||
| test: | ||
| if: github.event_name != 'pull_request_review' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dAppCore/build/actions/build/core@dev | ||
| with: | ||
| go-version: "1.26" | ||
| run-vet: "true" | ||
|
|
||
| auto-fix: | ||
| if: > | ||
| github.event_name == 'pull_request_review' && | ||
| github.event.review.user.login == 'coderabbitai' && | ||
| github.event.review.state == 'changes_requested' | ||
|
Comment on lines
+23
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Scope auto-fix and auto-merge to PRs targeting Current conditions only check event/reviewer/state. Add a base-branch guard to avoid write actions on PRs targeting other branches. Suggested patch auto-fix:
if: >
github.event_name == 'pull_request_review' &&
+ github.event.pull_request.base.ref == 'main' &&
github.event.review.user.login == 'coderabbitai' &&
github.event.review.state == 'changes_requested'
@@
auto-merge:
if: >
github.event_name == 'pull_request_review' &&
+ github.event.pull_request.base.ref == 'main' &&
github.event.review.user.login == 'coderabbitai' &&
github.event.review.state == 'approved'Also applies to: 41-44 🤖 Prompt for AI Agents |
||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.ref }} | ||
| fetch-depth: 0 | ||
| - uses: dAppCore/build/actions/fix@dev | ||
| with: | ||
| go-version: "1.26" | ||
|
|
||
| auto-merge: | ||
| if: > | ||
| github.event_name == 'pull_request_review' && | ||
| github.event.review.user.login == 'coderabbitai' && | ||
| github.event.review.state == 'approved' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Merge PR | ||
| run: gh pr merge ${{ github.event.pull_request.number }} --merge --delete-branch | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| dist/ | ||
| .core/ | ||
| .idea/ | ||
| .vscode/ | ||
| *.log | ||
| .core/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,27 @@ | ||
| module forge.lthn.ai/core/go-html | ||
| module dappco.re/go/core/html | ||
|
|
||
| go 1.26.0 | ||
|
|
||
| require ( | ||
| forge.lthn.ai/core/go-i18n v0.1.6 | ||
| forge.lthn.ai/core/go-io v0.1.2 | ||
| forge.lthn.ai/core/go-log v0.0.4 | ||
| dappco.re/go/core/i18n v0.1.8 | ||
| dappco.re/go/core/io v0.2.0 | ||
| dappco.re/go/core/log v0.1.0 | ||
| github.com/stretchr/testify v1.11.1 | ||
| ) | ||
|
|
||
| require ( | ||
| forge.lthn.ai/core/go v0.3.1 // indirect | ||
| forge.lthn.ai/core/go-inference v0.1.5 // indirect | ||
| dappco.re/go/core v0.5.0 // indirect | ||
| forge.lthn.ai/core/go-inference v0.1.4 // indirect | ||
| forge.lthn.ai/core/go-log v0.0.4 // indirect | ||
| github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
| github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
| golang.org/x/text v0.35.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) | ||
|
|
||
| replace ( | ||
| dappco.re/go/core => ../../../../core/go | ||
| dappco.re/go/core/i18n => ../../../../core/go-i18n | ||
| dappco.re/go/core/io => ../../../../core/go-io | ||
| dappco.re/go/core/log => ../../../../core/go-log | ||
| ) | ||
|
Comment on lines
+22
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace directives break CI builds. The pipeline failure indicates that the local paths in these replace directives (e.g., Consider one of the following approaches:
🤖 Prompt for AI Agents |
||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: dAppCore/go-html
Length of output: 398
🏁 Script executed:
Repository: dAppCore/go-html
Length of output: 1829
Pin action refs to immutable commit SHAs.
Using
@devfor reusable actions makes workflow behaviour mutable and increases supply-chain risk. This is particularly critical for line 36 in theauto-fixjob, which has explicit write permissions and can modify repository state. Pin both references to full commit SHAs.Suggested patch
Also applies to: 36-36
🤖 Prompt for AI Agents