mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-03 08:01:40 +00:00
## Description Based on https://github.com/n0-computer/quinn/actions/runs/15219651419/job/42812757517?pr=71 seems that project sync is broken. Apparently the action moved to a new version and the old one might no longer be functional. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme)
48 lines
1.9 KiB
YAML
48 lines
1.9 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 quinn 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"
|
|
|
|
jobs:
|
|
add-to-project:
|
|
name: Add to project board
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/create-github-app-token@v2
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ secrets.N0_BOT_APP_ID }}
|
|
private-key: ${{ secrets.PROJECT_BOARD_PKEY }}
|
|
owner: n0-computer
|
|
|
|
- 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
|