.Net: Python: Update Agent Framework Learn Site Docs with New Agent Types #490
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Issue when Needs Port label is added | |
on: | |
issues: | |
types: [labeled] | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
create_issue: | |
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.pull_request.labels.*.name, 'needs_port_to_python') || contains(github.event.issue.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.issue.labels.*.name, 'needs_port_to_python') | |
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: contains(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.issue.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: contains(github.event.pull_request.labels.*.name, 'needs_port_to_python') || contains(github.event.issue.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 }}") |