This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
What's the best way for the steering committee to deal with inaction or being ignored? #1123
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
name: "Nomination PRs" | |
on: | |
pull_request_target: | |
types: [edited, opened, synchronize, reopened] | |
issue_comment: | |
types: [created] | |
jobs: | |
process: | |
name: check-handle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
- name: Get GitHub App User ID | |
id: get-user-id | |
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | |
env: | |
GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
- run: | | |
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' | |
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
- uses: cachix/install-nix-action@v27 | |
- name: Process nomination | |
run: nix-shell -p pandoc msmtp --run scripts/check-nomination.sh -I nixpkgs=channel:nixpkgs-unstable | |
env: | |
GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }} | |
REPOSITORY: ${{ github.repository }} | |
NOMINATOR_ID: ${{ github.event.pull_request.user.id || github.event.issue.user.id }} | |
NOMINATOR_LOGIN: ${{ github.event.pull_request.user.login || github.event.issue.user.login }} | |
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }} | |
PR_TITLE: ${{ github.event.pull_request.title || github.event.issue.title }} | |
EVENT: ${{ github.event_name }} | |
HAS_NOMINATION_LABEL: ${{ github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'nomination') || contains(github.event.pull_request.labels.*.name, 'nomination') }} | |
IS_ENDORSEMENT: ${{ github.event_name == 'issue_comment' && github.event.comment.performed_via_github_app == null && contains(github.event.comment.body, '!endorse') }} | |
ENDORSER_ID: ${{ github.event.comment.user.id }} | |
ENDORSER_LOGIN: ${{ github.event.comment.user.login }} |