Add daily triage workflow for GitHub Project 1597#139594
Merged
Conversation
Agent-Logs-Url: https://github.com/department-of-veterans-affairs/va.gov-team/sessions/371ac879-e178-4a85-82bb-d3ea4179bc68 Co-authored-by: lakper <47703236+lakper@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow to monitor Project 1597
Add daily triage workflow for GitHub Project 1597
Apr 15, 2026
7 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a scheduled GitHub Actions workflow that monitors Project 1597 daily, flags issues needing attention, and posts a summary report.
Workflow (
.github/workflows/daily-project-triage.yml)cron: '0 9 * * *'+workflow_dispatchwith optionalproject_numberandstale_daysinputsVA_VSP_BOT_GITHUB_TOKEN || GITHUB_TOKEN— bot token providesread:org/projectscope for Projects v2 GraphQL; falls back to RESTlistForRepoif unavailableneeds-attentionlabel exists before labeling; creates it if missing, re-throws on non-404 errorsTriage criteria (skips issues already carrying
needs-attention)assignees.totalCount === 0updatedAt < now - STALE_DAYS * MS_PER_DAYneeds-review,blocked, orbugDuedate field < nowOutput
needs-attentionlabel to each flagged issue (once — idempotent)Includes breakdown table by reason, per-category issue lists with links and staleness age, and a timestamp.
Original prompt
Create a GitHub Actions workflow that monitors GitHub Project 1597 daily and flags tickets that need attention.
Workflow Requirements
Trigger: Daily at 9:00 AM UTC
Criteria for "Needs Attention":
needs-review,blocked, orbugActions:
needs-attentionlabel to flagged issuesTechnical Details:
actions/github-script@v7or similardepartment-of-veterans-affairs/va.gov-teamrepositorySummary Issue Format:
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: I want to write a workflow that will look at my github project daily and flag any tickets that need attetion
Assistant: I'll help you create a workflow to monitor your GitHub project and flag tickets that need attention. Let me start by loading the relevant ability for this task.
Assistant: I can help you create a GitHub Actions workflow for this! This isn't a debugging task, so let me set that ability aside and focus on your workflow needs.
To create an effective workflow that reviews your project daily and flags tickets needing attention, I need to understand a few things:
Which project? Do you have a specific GitHub Project (Classic or the newer Projects v2) you want to monitor, or should we look at issues in a particular repository?
What criteria indicate "needs attention"?
needs-review,blocked,bug)?How should tickets be flagged?
Which repository should this workflow live in?
Once you clarify these details, I can create a workflow that:
What would work best for your use case?
User: project https://github.com/orgs/department-of-veterans-affairs/projects/1597/
Assistant: I see that I can't directly query the project via API. Let me take a different approach. To create a workflow that checks your project daily, I need a bit more information:
What's the main repository associated with this project? (The workflow file will need to live somewhere)
What criteria should trigger the "needs attention" flag? For example:
What action should the workflow take?
How often and when should it run? (e.g., daily at 9 AM, weekdays only?)
Once I have these details, I'll create a workflow that automatically monitors your project and keeps your team accountable!
User: What criteria indicate "needs attention"?
Issues without assignees?
Stale issues (no updates in 2 days)?
Issues with specific labels (e.g., needs-review, blocked, bug)?
Issues past a due date?
A combination of these?
How should tickets be flagged?
Add a label or comment?
Create a summary issue?
Send a notification (Slack, email, etc.)?
Update the project board?
Assistant: Perfect! Now I understand the repository. Before I create the workflow, I need you to specify your preferences for these two key questions:
1. What criteria indicate "needs attention"? (Select one or more)
needs-review,blocked,bug)2. How should tickets be flagged? (Select one or more)
needs-attention,flagged)This pull request was created from Copilot chat.