Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Workflow: create issue to track community <-> prod porting needs #1643

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading