-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,241 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Auto Comment on Issue | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Add Comment to Issue | ||
run: | | ||
COMMENT=$(cat <<EOF | ||
{ | ||
"body": "Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊\n\nYou can also check our [CONTRIBUTING.md](https://github.com/ashutosh-rath02/git-re/blob/main/CONTRIBUTING.md) for guidelines on contributing to this project." | ||
} | ||
EOF | ||
) | ||
RESPONSE=$(curl -s -o response.json -w "%{http_code}" \ | ||
-X POST \ | ||
-H "Authorization: token ${{ secrets.MY_SECRET_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \ | ||
-d "$COMMENT") | ||
cat response.json | ||
if [ "$RESPONSE" -ne 201 ]; then | ||
echo "Failed to add comment" | ||
exit 1 | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MY_SECRET_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
import {v} from 'convex/values' | ||
import { mutation, query } from './_generated/server' | ||
import { v } from "convex/values"; | ||
import { mutation, query } from "./_generated/server"; | ||
|
||
export const getUser=query({ | ||
args:{ | ||
email:v.string() | ||
}, | ||
export const getUser = query({ | ||
args: { | ||
email: v.string(), | ||
}, | ||
|
||
handler:async(ctx, args)=> { | ||
const result=await ctx.db.query('user') | ||
.filter((q)=>q.eq(q.field('email'),args.email)) | ||
.collect() | ||
handler: async (ctx, args) => { | ||
const result = await ctx.db | ||
.query("user") | ||
.filter((q) => q.eq(q.field("email"), args.email)) | ||
.collect(); | ||
|
||
return result; | ||
}, | ||
}) | ||
}, | ||
}); | ||
|
||
export const createUser=mutation({ | ||
args:{ | ||
name:v.string(), | ||
email:v.string(), | ||
image:v.string() | ||
}, | ||
handler:async(ctx, args)=> { | ||
return await ctx.db.insert("user",args); | ||
}, | ||
}) | ||
export const createUser = mutation({ | ||
args: { | ||
name: v.string(), | ||
email: v.string(), | ||
image: v.string(), | ||
}, | ||
handler: async (ctx, args) => { | ||
return await ctx.db.insert("user", args); | ||
}, | ||
}); | ||
|
||
export const updateUser = mutation({ | ||
args: { | ||
_id: v.id("user"), | ||
name: v.string(), | ||
email: v.string(), | ||
image: v.string(), | ||
}, | ||
handler: async (ctx, args) => { | ||
const { _id } = args; | ||
return await ctx.db.patch(_id, args); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {notFound} from "next/navigation" | ||
|
||
export default function NotFoundCatchAll() { | ||
notFound() | ||
} |
Oops, something went wrong.