Skip to content
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

Introduce combined maintainer workflow #41579

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
65 changes: 1 addition & 64 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: "Process issues Events"
on:
issues:
types:
- assigned
- closed
- edited
- opened
- labeled

jobs:
labels:
Expand Down Expand Up @@ -36,7 +34,7 @@ jobs:
id: community_check
uses: ./.github/actions/community_check
with:
user_login: ${{ github.event.action == 'assigned' && github.event.assignee.login || github.event.issue.user.login }}
user_login: ${{ github.event.issue.user.login }}
maintainers: ${{ secrets.MAINTAINERS }}

- name: Add needs-triage to New Issues
Expand All @@ -47,14 +45,6 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh issue edit ${{ github.event.issue.html_url }} --add-label needs-triage

- name: Add prioritized When Assigned to a Maintainer
if: |
github.event.action == 'assigned'
&& steps.community_check.outputs.maintainer == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh issue edit ${{ github.event.issue.html_url }} --add-label prioritized

- name: Remove Triage labels on Closure
if: |
github.event.action == 'closed'
Expand All @@ -63,59 +53,6 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh issue edit ${{ github.event.issue.html_url }} --remove-label needs-triage,waiting-response

project:
name: Maintainer Work Board
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Generate GitHub App Token
id: token
uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PEM }}

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: .github/actions/

- name: Run Community Check
id: community_check
if: github.event.action == 'assigned'
uses: ./.github/actions/community_check
with:
user_login: ${{ github.event.assignee.login }}
maintainers: ${{ secrets.MAINTAINERS }}

- name: Add Maintainer Assignments
if: |
github.event.action == 'assigned'
&& steps.community_check.outputs.maintainer == 'true'
uses: ./.github/actions/team_working_board
with:
github_token: ${{ steps.token.outputs.token }}
item_url: ${{ github.event.issue.html_url }}
status: "In Progress"
view: "working-board"

- name: Add Issues Labeled prioritized
if: github.event.label.name == 'prioritized'
uses: ./.github/actions/team_working_board
with:
github_token: ${{ steps.token.outputs.token }}
item_url: ${{ github.event.issue.html_url }}
view: "working-board"

- name: Add Issues Labeled engineering-initiative
if: github.event.label.name == 'engineering-initiative'
uses: ./.github/actions/team_working_board
with:
github_token: ${{ steps.token.outputs.token }}
item_url: ${{ github.event.issue.html_url }}
view: "engineering-initiative"

community_note:
name: "Add Community Note"
if: github.event.action == 'opened'
Expand Down
84 changes: 0 additions & 84 deletions .github/workflows/label-notifications.yml

This file was deleted.

Loading