mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-29 08:01:13 +00:00
This PR rolls up the following dependabot PRs: - #4632: chore(deps): bump proptest from 1.11.0 to 1.12.0 - #4633: chore(deps): bump redb from 4.3.0 to 4.4.0 - #4634: chore(deps): bump the github-actions group across 1 directory with 4 updates - #4648: chore(deps): bump portmapper from 0.19.3 to 0.20.0 - #4649: chore(deps): bump base64-url from 3.0.4 to 4.0.0 - #4650: chore(deps): bump lru from 0.18.4 to 0.19.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
2.3 KiB
YAML
56 lines
2.3 KiB
YAML
name: Add PRs and Issues to the Project Board
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REPOS_LIST: "iroh tools n0.computer ops iroh.computer quic-rpc chuck abao bao-tree iroh-examples iroh.network tokio-rustls-acme iroh-ffi iroh-car iroh-io iroh-blake3 dumbpipe.dev dumbpipe sendme swarmie iroh-c-ffi willow-store noq iroh-experiments willow-rs iroh-gossip iroh-doctor iroh-blobs iroh-docs iroh-doctor-server iroh-willow iroh-metrics net-tools iroh-node-util workflows ips iroh-roq"
|
|
|
|
# Default to read-only; jobs that need more grant it explicitly.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
add-to-project:
|
|
name: Add to project board
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ secrets.N0_BOT_APP_ID }}
|
|
private-key: ${{ secrets.PROJECT_BOARD_PKEY }}
|
|
owner: n0-computer
|
|
# Omitting permission-contents is the point: no code write anywhere.
|
|
permission-issues: write
|
|
permission-pull-requests: write
|
|
permission-organization-projects: write
|
|
|
|
- name: Update PRs
|
|
env:
|
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
run: |
|
|
for REPO in $REPOS_LIST; do
|
|
echo "Processing repository: $REPO"
|
|
|
|
gh pr list --repo n0-computer/$REPO --state open --json number,projectItems | jq -r '.[] | select(.projectItems | length == 0) | .number' > pr_list.txt
|
|
while read -r PR_NUMBER; do
|
|
echo "Processing PR #$PR_NUMBER"
|
|
gh pr edit "$PR_NUMBER" --repo n0-computer/$REPO --add-project iroh
|
|
done < pr_list.txt
|
|
done
|
|
|
|
- name: Update ISSUEs
|
|
env:
|
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
run: |
|
|
for REPO in $REPOS_LIST; do
|
|
gh issue list --repo n0-computer/$REPO --state open --json number,projectItems | jq -r '.[] | select(.projectItems | length == 0) | .number' > issue_list.txt
|
|
while read -r ISSUE_NUMBER; do
|
|
echo "Processing Issue #$ISSUE_NUMBER"
|
|
gh issue edit "$ISSUE_NUMBER" --repo n0-computer/$REPO --add-project iroh
|
|
done < issue_list.txt
|
|
done
|