From 554439f379b56a09997ebcdfd9c345cc523c613a Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Thu, 13 Feb 2025 11:56:39 -0800 Subject: [PATCH] Add Workflow: create issue to track community <-> prod porting needs --- .github/workflows/create-issue.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/create-issue.yml diff --git a/.github/workflows/create-issue.yml b/.github/workflows/create-issue.yml new file mode 100644 index 00000000000..a525e5e8262 --- /dev/null +++ b/.github/workflows/create-issue.yml @@ -0,0 +1,29 @@ +name: Create issue to port to Product docs + +on: + pull_request: + types: + - closed + branches: + - main + paths-ignore: + - '**/README.md' + +permissions: + issues: write + pull-requests: read + +jobs: + create_issue: + if: github.event.pull_request.merged == true && contains( github.event.pull_request.labels.*.name, 'port/community-product') + runs-on: ubuntu-latest + steps: + - name: Create issue to track porting between Community and Product docs + env: + GH_TOKEN: ${{ github.token }} + run: | + gh issue create \ + --repo rancher/rancher-docs \ + --title 'Port Community docs PR #${{github.event.pull_request.number}}: ${{github.event.pull_request.title}}' \ + --body 'Reference: https://github.com/${{github.repository}}/pull/${{github.event.pull_request.number}}' \ + --label port/community-product \ No newline at end of file