Skip to content

Commit

Permalink
Merge pull request #1643 from btat/workflow-create-issue-ports
Browse files Browse the repository at this point in the history
Add Workflow: create issue to track community <-> prod porting needs
  • Loading branch information
btat authored Feb 13, 2025
2 parents 9a009bf + 554439f commit 35b66d5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/create-issue.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 35b66d5

Please sign in to comment.