forked from Shinonome/dots-hyprland
Get notification node id first
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'dist-arch/**'
|
- 'dist-arch/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment_on_discussion:
|
comment_on_discussion:
|
||||||
@@ -14,18 +15,21 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
||||||
run: |
|
run: |
|
||||||
gh api graphql -f query='
|
curl -X POST \
|
||||||
mutation {
|
-H "Authorization: Bearer $GH_TOKEN" \
|
||||||
addDiscussionComment(
|
-H "Content-Type: application/json" \
|
||||||
input: {
|
-d '{"query": "query { repository(owner: "end-4", name: "dots-hyprland") { discussion(number: 2140) { id } } }"}'
|
||||||
discussionId: "2140",
|
# gh api graphql -f query='
|
||||||
body: "dist-arch/ directory has changed in commit ${{ github.sha }} by ${{ github.actor }}."
|
# mutation {
|
||||||
}
|
# addDiscussionComment(input:{
|
||||||
) {
|
# discussionId: "2140",
|
||||||
comment {
|
# body: "dist-arch/ directory has changed in commit ${{ github.sha }} by ${{ github.actor }}.",
|
||||||
id
|
# }) {
|
||||||
body
|
# clientMutationId
|
||||||
}
|
# comment {
|
||||||
}
|
# id
|
||||||
}
|
# body
|
||||||
'
|
# }
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# '
|
||||||
|
|||||||
Reference in New Issue
Block a user