-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge main to feature/egressExtension (#3668)
- Loading branch information
Showing
99 changed files
with
984 additions
and
338 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Scan For To Do Comments | ||
on: | ||
pull_request_review_comment: | ||
types: [created] | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
scan-for-todo-issue: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.comment.body, '/TODO') | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Generate artifacts | ||
run: | | ||
trimmed_comment=$(echo "${{ github.event.comment.body }}" | sed 's|/TODO ||I') | ||
mkdir -p ./issue | ||
echo -n $trimmed_comment > ./issue/issue-title | ||
echo -n "${{ github.event.comment.html_url }}" > ./issue/issue-url | ||
echo -n "${{ github.event.comment.user.login }}" > ./issue/issue-user | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: issue-todo | ||
path: issue/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: 'Submit To Do Issue' | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Scan For To Do Comments"] | ||
types: | ||
- completed | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
submit-todo-issue: | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- uses: actions/[email protected] | ||
id: check-user | ||
with: | ||
script: | | ||
await github.rest.repos.checkCollaborator({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
username: context.payload.workflow_run.triggering_actor.login | ||
}); | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Download the artifact from the workflow that kicked off this one. | ||
# The default artifact download action doesn't support cross-workflow | ||
# artifacts, so use a 3rd party one. | ||
- name: 'Download linting results' | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{env.workflow_name}} | ||
run_id: ${{github.event.workflow_run.id }} | ||
name: issue-todo | ||
path: ./issue-todo | ||
- name: Submit Issue | ||
run: | | ||
title=$(cat ./issue-todo/issue-title) | ||
user=$(cat ./issue-todo/issue-user) | ||
url=$(cat ./issue-todo/issue-url) | ||
gh issue create --label "todo" --assignee "$user" --title "$title" --body "$url" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Track shipped versions | ||
on: | ||
release: | ||
types: [released] | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
shipping_branch_prefix: 'shipped' | ||
|
||
jobs: | ||
update-shipping-branch: | ||
if: github.repository == 'dotnet/dotnet-monitor' | ||
name: '[${{ github.ref_name }}] Update shipping branch' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update shipping branch | ||
run: | | ||
release_version=${GITHUB_REF_NAME%-*} | ||
if [[ ! "$release_version" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "Unexpected release tag: $release_version." | ||
exit 1 | ||
fi | ||
major_minor_version=${release_version%.*} | ||
shipping_branch_name="${{ env.shipping_branch_prefix }}/$major_minor_version" | ||
# This is a shallow clone so we will always create a new local branch even if it already exists on the remote | ||
git checkout -b "$shipping_branch_name" | ||
git push --force --set-upstream origin "HEAD:$shipping_branch_name" |
Oops, something went wrong.