Skip to content

Commit b875cb3

Browse files
authored
Merge branch 'main' into api-update-glide-pr-29066
2 parents 37b915b + bb29424 commit b875cb3

File tree

6 files changed

+75
-4
lines changed

6 files changed

+75
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// For format details, see https://aka.ms/devcontainer.json.
2+
{
3+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4+
"forwardPorts": [3000],
5+
6+
// Use 'postCreateCommand' to run commands after the container is created.
7+
"postCreateCommand": "script/setup && script/start"
8+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/add-comment.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Add helpful comment to PRs
2+
3+
env:
4+
changelog_path: "api-reference/v2/resources/changelog.mdx"
5+
6+
on:
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
branches:
12+
- main
13+
paths:
14+
- "openapi/*.json"
15+
- "api-reference/**.mdx"
16+
- "mint.json"
17+
18+
jobs:
19+
add-comment:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
pull-requests: write
23+
24+
steps:
25+
- id: changed-files
26+
uses: tj-actions/changed-files@v45
27+
with:
28+
files: |
29+
${{ env.changelog_path }}
30+
31+
- uses: mshick/add-pr-comment@v2
32+
if: steps.changed-files.outputs.any_changed != 'true'
33+
with:
34+
message: |
35+
It looks like you've made changes to the API docs! :raised_hands:
36+
: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 }})
37+
:point_right: You may want to [preview the changes in a Codespace](https://codespaces.new/${{ github.repository }}/pull/${{ github.event.number }}?quickstart=1)
38+
39+
- uses: mshick/add-pr-comment@v2
40+
if: steps.changed-files.outputs.any_changed == 'true'
41+
with:
42+
message: |
43+
It looks like you've made changes to the API docs! :raised_hands:
44+
:ballot_box_with_check: The changelog has been updated :tada:
45+
:point_right: You may want to [preview the changes in a Codespace](https://codespaces.new/${{ github.repository }}/pull/${{ github.event.number }}?quickstart=1)

.github/workflows/actions.yml renamed to .github/workflows/check-blocked.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Actions
1+
name: Check for blocking labels
22

33
on:
44
pull_request:

api-reference/v2/resources/changelog.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
---
12
title: Glide API Changelog
23
sidebarTitle: Changelog
34
---
45

5-
### August 22, 2024
6+
### August 28, 2024
67

78
- Users should now use the PUT method instead of POST for `/stashes/{stashID}/{serial}` to set the content of a chunk in a stash.
89
- Clarified that if a chunk is uploaded with an existing serial, its data will be overwritten.
910
- Documented the new format requirements for `stashID` and `serial`.
1011

12+
### August 23, 2024
13+
14+
- The `POST /tables` endpoint now returns HTTP status 201 on success instead of 200.
15+
- The `POST /tables/{tableID}/rows` endpoint now returns HTTP status 201 on success instead of 200.
16+
1117
### August 2, 2024
1218

1319
- Add [delete stash](/api-reference/v2/stashing/delete-stash) endpoint documentation

openapi/swagger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
},
103103
"post": {
104104
"responses": {
105-
"200": {
105+
"201": {
106106
"description": "",
107107
"content": {
108108
"application/json": {
@@ -724,7 +724,7 @@
724724
"/tables/{tableID}/rows": {
725725
"post": {
726726
"responses": {
727-
"200": {
727+
"201": {
728728
"description": "",
729729
"content": {
730730
"application/json": {

0 commit comments

Comments
 (0)