Removed GitHub Actions experiment files (#5627)

This commit is contained in:
Bryan Morgan 2025-08-05 20:01:18 -04:00 committed by GitHub
parent aeb6602266
commit 02f7e48c51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 47 deletions

View File

@ -1,23 +0,0 @@
#!/bin/bash
# --- Date Calculation ---
START_DATE=$(date -d "last Friday" +%Y-%m-%d)
END_DATE=$(date -d "last Thursday" +%Y-%m-%d)
DATE_RANGE="${START_DATE}..${END_DATE}"
# --- Report Generation ---
# Print a header row for the CSV
echo "Date Range,Username,PRs Submitted,Issues Closed"
# Get a list of all repository contributors, filter out bots, and extract the login name
USERNAMES=$(gh repo contributors --repo "${GITHUB_REPO}" --json "login" --jq '.[] | select(.login | contains("[bot]") | not) | .login')
# Loop through each user and generate a data row
for USER in $USERNAMES; do
# Get metrics using the GitHub CLI
PRS_SUBMITTED=$(gh pr list --author "${USER}" --search "created:${DATE_RANGE}" --repo "${GITHUB_REPO}" --json number --jq 'length')
ISSUES_CLOSED=$(gh issue list --search 'closer:"${USER}" closed:${DATE_RANGE}' --repo "${GITHUB_REPO}" --json number --jq 'length')
# Print the data as a CSV row
echo "${START_DATE} to ${END_DATE},${USER},${PRS_SUBMITTED},${ISSUES_CLOSED}"
done

View File

@ -1,24 +0,0 @@
name: Test Third-Party Action Access
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: This is an official action that will likely work
uses: actions/checkout@v4
- name: This is a very popular, non-official action
uses: actions/setup-node@v4
with:
node-version: '20'
- name: This is the Google Sheets action we want to use
uses: gautamkrishnar/append-csv-to-google-sheet-action@v2
with:
# We don't need real inputs, we just want to see if it can be found
sheet-name: 'Test'
csv-text: 'test'
spreadsheet-id: 'test'
google-api-key-base64: 'test'