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

use env variables for new issue #11327

Merged
merged 1 commit into from
Apr 2, 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
34 changes: 26 additions & 8 deletions .github/workflows/label-needs-port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,39 @@ jobs:
steps:
- name: Create dotnet issue
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.issue.labels.*.name, 'needs_port_to_dotnet')
env:
ORIGINAL_URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
ORIGINAL_BODY: ${{ github.event.issue.body || github.event.pull_request.body }}
ORIGINAL_TITLE: ${{ github.event.issue.title || github.event.pull_request.title }}
ORIGINAL_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
run: |
{
echo "# Original issue"
echo "$ORIGINAL_URL"
echo "## Description"
echo "$ORIGINAL_BODY"
echo "\n Relates to #$ORIGINAL_NUMBER"
} > issue_body.md
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 }}")
--body-file issue_body.md)
- name: Create python issue
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_python') || contains(github.event.issue.labels.*.name, 'needs_port_to_python')
env:
ORIGINAL_URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
ORIGINAL_BODY: ${{ github.event.issue.body || github.event.pull_request.body }}
ORIGINAL_TITLE: ${{ github.event.issue.title || github.event.pull_request.title }}
ORIGINAL_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
run: |
{
echo "# Original issue"
echo "$ORIGINAL_URL"
echo "## Description"
echo "$ORIGINAL_BODY"
echo "\n Relates to #$ORIGINAL_NUMBER"
} > issue_body.md
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 }}")
--body-file issue_body.md)
Loading