From 6876a8d649869d10f631e1f9976d2632fe153965 Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Wed, 23 Sep 2026 08:22:53 -0400 Subject: [PATCH] chore: remove generated contributor ledger --- .github/scripts/contributions.sh | 40 ----------------------------- .github/workflows/contributions.yml | 40 ----------------------------- README.md | 23 ----------------- 3 files changed, 103 deletions(-) delete mode 100755 .github/scripts/contributions.sh delete mode 100644 .github/workflows/contributions.yml diff --git a/.github/scripts/contributions.sh b/.github/scripts/contributions.sh deleted file mode 100755 index 308a1033b..000000000 --- a/.github/scripts/contributions.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash -# Regenerates the contributions table in README.md, between its markers, from the repository's -# pull requests: one row per pull request by anyone but the owner, and a line of totals per -# contributor. Run by the Contributions ledger workflow when a pull request is opened, merged or -# closed, and by hand with: gh auth status && .github/scripts/contributions.sh OWNER/REPO -set -euo pipefail -REPO=${1:-The412Banner/SteamDeck} -OWNER=${REPO%%/*} -ROWS=$(gh api "repos/$REPO/pulls?state=all&per_page=100" --paginate \ - --jq '.[] | select(.user.login != "'"$OWNER"'") - | [.user.login, .number, (.title | gsub("\\|"; "\\\\|")), (.created_at[0:10]), - (if .merged_at then "merged " + .merged_at[0:10] elif .state == "closed" then "closed" elif .draft then "draft" else "open" end), - .html_url] | @tsv' | sort -t"$(printf '\t')" -k1,1 -k2,2n) -{ - echo "" - echo "_From the repository's pull requests; rewritten when one is opened, merged or closed._" - echo - echo "| Contributor | Pull request | Opened | State |" - echo "|---|---|---|---|" - if [ -z "$ROWS" ]; then - echo "| - | none yet | | |" - else - while IFS=$'\t' read -r login num title opened state url; do - echo "| [@$login](https://github.com/$login) | [#$num]($url) $title | $opened | $state |" - done <<< "$ROWS" - echo - printf '%s\n' "$ROWS" | awk -F'\t' 'NF { t[$1]++; if ($5 ~ /^merged/) m[$1]++ } END { for (l in t) printf("- **@%s**: %d submitted, %d merged\n", l, t[l], m[l] + 0) }' | sort - fi - echo "" -} > /tmp/contributions.md -python3 - <<'PY' -import re -s = open('README.md').read() -new = open('/tmp/contributions.md').read().rstrip('\n') -out, n = re.subn(r'.*?', lambda m: new, s, flags=re.S) -if n != 1: - raise SystemExit("README.md has no contributions markers") -open('README.md', 'w').write(out) -PY -echo "README.md: contributions table rewritten" diff --git a/.github/workflows/contributions.yml b/.github/workflows/contributions.yml deleted file mode 100644 index d3879b109..000000000 --- a/.github/workflows/contributions.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Contributions ledger - -# Keeps the Contributors section of the README current: every pull request by a contributor, -# with its state, and a line of totals each. Runs when a pull request is opened, merged or -# closed and commits the README to main as the Actions bot. The README is documentation, so -# that commit does not buy an apk build. -on: - pull_request_target: - types: [ opened, reopened, closed, edited ] - workflow_dispatch: - -permissions: - contents: write - pull-requests: read - -concurrency: - group: contributions - cancel-in-progress: false - -jobs: - ledger: - runs-on: ubuntu-24.04 - timeout-minutes: 5 - steps: - - uses: actions/checkout@v4 - with: - ref: main - - name: Rewrite the table - env: - GH_TOKEN: ${{ github.token }} - run: .github/scripts/contributions.sh "$GITHUB_REPOSITORY" - - name: Commit it when it changed - run: | - set -euo pipefail - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add README.md - if git diff --cached --quiet; then echo "ledger unchanged"; exit 0; fi - git commit -m "README: contributions ledger" - git push origin HEAD:main diff --git a/README.md b/README.md index ebfb6876d..50e29d2ea 100644 --- a/README.md +++ b/README.md @@ -16,29 +16,6 @@ Run `tools/build_local.sh` with Docker and the Android SDK/NDK installed. The AP Compatibility and performance vary by device; hardware validation is limited. Desktop compositing uses software rendering. Firefox sandboxing is reduced under proot. See the session logs in `Download/SteamDeck/` when diagnosing problems. -## Contributors - -Building this alongside the owner. A pull request from either of them builds by itself and gets -a comment saying whether it merges, what conflicts, or what failed to compile. - -- **MaxsTechReview** - [@maxjivi05](https://github.com/maxjivi05) -- **Kurt Himebauch** - [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) - - -_From the repository's pull requests; rewritten when one is opened, merged or closed._ - -| Contributor | Pull request | Opened | State | -|---|---|---|---| -| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#1](https://github.com/The412Banner/SteamDeck/pull/1) initial decky installer stuff | 2026-09-23 | closed | -| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#3](https://github.com/The412Banner/SteamDeck/pull/3) Fix hardware back in Steam session | 2026-09-23 | merged 2026-09-23 | -| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#4](https://github.com/The412Banner/SteamDeck/pull/4) Update app launcher icon | 2026-09-23 | merged 2026-09-23 | -| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#5](https://github.com/The412Banner/SteamDeck/pull/5) Add reproducible local build and deploy helpers | 2026-09-23 | merged 2026-09-23 | -| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#6](https://github.com/The412Banner/SteamDeck/pull/6) Add Steam and QAM touch controls | 2026-09-23 | merged 2026-09-23 | -| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#7](https://github.com/The412Banner/SteamDeck/pull/7) Add session suspend modes and audio recovery | 2026-09-23 | draft | - -- **@xXJSONDeruloXx**: 6 submitted, 4 merged - - ## Credits and licence GPL-3.0. Runtime, shim, input, and controller work build on WinNative and Bannerlator (maxjivi05); audio, gamepad, and session foundations build on Winlator (brunodev85). See [LICENSE](LICENSE). Steam and Proton belong to Valve Corporation; this project is not affiliated with Valve.