Skip to content

Update Category “retention” #14

Update Category “retention”

Update Category “retention” #14

name: Proposed Taxonomy Edits
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
create_discussion:
runs-on: ubuntu-latest
permissions:
issues: write # this is the minimum permission required to create a discussion
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create discussion
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/discussions \
-d '{"title": "'${{ github.event.pull_request.title }}'", "category_name": "Proposed Taxonomy Edits", "body": "'${{ github.event.pull_request.body }}\n\nLink to pull request: ${{ github.event.pull_request.html_url }}'"'