diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..e76d29c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,8 @@ +// For format details, see https://aka.ms/devcontainer.json. +{ + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [3000], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "script/setup && script/start" +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f33a02c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly diff --git a/.github/workflows/add-comment.yml b/.github/workflows/add-comment.yml new file mode 100644 index 0000000..6f66560 --- /dev/null +++ b/.github/workflows/add-comment.yml @@ -0,0 +1,45 @@ +name: Add helpful comment to PRs + +env: + changelog_path: "api-reference/v2/resources/changelog.mdx" + +on: + pull_request: + types: + - opened + - synchronize + branches: + - main + paths: + - "openapi/*.json" + - "api-reference/**.mdx" + - "mint.json" + +jobs: + add-comment: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - id: changed-files + uses: tj-actions/changed-files@v45 + with: + files: | + ${{ env.changelog_path }} + + - uses: mshick/add-pr-comment@v2 + if: steps.changed-files.outputs.any_changed != 'true' + with: + message: | + It looks like you've made changes to the API docs! :raised_hands: + :black_square_button: Update the changelog in `${{ env.changelog_path }}` - [:pencil2: Edit file](https://github.com/${{ github.repository }}/edit/${{ github.head_ref }}/${{ env.changelog_path }}) | [:bulb: Draft with AI](https://update-api-docs-changelog.glide.page/?pr=${{ github.event.number }}) + :point_right: You may want to [preview the changes in a Codespace](https://codespaces.new/${{ github.repository }}/pull/${{ github.event.number }}?quickstart=1) + + - uses: mshick/add-pr-comment@v2 + if: steps.changed-files.outputs.any_changed == 'true' + with: + message: | + It looks like you've made changes to the API docs! :raised_hands: + :ballot_box_with_check: The changelog has been updated :tada: + :point_right: You may want to [preview the changes in a Codespace](https://codespaces.new/${{ github.repository }}/pull/${{ github.event.number }}?quickstart=1) diff --git a/.github/workflows/actions.yml b/.github/workflows/check-blocked.yml similarity index 94% rename from .github/workflows/actions.yml rename to .github/workflows/check-blocked.yml index a8fc894..3db91a7 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/check-blocked.yml @@ -1,4 +1,4 @@ -name: Actions +name: Check for blocking labels on: pull_request: