Skip to content

Commit

Permalink
add codeflow setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Dec 22, 2024
1 parent 85644c5 commit df2e296
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
23 changes: 10 additions & 13 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: 👔 Format
on:
workflow_dispatch: null

permissions:
contents: write
pull-requests: write

jobs:
format:
runs-on: ubuntu-latest
Expand All @@ -16,16 +20,9 @@ jobs:
run: npm i -f
- name: Format
run: npm run format
- name: Commit
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "no formatting changed"
exit 0
fi
git commit -m "chore: format"
git push
echo "pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
- uses: peter-evans/create-pull-request@v7
with:
commit-message: Format
branch: format
branch-suffix: timestamp
title: Format
7 changes: 7 additions & 0 deletions .stackblitz/codeflow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"bot": {
"issues": {
"enabled": false
}
}
}
3 changes: 3 additions & 0 deletions .stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"startCommand": "npm run watch"
}

0 comments on commit df2e296

Please sign in to comment.