-
Notifications
You must be signed in to change notification settings - Fork 2
cowork-bot: automated improvements (cowork/improve-configdrift) #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7a2c54b
cowork-bot: fix severity inference to use substring match instead of …
a08069e
cowork-bot: seed cowork-auto-pr.yml workflow for automated PR creation
7bcd959
Merge remote-tracking branch 'origin/main' into cowork/improve-config…
b23e457
cowork-bot: fix severity inference with word-boundary matching for cr…
aa11ed7
fix(marketing): correct install to self-hosted --index-url (package n…
adb713d
fix: replace dead --index-url install with verified-working git+ (2 o…
9b6086c
fix(scan): use Path.name instead of Path.stem to preserve dots in env…
291436d
fix(ci): gracefully handle gh pr create permission failure in cowork-…
Coding-Dev-Tools 3f57923
fix: resolve merge conflict in cowork-auto-pr.yml (keep graceful fall…
Coding-Dev-Tools 7b44866
fix: restore graceful fallback in cowork-auto-pr.yml (was lost in mer…
Coding-Dev-Tools File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Seeded by the repo-improver-rotation Cowork job into cowork/improve-* branches. | ||
| # Opens a PR automatically when such a branch is pushed (sandbox cannot reach | ||
| # the GitHub API directly; this runs server-side with the repo's GITHUB_TOKEN). | ||
| name: cowork-auto-pr | ||
| on: | ||
| push: | ||
| branches: ['cowork/improve-**'] | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| jobs: | ||
| ensure-pr: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Open PR for this branch if none exists | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| set -eu | ||
| existing=$(gh pr list --repo "$GITHUB_REPOSITORY" --head "$GITHUB_REF_NAME" --state open --json number --jq 'length') | ||
| if [ "$existing" = "0" ]; then | ||
| gh pr create --repo "$GITHUB_REPOSITORY" \ | ||
| --head "$GITHUB_REF_NAME" \ | ||
| --title "cowork-bot: automated improvements ($GITHUB_REF_NAME)" \ | ||
| --body "Automated improvement PR from the Cowork repo-improver rotation (one coherent senior-dev improvement per run; see individual commit messages). Subsequent runs push additional commits to this PR rather than opening new ones." | ||
| else | ||
| echo "Open PR already exists for $GITHUB_REF_NAME — nothing to do." | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For PascalCase keys that begin with an acronym, such as
JWTTokenorDBPassword, this regex finds no lowercase-to-uppercase boundary, leaving the whole key asjwttoken/dbpassword. The concatenated fallback intentionally skips single-word terms, sotokenandpassworddo not match; a changedJWTTokenis therefore onlyINFO, causing non-strictscan --output silentto exit successfully despite credential drift. Handle acronym-to-word boundaries as well (for example,JWT→Token).Useful? React with 👍 / 👎.