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 to create issue from needs port #10369

Merged
merged 1 commit into from
Feb 3, 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
41 changes: 41 additions & 0 deletions .github/workflows/label-needs-port.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Issue when Needs Port label is added
on:
issues:
types: [labeled]
pull_request_target:
types: [labeled]

jobs:
create_issue:
if: startsWith(github.event.issue.labels.*.name, 'needs_port_to_') || startsWith(github.event.pull_request.labels.*.name, 'needs_port_to_')
name: "Create Issue"
continue-on-error: true
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: read
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}

steps:
- name: Create dotnet issue
if: startsWith(github.event.issue.labels.*.name, 'needs_port_to_dotnet') || startsWith(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet')
run: |
new_issue_url=$(gh issue create \
--title "Port python feature: ${{ github.event.issue.title || github.event.pull_request.title }}" \
--label ".NET" \
--body "# Original issue
${{ github.event.issue.html_url || github.event.pull_request.html_url }}
## Description
${{ github.event.issue.body || github.event.pull_request.body }}")
- name: Create python issue
if: startsWith(github.event.issue.labels.*.name, 'needs_port_to_python') || startsWith(github.event.pull_request.labels.*.name, 'needs_port_to_python')
run: |
new_issue_url=$(gh issue create \
--title "Port dotnet feature: ${{ github.event.issue.title || github.event.pull_request.title }}" \
--label "Python" \
--body "# Original issue
${{ github.event.issue.html_url || github.event.pull_request.html_url }}
## Description
${{ github.event.issue.body || github.event.pull_request.body }}")
Loading