Python: Added Brave search capability in SK(python) based on PR #9632 #2825
Workflow file for this run
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') | |
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-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-file issue_body.md) |