Skip to content

Commit 76294a5

Browse files
Merge remote-tracking branch 'origin/main' into bedrock-tools-from-kernel-functions
2 parents 0dcf9d8 + 485c267 commit 76294a5

File tree

339 files changed

+16013
-4818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+16013
-4818
lines changed

.github/_typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ist = "ist" # German language
4343
dall = "dall" # OpenAI model name
4444
pn = "pn" # Kiota parameter
4545
nin = "nin" # MongoDB "not in" operator
46+
asend = "asend" # Async generator method
4647

4748
[default.extend-identifiers]
4849
ags = "ags" # Azure Graph Service

.github/workflows/generate-pr-description.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id: comment-branch
1818

1919
- name: Set latest commit status as pending
20-
uses: myrotvorets/set-commit-status-action@master
20+
uses: myrotvorets/set-commit-status-action@v2.0.1
2121
with:
2222
sha: ${{ steps.comment-branch.outputs.head_sha }}
2323
token: ${{ secrets.GITHUB_TOKEN }}
@@ -36,7 +36,7 @@ jobs:
3636
AZURE_OPENAI_API_KEY: ${{ secrets.AZUREOPENAI__APIKEY }}
3737

3838
- name: Set latest commit status as ${{ job.status }}
39-
uses: myrotvorets/set-commit-status-action@master
39+
uses: myrotvorets/set-commit-status-action@v2.0.1
4040
if: always()
4141
with:
4242
sha: ${{ steps.comment-branch.outputs.head_sha }}
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: Label Discussions
2+
3+
on:
4+
discussion:
5+
types:
6+
- created
7+
8+
jobs:
9+
label_discussions:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
discussions: write
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
16+
steps:
17+
- name: Always add "triage" label
18+
if: >
19+
github.event.discussion.node_id != '' &&
20+
(github.event.discussion.category.name == 'General' ||
21+
github.event.discussion.category.name == 'Ideas' ||
22+
github.event.discussion.category.name == 'Q&A')
23+
uses: octokit/[email protected]
24+
with:
25+
query: |
26+
mutation($labelableId: ID!) {
27+
addLabelsToLabelable(
28+
input: {
29+
labelableId: $labelableId
30+
labelIds: ["LA_kwDOJDJ_Yc8AAAABU2klmQ"]
31+
}
32+
) {
33+
clientMutationId
34+
}
35+
}
36+
variables: |
37+
{
38+
"labelableId": "${{ github.event.discussion.node_id }}"
39+
}
40+
41+
- name: Conditionally add "python" label
42+
if: >
43+
github.event.discussion.node_id != '' &&
44+
(github.event.discussion.category.name == 'General' ||
45+
github.event.discussion.category.name == 'Ideas' ||
46+
github.event.discussion.category.name == 'Q&A') &&
47+
(contains(github.event.discussion.body, 'python') ||
48+
contains(github.event.discussion.body, 'Python') ||
49+
contains(github.event.discussion.title, 'python') ||
50+
contains(github.event.discussion.title, 'Python'))
51+
uses: octokit/[email protected]
52+
with:
53+
query: |
54+
mutation($labelableId: ID!) {
55+
addLabelsToLabelable(
56+
input: {
57+
labelableId: $labelableId
58+
labelIds: ["LA_kwDOJDJ_Yc8AAAABO0f2Lg"]
59+
}
60+
) {
61+
clientMutationId
62+
}
63+
}
64+
variables: |
65+
{
66+
"labelableId": "${{ github.event.discussion.node_id }}"
67+
}
68+
69+
- name: Conditionally add ".NET" label
70+
if: >
71+
github.event.discussion.node_id != '' &&
72+
(github.event.discussion.category.name == 'General' ||
73+
github.event.discussion.category.name == 'Ideas' ||
74+
github.event.discussion.category.name == 'Q&A') &&
75+
(contains(github.event.discussion.body, '.net') ||
76+
contains(github.event.discussion.body, '.NET') ||
77+
contains(github.event.discussion.title, '.net') ||
78+
contains(github.event.discussion.title, '.NET') ||
79+
contains(github.event.discussion.body, 'dotnet') ||
80+
contains(github.event.discussion.body, 'DotNet') ||
81+
contains(github.event.discussion.title, 'dotnet') ||
82+
contains(github.event.discussion.title, 'DotNet') ||
83+
contains(github.event.discussion.body, 'c#') ||
84+
contains(github.event.discussion.body, 'C#') ||
85+
contains(github.event.discussion.title, 'c#') ||
86+
contains(github.event.discussion.title, 'C#') ||
87+
contains(github.event.discussion.body, 'csharp') ||
88+
contains(github.event.discussion.body, 'CSharp') ||
89+
contains(github.event.discussion.title, 'csharp') ||
90+
contains(github.event.discussion.title, 'CSharp'))
91+
uses: octokit/[email protected]
92+
with:
93+
query: |
94+
mutation($labelableId: ID!) {
95+
addLabelsToLabelable(
96+
input: {
97+
labelableId: $labelableId
98+
labelIds: ["LA_kwDOJDJ_Yc8AAAABN_r7Lw"]
99+
}
100+
) {
101+
clientMutationId
102+
}
103+
}
104+
variables: |
105+
{
106+
"labelableId": "${{ github.event.discussion.node_id }}"
107+
}

.github/workflows/label-needs-port.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,39 @@ jobs:
2121
steps:
2222
- name: Create dotnet issue
2323
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_dotnet') || contains(github.event.issue.labels.*.name, 'needs_port_to_dotnet')
24+
env:
25+
ORIGINAL_URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
26+
ORIGINAL_BODY: ${{ github.event.issue.body || github.event.pull_request.body }}
27+
ORIGINAL_TITLE: ${{ github.event.issue.title || github.event.pull_request.title }}
28+
ORIGINAL_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
2429
run: |
30+
{
31+
echo "# Original issue"
32+
echo "$ORIGINAL_URL"
33+
echo "## Description"
34+
echo "$ORIGINAL_BODY"
35+
echo "\n Relates to #$ORIGINAL_NUMBER"
36+
} > issue_body.md
2537
new_issue_url=$(gh issue create \
2638
--title "Port python feature: ${{ github.event.issue.title || github.event.pull_request.title }}" \
2739
--label ".NET" \
28-
--body "# Original issue
29-
${{ github.event.issue.html_url || github.event.pull_request.html_url }}
30-
## Description
31-
${{ github.event.issue.body || github.event.pull_request.body }}")
40+
--body-file issue_body.md)
3241
- name: Create python issue
3342
if: contains(github.event.pull_request.labels.*.name, 'needs_port_to_python') || contains(github.event.issue.labels.*.name, 'needs_port_to_python')
43+
env:
44+
ORIGINAL_URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
45+
ORIGINAL_BODY: ${{ github.event.issue.body || github.event.pull_request.body }}
46+
ORIGINAL_TITLE: ${{ github.event.issue.title || github.event.pull_request.title }}
47+
ORIGINAL_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
3448
run: |
49+
{
50+
echo "# Original issue"
51+
echo "$ORIGINAL_URL"
52+
echo "## Description"
53+
echo "$ORIGINAL_BODY"
54+
echo "\n Relates to #$ORIGINAL_NUMBER"
55+
} > issue_body.md
3556
new_issue_url=$(gh issue create \
3657
--title "Port dotnet feature: ${{ github.event.issue.title || github.event.pull_request.title }}" \
3758
--label "python" \
38-
--body "# Original issue
39-
${{ github.event.issue.html_url || github.event.pull_request.html_url }}
40-
## Description
41-
${{ github.event.issue.body || github.event.pull_request.body }}")
59+
--body-file issue_body.md)

.github/workflows/python-integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ jobs:
533533
script: core.setFailed('Integration Tests Cancelled!')
534534

535535
- name: Microsoft Teams Notification
536-
uses: skitionek/notify-microsoft-teams@master
536+
uses: skitionek/notify-microsoft-teams@v1.0.8
537537
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
538538
with:
539539
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
@@ -543,7 +543,7 @@ jobs:
543543
title: "{title: ` ${{ env.run_type }}: ${{ env.date }} `, text: ` ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}`}"
544544

545545
- name: Microsoft Teams Notification (Dry Run)
546-
uses: skitionek/notify-microsoft-teams@master
546+
uses: skitionek/notify-microsoft-teams@v1.0.8
547547
if: github.ref != 'refs/heads/main'
548548
with:
549549
webhook_url: NONE

.github/workflows/python-test-coverage-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
4040
- name: Pytest coverage comment
4141
id: coverageComment
42-
uses: MishaKav/pytest-coverage-comment@main
42+
uses: MishaKav/pytest-coverage-comment@v1.1.53
4343
with:
4444
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }}
4545
issue-number: ${{ env.PR_NUMBER }}

.github/workflows/python-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: uv run --frozen pytest --junitxml=pytest.xml ./tests/unit
4949
- name: Surface failing tests
5050
if: ${{ !matrix.experimental }}
51-
uses: pmeier/pytest-results-action@main
51+
uses: pmeier/pytest-results-action@v0.7.1
5252
with:
5353
path: python/pytest.xml
5454
summary: true

.github/workflows/typos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
persist-credentials: false
2626

2727
- name: Use custom config file
28-
uses: crate-ci/typos@master
28+
uses: crate-ci/typos@v1.31.1
2929
with:
3030
config: .github/_typos.toml
3131
write_changes: false

0 commit comments

Comments
 (0)