Skip to content

Commit

Permalink
Merge pull request #13 from glideapps/add-devcontainer
Browse files Browse the repository at this point in the history
DX improvements
  • Loading branch information
chkn authored Aug 23, 2024
2 parents 98b92bc + bedd31a commit 5682327
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
45 changes: 45 additions & 0 deletions .github/workflows/add-comment.yml
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Actions
name: Check for blocking labels

on:
pull_request:
Expand Down

0 comments on commit 5682327

Please sign in to comment.