Skip to content

Commit 1671da2

Browse files
Fix UUIDs and category names (mongodb#34)
* update commit hash * add manifest validator action; does not yet check root-level * testing jq instaltion; changing others to pull_request only * force run on jqtest * add further testing * got file checking working. updated manifest file to fail * reset manifest file; clean up actions * BAAS-30360: Add Twilio third party snippets (mongodb#32) * main => development (mongodb#31) * change production=>main branch * update commit hash * BAAS-30360: add twilio third party snippets * update commit hash * test * Commit performed using Copy Push Files action * Commit performed using Copy Push Files action * Commit performed using Copy Push Files action * test * update commit hash * update commit hash * test * update commit hash * test * update commit hash --------- Co-authored-by: MongoCaleb <[email protected]> Co-authored-by: ActionBot <[email protected]> Co-authored-by: MongoCaleb <[email protected]> * fix duplicate UUIDs and some category titles. * fix validate_files action * testing git file manipulation on PR * github.ref_name doesn't work with PRs * require rebase --------- Co-authored-by: jwongmongodb <[email protected]> Co-authored-by: MongoCaleb <[email protected]>
1 parent f432836 commit 1671da2

File tree

6 files changed

+13
-21
lines changed

6 files changed

+13
-21
lines changed

.github/workflows/Remove-Function-Name-Prefix.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- run: |
13-
git pull origin ${{ github.ref_name }} --rebase
13+
git pull origin ${{ github.base_ref }} --rebase
1414
for file in $(find ./snippets/functions/ -type f -name '*.js'); do
1515
if [[ "$file" == *"_"* ]];then
1616
justfile=$(basename -- "$file")
@@ -21,10 +21,7 @@ jobs:
2121
mv -n $file $justpath/$justfile
2222
fi
2323
done
24-
git log -1 --format='%H' > latestCommit.md
25-
git add .
2624
git config --global user.email "[email protected]"
2725
git config --global user.name "ActionBot"
2826
git commit -m 'test'
2927
git push -f
30-
git reset origin/${{ github.ref_name }} --soft

.github/workflows/Update-Commit-Hash.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ jobs:
99
permissions: write-all
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Update file with merge commit hash
1414
run: |
15-
git pull origin ${{ github.ref_name }} --rebase
15+
git pull origin ${{ github.base_ref }} --rebase
1616
git log -1 --format='%H' > latestCommit.md
1717
git config --global user.email "[email protected]"
1818
git config --global user.name "ActionBot"
1919
git add latestCommit.md
2020
git commit -m 'update commit hash'
21-
git push -f
22-
git reset origin/${{ github.ref_name }} --soft
21+
git push

.github/workflows/Validate-Manifests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Validate scehmas
13+
# if: steps.check-for-changed-schemas.outputs.any_changed == 'true'
1314
uses: dsanders11/[email protected]
1415
with:
1516
schema: ./snippets/manifest-schema.json
1617
files: ./snippets/functions/**/**.json
17-
- name: Test
18-
run: |
19-
content=`cat ./manifest.json`
20-
echo $content
21-
barf=${{fromJson($content)}}
22-
echo ${{ barf }}
18+
# returns valid==true

latestCommit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
86bf61d24dc9a0784485282a5063f559f91ad7ee
1+
d885c2d39ea8d4996e2fd4023c8d414161c4091f

snippets/functions/mongodb-crud/manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@
2828
"description": "Find multiple documents by performing MongoDB CRUD operations using an Atlas Function by using 'findMany' in the Function context."
2929
},
3030
{
31-
"id": "3a7e7c81-6772-460f-90a5-376d49d227e3",
31+
"id": "3a7e7c81-6772-460f-90a5-376d49d227e5",
3232
"title": "Insert a Single Document",
3333
"snippet": "/InsertOne.js",
3434
"description": "Insert a single document by performing MongoDB CRUD operations using an Atlas Function by using 'insertOne' in the Function context."
3535
},
3636
{
37-
"id": "3a7e7c81-6772-460f-90a5-376d49d227e4",
37+
"id": "3a7e7c81-6772-460f-90a5-376d49d227e6",
3838
"title": "Insert Multiple Documents",
3939
"snippet": "/InsertMany.js",
4040
"description": "Insert multiple documents by performing MongoDB CRUD operations using an Atlas Function by using 'insertMany' in the Function context."
4141
},
4242
{
43-
"id": "3a7e7c81-6772-460f-90a5-376d49d227e5",
43+
"id": "3a7e7c81-6772-460f-90a5-376d49d227e7",
4444
"title": "Replace a Single document",
4545
"snippet": "/Replace.js",
4646
"description": "Replace a single document by performing MongoDB CRUD operations using an Atlas Function by using 'replace' in the Function context."
4747
},
4848
{
49-
"id": "3a7e7c81-6772-460f-90a5-376d49d227e3",
49+
"id": "3a7e7c81-6772-460f-90a5-376d49d227e8",
5050
"title": "Update a Single Document",
5151
"snippet": "/UpdateOne.js",
5252
"description": "Update a single document by performing MongoDB CRUD operations using an Atlas Function by using 'updateOne' in the Function context."
5353
},
5454
{
55-
"id": "3a7e7c81-6772-460f-90a5-376d49d227e4",
55+
"id": "3a7e7c81-6772-460f-90a5-376d49d227e9",
5656
"title": "Update Multiple Documents",
5757
"snippet": "/UpdateMany.js",
5858
"description": "Update multiple documents by performing MongoDB CRUD operations using an Atlas Function by using 'updateMany' in the Function context."

snippets/functions/third-party/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"category": "third-party",
2+
"category": "Third Party Integrations",
33
"categoryId": "51a6be3b-a3f2-427c-937f-f810a91dd78c",
44
"viewType": "functionSnippet",
55
"snippets": [

0 commit comments

Comments
 (0)