diff --git a/.github/workflows/scripts/generate-report.sh b/.github/workflows/scripts/generate-report.sh deleted file mode 100644 index 62dfb18c..00000000 --- a/.github/workflows/scripts/generate-report.sh +++ /dev/null @@ -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 diff --git a/.github/workflows/weekly-velocity-report.yml b/.github/workflows/weekly-velocity-report.yml deleted file mode 100644 index dc0471bb..00000000 --- a/.github/workflows/weekly-velocity-report.yml +++ /dev/null @@ -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'