-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[Chore] Rationalize GHA as part of 'how we docs' exercise #23761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Issue - Label and assign | ||
|
||
# **What it does**: Labels Issues with associated products. Updates assignees to match our CODEOWNERS file. | ||
# **Why we have it**: Easier scanning of repo PRs && backend reporting on our team's work. | ||
# **Who does it impact**: PCX team | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
compile: | ||
name: Label and assign | ||
permissions: | ||
issues: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/issue-label-assign | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
name: Label PRs | ||
name: PR - Label and assign | ||
|
||
# **What it does**: Uses the files to label PRs with updated doc areas && size estimates. | ||
# **What it does**: Labels PRs with size and associated products. Updates assignees to match our CODEOWNERS file. | ||
# **Why we have it**: Easier scanning of repo PRs && backend reporting on our team's work. | ||
# **Who does it impact**: PCX team | ||
|
||
on: [pull_request_target] | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
on: | ||
pull_request_target: | ||
types: [opened, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
@@ -36,3 +39,16 @@ jobs: | |
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true | ||
|
||
assign: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This pulls in from the |
||
name: Update assignees | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/assign-pr | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-creates
issue.yml
, but with clearer naming