From df2e2964e18b9135a08b206362d8d1d2d112c66f Mon Sep 17 00:00:00 2001 From: ota-meshi Date: Sun, 22 Dec 2024 10:12:27 +0900 Subject: [PATCH] add codeflow setting --- .github/dependabot.yml | 8 ++++---- .github/workflows/format.yml | 23 ++++++++++------------- .stackblitz/codeflow.json | 7 +++++++ .stackblitzrc | 3 +++ 4 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 .stackblitz/codeflow.json create mode 100644 .stackblitzrc diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f33a02cd..9d8f2d04 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,7 +6,7 @@ version: 2 updates: - - package-ecosystem: "devcontainers" - directory: "/" - schedule: - interval: weekly + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 96b70a2d..594f563b 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -3,6 +3,10 @@ name: 👔 Format on: workflow_dispatch: null +permissions: + contents: write + pull-requests: write + jobs: format: runs-on: ubuntu-latest @@ -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 diff --git a/.stackblitz/codeflow.json b/.stackblitz/codeflow.json new file mode 100644 index 00000000..f78d5a67 --- /dev/null +++ b/.stackblitz/codeflow.json @@ -0,0 +1,7 @@ +{ + "bot": { + "issues": { + "enabled": false + } + } +} diff --git a/.stackblitzrc b/.stackblitzrc new file mode 100644 index 00000000..3e262c7d --- /dev/null +++ b/.stackblitzrc @@ -0,0 +1,3 @@ +{ + "startCommand": "npm run watch" +}