From 918fc35012fbb1611bf1c05331e181ce3de7c61e Mon Sep 17 00:00:00 2001 From: Don Syme Date: Tue, 12 Aug 2025 21:48:06 +0100 Subject: [PATCH 1/2] Add workflow: githubnext/agentics/weekly-research --- .../workflows/agentics/shared/job-summary.md | 2 + .github/workflows/weekly-research.lock.yml | 42 ++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agentics/shared/job-summary.md b/.github/workflows/agentics/shared/job-summary.md index 4e46c1f3ec..d21ab74eb6 100644 --- a/.github/workflows/agentics/shared/job-summary.md +++ b/.github/workflows/agentics/shared/job-summary.md @@ -2,6 +2,8 @@ tools: claude: allowed: + Edit: + MultiEdit: Write: Bash: - "echo:*" diff --git a/.github/workflows/weekly-research.lock.yml b/.github/workflows/weekly-research.lock.yml index eb30cc9246..02a9aeb93f 100644 --- a/.github/workflows/weekly-research.lock.yml +++ b/.github/workflows/weekly-research.lock.yml @@ -16,7 +16,45 @@ concurrency: run-name: "Weekly Research" jobs: + task: + runs-on: ubuntu-latest + permissions: + contents: read + outputs: + text: ${{ steps.compute-text.outputs.text }} + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: .github + fetch-depth: 1 + - name: Compute current body text + id: compute-text + uses: ./.github/actions/compute-text + + add-reaction: + needs: task + if: github.event_name == 'issues' || github.event_name == 'pull_request' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_comment' || github.event_name == 'pull_request_review_comment' + runs-on: ubuntu-latest + permissions: + contents: write # Read .github + issues: write + pull-requests: write + outputs: + reaction_id: ${{ steps.react.outputs.reaction-id }} + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: .github + - name: Add eyes reaction to the triggering item + id: react + uses: ./.github/actions/reaction + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + mode: add + reaction: eyes + weekly-research: + needs: task runs-on: ubuntu-latest permissions: actions: read @@ -155,9 +193,11 @@ jobs: # - Bash(echo:*) # - Bash(gh label list:*) # - Bash(gh label view:*) + # - Edit # - Glob # - Grep # - LS + # - MultiEdit # - NotebookRead # - Read # - Task @@ -209,7 +249,7 @@ jobs: # - mcp__github__search_pull_requests # - mcp__github__search_repositories # - mcp__github__search_users - allowed_tools: "Bash(echo:*),Bash(gh label list:*),Bash(gh label view:*),Glob,Grep,LS,NotebookRead,Read,Task,WebFetch,WebSearch,Write,mcp__github__create_issue,mcp__github__download_workflow_run_artifact,mcp__github__get_code_scanning_alert,mcp__github__get_commit,mcp__github__get_dependabot_alert,mcp__github__get_discussion,mcp__github__get_discussion_comments,mcp__github__get_file_contents,mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__get_job_logs,mcp__github__get_me,mcp__github__get_notification_details,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_diff,mcp__github__get_pull_request_files,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__get_secret_scanning_alert,mcp__github__get_tag,mcp__github__get_workflow_run,mcp__github__get_workflow_run_logs,mcp__github__get_workflow_run_usage,mcp__github__list_branches,mcp__github__list_code_scanning_alerts,mcp__github__list_commits,mcp__github__list_dependabot_alerts,mcp__github__list_discussion_categories,mcp__github__list_discussions,mcp__github__list_issues,mcp__github__list_notifications,mcp__github__list_pull_requests,mcp__github__list_secret_scanning_alerts,mcp__github__list_tags,mcp__github__list_workflow_jobs,mcp__github__list_workflow_run_artifacts,mcp__github__list_workflow_runs,mcp__github__list_workflows,mcp__github__search_code,mcp__github__search_issues,mcp__github__search_orgs,mcp__github__search_pull_requests,mcp__github__search_repositories,mcp__github__search_users" + allowed_tools: "Bash(echo:*),Bash(gh label list:*),Bash(gh label view:*),Edit,Glob,Grep,LS,MultiEdit,NotebookRead,Read,Task,WebFetch,WebSearch,Write,mcp__github__create_issue,mcp__github__download_workflow_run_artifact,mcp__github__get_code_scanning_alert,mcp__github__get_commit,mcp__github__get_dependabot_alert,mcp__github__get_discussion,mcp__github__get_discussion_comments,mcp__github__get_file_contents,mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__get_job_logs,mcp__github__get_me,mcp__github__get_notification_details,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_diff,mcp__github__get_pull_request_files,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__get_secret_scanning_alert,mcp__github__get_tag,mcp__github__get_workflow_run,mcp__github__get_workflow_run_logs,mcp__github__get_workflow_run_usage,mcp__github__list_branches,mcp__github__list_code_scanning_alerts,mcp__github__list_commits,mcp__github__list_dependabot_alerts,mcp__github__list_discussion_categories,mcp__github__list_discussions,mcp__github__list_issues,mcp__github__list_notifications,mcp__github__list_pull_requests,mcp__github__list_secret_scanning_alerts,mcp__github__list_tags,mcp__github__list_workflow_jobs,mcp__github__list_workflow_run_artifacts,mcp__github__list_workflow_runs,mcp__github__list_workflows,mcp__github__search_code,mcp__github__search_issues,mcp__github__search_orgs,mcp__github__search_pull_requests,mcp__github__search_repositories,mcp__github__search_users" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_env: | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bcb5dc85e2452638b8e061211d4d995e6c7d605b Mon Sep 17 00:00:00 2001 From: Don Syme Date: Tue, 12 Aug 2025 21:48:44 +0100 Subject: [PATCH 2/2] Refactor weekly research workflow by removing jobs --- .github/workflows/weekly-research.lock.yml | 38 ---------------------- 1 file changed, 38 deletions(-) diff --git a/.github/workflows/weekly-research.lock.yml b/.github/workflows/weekly-research.lock.yml index 02a9aeb93f..fe86953f89 100644 --- a/.github/workflows/weekly-research.lock.yml +++ b/.github/workflows/weekly-research.lock.yml @@ -16,45 +16,7 @@ concurrency: run-name: "Weekly Research" jobs: - task: - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - text: ${{ steps.compute-text.outputs.text }} - steps: - - uses: actions/checkout@v4 - with: - sparse-checkout: .github - fetch-depth: 1 - - name: Compute current body text - id: compute-text - uses: ./.github/actions/compute-text - - add-reaction: - needs: task - if: github.event_name == 'issues' || github.event_name == 'pull_request' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_comment' || github.event_name == 'pull_request_review_comment' - runs-on: ubuntu-latest - permissions: - contents: write # Read .github - issues: write - pull-requests: write - outputs: - reaction_id: ${{ steps.react.outputs.reaction-id }} - steps: - - uses: actions/checkout@v4 - with: - sparse-checkout: .github - - name: Add eyes reaction to the triggering item - id: react - uses: ./.github/actions/reaction - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - mode: add - reaction: eyes - weekly-research: - needs: task runs-on: ubuntu-latest permissions: actions: read