@nanocollective/roster 0.1.0-beta.28 → 0.1.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/hosting.md
CHANGED
|
@@ -95,7 +95,7 @@ before the call. It cannot hire, retire or change the org: those stay local. Eve
|
|
|
95
95
|
posts is posted as you.
|
|
96
96
|
|
|
97
97
|
Nothing to set up beyond the portal itself: the connector signs in through the same OAuth App,
|
|
98
|
-
on
|
|
98
|
+
on the same callback URL (`/auth/callback`).
|
|
99
99
|
|
|
100
100
|
## Deploying it
|
|
101
101
|
|
package/package.json
CHANGED
|
@@ -407,6 +407,24 @@ jobs:
|
|
|
407
407
|
ROSTER_CONNECTORS: ${{ steps.connectors.outputs.file }}
|
|
408
408
|
run: node roster-ops/agents.mjs --staff "${{ inputs.staff }}" --ops roster-ops --brains . >> "$GITHUB_OUTPUT"
|
|
409
409
|
|
|
410
|
+
# On a pull request the action treats its working directory as the PR's checkout: it
|
|
411
|
+
# re-points `origin`, runs `git diff HEAD` and restores .claude/ and CLAUDE.md from the
|
|
412
|
+
# base branch. Here the working directory is the workspace root, which holds the checkouts
|
|
413
|
+
# but is not one, so its git calls fail and the run dies before the agent starts. An empty
|
|
414
|
+
# repo with one commit and an `origin` gives it something to work on. Every path is
|
|
415
|
+
# ignored, so the checkouts inside it never show as untracked. Nothing from the PR is at
|
|
416
|
+
# the root, so the restore has nothing to protect against.
|
|
417
|
+
- name: Give the action a repo to work in
|
|
418
|
+
if: steps.agent.outputs.kind == 'action' && (github.event.issue.pull_request || github.event.pull_request)
|
|
419
|
+
run: |
|
|
420
|
+
set -euo pipefail
|
|
421
|
+
[ -d .git ] && exit 0
|
|
422
|
+
git init --quiet
|
|
423
|
+
echo '*' >> .git/info/exclude
|
|
424
|
+
git -c user.name=roster -c user.email=roster@users.noreply.github.com \
|
|
425
|
+
commit --quiet --allow-empty -m "workspace root"
|
|
426
|
+
git remote add origin "https://github.com/${{ github.repository }}.git"
|
|
427
|
+
|
|
410
428
|
# `uses:` cannot be an expression, so an Action-based runner has to be written out
|
|
411
429
|
# literally. This is the reference one; every other agent goes through the step below.
|
|
412
430
|
- name: Run the session
|