Skip to content

Commit df2e296

Browse files
committed
add codeflow setting
1 parent 85644c5 commit df2e296

File tree

4 files changed

+24
-17
lines changed

4 files changed

+24
-17
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
version: 2
88
updates:
9-
- package-ecosystem: "devcontainers"
10-
directory: "/"
11-
schedule:
12-
interval: weekly
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/format.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: 👔 Format
33
on:
44
workflow_dispatch: null
55

6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
610
jobs:
711
format:
812
runs-on: ubuntu-latest
@@ -16,16 +20,9 @@ jobs:
1620
run: npm i -f
1721
- name: Format
1822
run: npm run format
19-
- name: Commit
20-
run: |
21-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
22-
git config --local user.name "github-actions[bot]"
23-
24-
git add .
25-
if [ -z "$(git status --porcelain)" ]; then
26-
echo "no formatting changed"
27-
exit 0
28-
fi
29-
git commit -m "chore: format"
30-
git push
31-
echo "pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
23+
- uses: peter-evans/create-pull-request@v7
24+
with:
25+
commit-message: Format
26+
branch: format
27+
branch-suffix: timestamp
28+
title: Format

.stackblitz/codeflow.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"bot": {
3+
"issues": {
4+
"enabled": false
5+
}
6+
}
7+
}

.stackblitzrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"startCommand": "npm run watch"
3+
}

0 commit comments

Comments
 (0)