-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-blob-content-data-source
# Conflicts: # .github/labeler-issue-triage.yml
- Loading branch information
Showing
20,731 changed files
with
710,527 additions
and
522,736 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
bug: | ||
- '- \[\s?(x|X)\s?\] Bug Fix' | ||
|
||
enhancement: | ||
- '- \[\s?(x|X)\s?\] Enhancement' | ||
|
||
breaking-change: | ||
- '- \[\s?(x|X)\s?\] Breaking Change' |
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,55 @@ | ||
name: Assign Reviewer as Assignee | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- "Pull Request Reviewed" | ||
types: | ||
- completed | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
assign_reviewer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Artifact | ||
id: get_artifact | ||
continue-on-error: true | ||
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
workflow: pull-request-reviewed.yaml | ||
|
||
- name: env_vars | ||
id: env_vars | ||
if: steps.get_artifact.outcome == 'success' | ||
run: | | ||
echo "reviewer=$(cat artifact/reviewer.txt)" >>${GITHUB_OUTPUT} | ||
echo "reviewState=$(cat artifact/reviewstate.txt)" >>${GITHUB_OUTPUT} | ||
echo "prNumber=$(cat artifact/prnumber.txt)" >>${GITHUB_OUTPUT} | ||
- name: Assign the reviewer as assignee when changes are requested | ||
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const reviewer = '${{ steps.env_vars.outputs.reviewer }}'; | ||
const prNumber = parseInt('${{ steps.env_vars.outputs.prNumber }}', 10); | ||
const reviewState = '${{ steps.env_vars.outputs.reviewState }}'; | ||
const repo = '${{ github.event.repository.name }}'; | ||
const owner = '${{ github.event.repository.owner.login }}'; | ||
if (reviewState === 'changes_requested') { | ||
console.log(`Assigning reviewer: ${reviewer} to PR #${prNumber} as changes were requested.`); | ||
await github.rest.issues.addAssignees({ | ||
owner: owner, | ||
repo: repo, | ||
issue_number: prNumber, | ||
assignees: [reviewer], | ||
}); | ||
} else { | ||
console.log(`No action taken. Review state is '${reviewState}'.`); | ||
} |
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
Oops, something went wrong.