Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# ------------------------------------------------------------------------------
# This file is synced from the radius-project/.github repository.
# DO NOT EDIT MANUALLY - changes will be overwritten by the next sync.
# Source: https://github.com/radius-project/.github
# ------------------------------------------------------------------------------
# Labels applied by .github/workflows/labels.yml. Labels not listed here are
# kept. Shared labels are defined in sync-templates/.github/labels.yml.njk and
# repository-specific labels in the repo_labels variable in .github/sync.yml.
# yamllint disable rule:quoted-strings
---
# Shared labels.
- name: "pr:needs-reviewer"
color: "1D76DB"
description: "No pending review request or active submitted human review"
- name: "pr:waiting-for-review"
color: "1D76DB"
description: "A reviewer owns the next action; required approval is pending or unverifiable"
- name: "pr:waiting-for-author"
color: "1D76DB"
description: "The author needs to address human review feedback or human-endorsed inline feedback"
- name: "pr:review-approved"
color: "1D76DB"
description: "Required reviews are approved; checks may still be pending"
- name: "pr:needs-rebase"
color: "1D76DB"
description: "The pull request has merge conflicts"
- name: "pr:ready-for-queue"
color: "1D76DB"
description: "Review, checks and mergeability permit adding this PR to the queue"
- name: "pr:needs-author-response"
color: "1D76DB"
description: "A reviewer manually requested an author response"
- name: "pr:do-not-merge"
color: "1D76DB"
description: "Don't merge this PR until open discussion items or issues are complete"
12 changes: 5 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<!--
Thank you for contributing to Radius! Please fill out each section below so
reviewers have the context they need. Sections marked optional can be removed
if they do not apply.
-->

## Summary

<!-- Provide a concise description of what this PR does. -->
Expand All @@ -19,7 +13,11 @@ Fixes #<!-- issue number (optional) -->

## How to test

<!-- Describe the steps a reviewer can take to verify these changes. -->
<!--
Give reproducible validation steps a reviewer can follow,
including prerequisites, commands or actions, and expected results.
Do not substitute a list of checks you already ran.
-->

## File change summary

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
# ------------------------------------------------------------------------------
# This file is synced from the radius-project/.github repository.
# DO NOT EDIT MANUALLY - changes will be overwritten by the next sync.
# Source: https://github.com/radius-project/.github
# ------------------------------------------------------------------------------
---
name: Labels

# Applies .github/labels.yml, which is managed in radius-project/.github and
# updated here by sync pull requests. Labels it does not list are never deleted.
on:
# The reusable workflow only syncs pushes to the default branch.
push:
paths:
- .github/labels.yml
- .github/workflows/labels.yml
pull_request:
paths:
- .github/labels.yml
- .github/workflows/labels.yml
# Reverts manual changes to labels that .github/labels.yml defines.
label:
types: [created, edited, deleted]
workflow_dispatch:

permissions: {}

concurrency:
group: labels-${{ github.repository }}
cancel-in-progress: false

jobs:
labels:
uses: radius-project/.github/.github/workflows/__labels.yml@main
permissions:
contents: read
issues: write
28 changes: 28 additions & 0 deletions .github/workflows/pr-review-signal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
# ------------------------------------------------------------------------------
# This file is synced from the radius-project/.github repository.
# DO NOT EDIT MANUALLY - changes will be overwritten by the next sync.
# Source: https://github.com/radius-project/.github
# ------------------------------------------------------------------------------
---
name: PR Review Signal

run-name: ${{ github.event.pull_request.number }}

# Review and inline-comment workflows run from the PR's merge commit, so they cannot safely
# write labels for fork PRs. This read-only run signals pr-status-labels.
on:
pull_request_review:
types: [submitted, dismissed]
pull_request_review_comment:
types: [created, edited, deleted]

permissions: {}

jobs:
signal:
runs-on: ubuntu-24.04
timeout-minutes: 2
steps:
- name: Signal review change
run: echo "Pull request review changed"
58 changes: 58 additions & 0 deletions .github/workflows/pr-status-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
# ------------------------------------------------------------------------------
# This file is synced from the radius-project/.github repository.
# DO NOT EDIT MANUALLY - changes will be overwritten by the next sync.
# Source: https://github.com/radius-project/.github
# ------------------------------------------------------------------------------
---
name: PR Status Labels

# Only trusted code from radius-project/.github runs with write permissions.
# The review and inline-comment workflow is read-only; workflow_run relays its
# signal. Docs: https://github.com/radius-project/.github/tree/main/.github/actions/pr-status-labels
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
- converted_to_draft
- review_requested
- review_request_removed
- edited
- labeled
- unlabeled
- closed
- enqueued
- dequeued
workflow_run:
workflows: [PR Review Signal]
types: [completed]
# GitHub Actions has no trigger for resolving or reopening review threads.
schedule:
- cron: 7,22,37,52 * * * *
workflow_dispatch:
inputs:
pr_number:
description: PR number to reconcile (leave blank for all open PRs)
required: false
type: string

permissions: {}

concurrency:
# Any all-PR run can update a PR-specific run's labels, so serialize every run.
group: pr-status-labels-${{ github.repository }}
cancel-in-progress: false

jobs:
label:
uses: radius-project/.github/.github/workflows/__pr-status-labels.yml@main
permissions:
contents: read
issues: write
pull-requests: write
with:
pr-number: ${{ inputs.pr_number }}
labels: ${{ vars.PR_STATUS_LABELS }}
Loading