Skip to content

Update Element “access__not_available_to_me” #9

Update Element “access__not_available_to_me”

Update Element “access__not_available_to_me” #9

# File: .github/workflows/pull-request.yml
name: Pull Request Workflow
on:
pull_request:
branches: [main]
jobs:
create-discussion:
runs-on: ubuntu-latest
steps:
- name: Set variables
id: vars
run: |
echo "::set-output name=pr_title::${{ github.event.pull_request.title }}"
echo "::set-output name=pr_body::${{ github.event.pull_request.body }} (Link: ${{ github.event.pull_request.html_url }})"
- name: Run curl command
run: |
curl -H "Authorization: bearer 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" -X POST -d " { \"query\": \"mutation { createDiscussion( input: {repositoryId: \\\"R_kgDOHibgUQ\\\", categoryId: \\\"DIC_kwDOHibgUc4Cbmpw\\\", body: \\\"${{ steps.vars.outputs.pr_body }}\\\", title: \\\"${{ steps.vars.outputs.pr_title }}\\\"} ) { discussion { id } } }\" }" https://api.github.com/graphql