Skip to content

Commit e277097

Browse files
Copilotpelikhan
andauthored
Update daily-* and weekly-* agentic workflows to use create-discussion instead of create-issue (#49)
* Initial plan * Update workflows to use create-discussion instead of create-issue Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Clarify instruction wording for updating planning discussions Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Fix trailing whitespace in TODO.md Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Remove update-discussion (not supported) and compile workflows Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
1 parent 5bd6f21 commit e277097

11 files changed

Lines changed: 106 additions & 55 deletions

TODO.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# TODO: Create GitHub Discussion Categories
2+
3+
The agentic workflows have been updated to use GitHub Discussions instead of Issues. Before these workflows can be used, the following discussion categories need to be created in the repository:
4+
5+
## Required Discussion Categories
6+
7+
### 1. Announcements
8+
- **Slug**: `announcements`
9+
- **Description**: Important updates and status reports for the project
10+
- **Used by workflows**:
11+
- daily-plan.md
12+
- daily-team-status.md
13+
- daily-dependency-updates.md
14+
15+
### 2. Ideas
16+
- **Slug**: `ideas`
17+
- **Description**: Feature requests, research findings, and improvement proposals
18+
- **Used by workflows**:
19+
- weekly-research.md
20+
- daily-test-improver.md
21+
- daily-progress.md
22+
- daily-perf-improver.md
23+
- daily-backlog-burner.md
24+
25+
### 3. Q&A
26+
- **Slug**: `q-a`
27+
- **Description**: Questions and quality assurance findings
28+
- **Used by workflows**:
29+
- daily-qa.md
30+
- daily-accessibility-review.md
31+
32+
## How to Create Discussion Categories
33+
34+
1. Go to your repository on GitHub
35+
2. Navigate to the "Discussions" tab
36+
3. If Discussions are not enabled:
37+
- Go to Settings → Features
38+
- Enable "Discussions"
39+
4. Click on the "Categories" section in Discussions
40+
5. Create the following categories with the exact slugs specified above:
41+
- **Announcements** (slug: `announcements`)
42+
- **Ideas** (slug: `ideas`)
43+
- **Q&A** (slug: `q-a`)
44+
45+
## Notes
46+
47+
- The category slugs must match exactly as specified (e.g., `q-a` not `qa` or `q_a`)
48+
- GitHub may provide default categories when you first enable Discussions - you can keep those or customize as needed
49+
- The workflows reference these categories in their `safe-outputs` configuration
50+
- After creating the categories, compile the workflows using `gh aw compile` to ensure they work correctly

workflows/daily-accessibility-review.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ permissions: read-all
1111
network: defaults
1212

1313
safe-outputs:
14-
create-issue:
14+
create-discussion:
1515
title-prefix: "${{ github.workflow }}"
16+
category: "q-a"
1617
max: 5
1718
add-comment:
1819
max: 5
@@ -54,8 +55,8 @@ Steps:
5455
If the section "Build and run app in background" already contains actual commands, then go to the next step. If it
5556
still contains a placeholder, then:
5657
a. Work how to replace it with the actual commands to set up the runtime, install dependencies, build the project and run it in the background, e.g., using `&` at the end of the command.
57-
b. Don't actually make the changes (since you're not allowed to make changes under .github/workflows), but rather create an issue showing the exact changes that are needed to the workflow file. Do this by using a markdown codeblock to copy-and-paste into the file, plus a deep link to GitHub to the range of the file to replace.
58-
c. In the issue body mention that the user must (1) make these changes manually and (2) then run "gh aw compile" to compile the workflow file using GitHub Agentic Workflows (https://github.com/githubnext/gh-aw).
58+
b. Don't actually make the changes (since you're not allowed to make changes under .github/workflows), but rather create a discussion showing the exact changes that are needed to the workflow file. Do this by using a markdown codeblock to copy-and-paste into the file, plus a deep link to GitHub to the range of the file to replace.
59+
c. In the discussion body mention that the user must (1) make these changes manually and (2) then run "gh aw compile" to compile the workflow file using GitHub Agentic Workflows (https://github.com/githubnext/gh-aw).
5960
d. Also instruct them to remove this section from the markdown.
6061
e. Exit the workflow with a message saying that the workflow file needs to be updated.
6162

@@ -64,7 +65,7 @@ still contains a placeholder, then:
6465

6566
2. Review the source code of the application to look for accessibility issues in the code. Use the Grep, LS, Read, etc. tools.
6667

67-
3. Use the GitHub MCP tool to create issues for any accessibility problems you find. Each issue should include:
68+
3. Use the GitHub MCP tool to create discussions for any accessibility problems you find. Each discussion should include:
6869
- A clear description of the problem
6970
- References to the appropriate section(s) of WCAG 2.2 that are violated
7071
- Any relevant code snippets that illustrate the issue

workflows/daily-backlog-burner.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ timeout_minutes: 30
1111
network: defaults
1212

1313
safe-outputs:
14-
create-issue:
14+
create-discussion:
1515
title-prefix: "${{ github.workflow }}"
16+
category: "ideas"
1617
max: 3
1718
add-comment:
1819
target: "*" # all issues and PRs
@@ -36,7 +37,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
3637

3738
1. Backlog research (if not done before).
3839

39-
1a. Check carefully if an open issue with label "daily-backlog-burner-plan" exists using `search_issues`. If it does, read the issue and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If the issue doesn't exist, follow the steps below to create it:
40+
1a. Check carefully if an open discussion with title starting with "${{ github.workflow }}" exists using `search_discussions`. If it does, read the discussion and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If the discussion doesn't exist, follow the steps below to create it:
4041

4142
1b. Do some deep research into the backlog in this repo.
4243
- Read existing documentation, open issues, open pull requests, project files, dev guides in the repository.
@@ -49,17 +50,17 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
4950
- Identify any patterns or common themes among the issues, such as recurring bugs, feature requests, or areas of improvement.
5051
- Look for any issues that may be duplicates or closely related to each other, and consider whether they can be consolidated or linked together.
5152

52-
1c. Use this research to create an issue with title "${{ github.workflow }} - Research, Roadmap and Plan" and label "daily-backlog-burner-plan". This issue should be a comprehensive plan for dealing with the backlog in this repo, and summarize your findings from the backlog research, including any patterns or themes you identified, and your recommendations for addressing the backlog. Then exit this entire workflow.
53+
1c. Use this research to create a discussion with title "${{ github.workflow }} - Research, Roadmap and Plan". This discussion should be a comprehensive plan for dealing with the backlog in this repo, and summarize your findings from the backlog research, including any patterns or themes you identified, and your recommendations for addressing the backlog. Then exit this entire workflow.
5354

5455
2. Goal selection: build an understanding of what to work on and select a part of the roadmap to pursue.
5556

5657
2a. You can now assume the repository is in a state where the steps in `.github/actions/daily-progress/build-steps/action.yml` have been run and is ready for you to work on features.
5758

58-
2b. Read the plan in the issue mentioned earlier, along with comments.
59+
2b. Read the plan in the discussion mentioned earlier, along with comments.
5960

6061
2c. Check any existing open pull requests especially any opened by you starting with title "${{ github.workflow }}".
6162

62-
2d. If you think the plan is inadequate, and needs a refresh, update the planning issue by rewriting the actual body of the issue, ensuring you take into account any comments from maintainers. Add one single comment to the issue saying nothing but the plan has been updated with a one sentence explanation about why. Do not add comments to the issue, just update the body. Then continue to step 3e.
63+
2d. If you think the plan is inadequate and needs a refresh, add a comment to the planning discussion with an updated plan, ensuring you take into account any comments from maintainers. Explain in the comment why the plan has been updated. Then continue to step 3e.
6364

6465
2e. Select a goal to pursue from the plan. Ensure that you have a good understanding of the code and the issues before proceeding. Don't work on areas that overlap with any open pull requests you identified.
6566

@@ -83,10 +84,10 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
8384

8485
4c. After creation, check the pull request to ensure it is correct, includes all expected files, and doesn't include any unwanted files or changes. Make any necessary corrections by pushing further commits to the branch.
8586

86-
5. At the end of your work, add a very, very brief comment (at most two-sentences) to the issue from step 1a, saying you have worked on the particular goal, linking to any pull request you created, and indicating whether you made any progress or not.
87+
5. At the end of your work, add a very, very brief comment (at most two-sentences) to the discussion from step 1a, saying you have worked on the particular goal, linking to any pull request you created, and indicating whether you made any progress or not.
8788

8889
6. If you encounter any unexpected failures or have questions, add
89-
comments to the pull request or issue to seek clarification or assistance.
90+
comments to the pull request or discussion to seek clarification or assistance.
9091

9192
<!-- You can customize prompting and tools in .github/workflows/agentics/daily-progress.config -->
9293
{{#import? agentics/daily-progress.config.md}}

workflows/daily-dependency-updates.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ network: defaults
1313
safe-outputs:
1414
create-pull-request:
1515
draft: true
16-
create-issue:
16+
create-discussion:
1717
title-prefix: "${{ github.workflow }}"
18+
category: "announcements"
1819

1920
# Configure bash build commands here, or in .github/workflows/agentics/daily-dependency-updates.config.md
2021
#
@@ -37,7 +38,7 @@ Your name is "${{ github.workflow }}". Your job is to act as an agentic coder fo
3738

3839
2. Create a new PR with title "${{ github.workflow }}". Try to bundle as many dependency updates as possible into one PR. Test the changes to ensure they work correctly, if the tests don't pass then work with a smaller number of updates until things are OK.
3940

40-
> NOTE: If you didn't make progress on particular dependency updates, create one overall issue saying what you've tried, ask for clarification if necessary, and add a link to a new branch containing any investigations you tried.
41+
> NOTE: If you didn't make progress on particular dependency updates, create one overall discussion saying what you've tried, ask for clarification if necessary, and add a link to a new branch containing any investigations you tried.
4142
4243
<!-- You can customize prompting and tools in .github/workflows/agentics/daily-dependency-updates.config -->
4344
{{#import? agentics/daily-dependency-updates.config.md}}

workflows/daily-perf-improver.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ permissions: read-all
1313
network: defaults
1414

1515
safe-outputs:
16-
create-issue:
16+
create-discussion:
1717
title-prefix: "${{ github.workflow }}"
18+
category: "ideas"
1819
max: 5
1920
add-comment:
2021
target: "*" # can add a comment to any one single issue or pull request
@@ -59,7 +60,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
5960

6061
1. Performance research (if not done before).
6162

62-
1a. Check if an open issue with label "daily-perf-improver-plan" exists using `search_issues`. If it does, read the issue and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If the issue doesn't exist, follow the steps below to create it:
63+
1a. Check if an open discussion with title starting with "${{ github.workflow }}" exists using `search_discussions`. If it does, read the discussion and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If the discussion doesn't exist, follow the steps below to create it:
6364

6465
1b. Do some deep research into performance matters in this repo.
6566
- How is performance testing is done in the repo?
@@ -87,7 +88,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
8788
Consider perf engineering fundamentals:
8889
- You want to get to a zone where the engineers can run commands to get numbers towards some performance goal - with commands running reliably within 1min or so - and it can "see" the code paths associated with that. If you can achieve that, your engineers will be very good at finding low-hanging fruit to work towards the performance goals.
8990

90-
1b. Use this research to create an issue with title "${{ github.workflow }} - Research and Plan" and label "daily-perf-improver-plan", then exit this entire workflow.
91+
1b. Use this research to create a discussion with title "${{ github.workflow }} - Research and Plan", then exit this entire workflow.
9192

9293
2. Build steps inference and configuration (if not done before)
9394

@@ -107,11 +108,11 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
107108

108109
3a. You can now assume the repository is in a state where the steps in `.github/actions/daily-perf-improver/build-steps/action.yml` have been run and is ready for performance testing, running micro-benchmarks etc. Read this file to understand what has been done. Read any output files such as `build-steps.log` to understand what has been done. If the build steps failed, work out what needs to be fixed in `.github/actions/daily-perf-improver/build-steps/action.yml` and make a pull request for those fixes and exit the entire workflow.
109110

110-
3b. Read the plan in the issue mentioned earlier, along with comments.
111+
3b. Read the plan in the discussion mentioned earlier, along with comments.
111112

112113
3c. Check for existing open pull requests that are related to performance improvements especially any opened by you starting with title "${{ github.workflow }}". Don't repeat work from any open pull requests.
113114

114-
3d. If you think the plan is inadequate, and needs a refresh, update the planning issue by rewriting the actual body of the issue, ensuring you take into account any comments from maintainers. Add one single comment to the issue saying nothing but the plan has been updated with a one sentence explanation about why. Do not add comments to the issue, just update the body. Then continue to step 3e.
115+
3d. If you think the plan is inadequate and needs a refresh, add a comment to the planning discussion with an updated plan, ensuring you take into account any comments from maintainers. Explain in the comment why the plan has been updated. Then continue to step 3e.
115116

116117
3e. Select a performance improvement goal to pursue from the plan. Ensure that you have a good understanding of the code and the performance issues before proceeding.
117118

@@ -170,7 +171,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
170171

171172
5d. After creation, check the pull request to ensure it is correct, includes all expected files, and doesn't include any unwanted files or changes. Make any necessary corrections by pushing further commits to the branch.
172173

173-
6. At the end of your work, add a very, very brief comment (at most two-sentences) to the issue from step 1a, saying you have worked on the particular goal, linking to any pull request you created, and indicating whether you made any progress or not.
174+
6. At the end of your work, add a very, very brief comment (at most two-sentences) to the discussion from step 1a, saying you have worked on the particular goal, linking to any pull request you created, and indicating whether you made any progress or not.
174175

175176
<!-- You can customize prompting and tools in .github/workflows/agentics/daily-perf-improver.config -->
176177
{{#import? agentics/daily-perf-improver.config.md}}

workflows/daily-plan.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ permissions: read-all
1313
network: defaults
1414

1515
safe-outputs:
16-
create-issue: # needed to create the project plan issue
16+
create-discussion: # needed to create the project plan discussion
1717
title-prefix: "${{ github.workflow }}"
18-
update-issue: # needed to update the project plan issue if it already exists
19-
target: "*" # can update one single issue
20-
body: # can update the issue body only
18+
category: "announcements"
2119

2220
tools:
2321
web-fetch:
@@ -34,21 +32,21 @@ Your job is to act as a planner for the GitHub repository ${{ github.repository
3432

3533
1. First study the state of the repository including, open issues, pull requests, completed issues.
3634

37-
1a. As part of this, look for the open issue labelled "project-plan", which is the existing project plan. Read the plan, and any comments on the plan. If no issue is labelled "project-plan" ignore this step.
35+
1a. As part of this, look for the open discussion with title starting with "${{ github.workflow }}", which is the existing project plan. Read the plan, and any comments on the plan. If no such discussion exists, ignore this step.
3836

3937
1b. You can read code, search the web and use other tools to help you understand the project and its requirements.
4038

4139
2. Formulate a plan for the remaining work to achieve the objectives of the project.
4240

4341
2a. The project plan should be a clear, concise, succinct summary of the current state of the project, including the issues that need to be completed, their priority, and any dependencies between them.
4442

45-
2b. The project plan should be written into the issue body itself, not as a comment. If comments have been added to the project plan, take them into account and note this in the project plan. Never add comments to the project plan issue.
43+
2b. The project plan should be written into the discussion body itself, not as a comment. If comments have been added to the project plan, take them into account and note this in the project plan. Never add comments to the project plan discussion.
4644

4745
2c. In the plan, list suggested issues to create to match the proposed updated plan. Don't create any issues, just list the suggestions. Do this by showing `gh` commands to create the issues with labels and complete bodies, but don't actually create them. Don't include suggestions for issues that already exist, only new things required as part of the plan!
4846

49-
3. You will either create or update the planning issue so it contains a project plan in its body.
47+
3. Create a new planning discussion with the project plan in its body.
5048

51-
3a. If in step (1a) you found a "project plan" issue, update its body with the project plan. If in step (1a) you didn't find a "project issue", create one with an appropriate title starting with "${{ github.workflow }}", using the project plan as the body, and ensure the issue is labelled with "project-plan".
49+
3a. Create a discussion with an appropriate title starting with "${{ github.workflow }}" and the current date (e.g., "Daily Plan - 2025-10-10"), using the project plan as the body.
5250

5351

5452
<!-- You can customize prompting and tools in .github/workflows/agentics/daily-plan.config -->

0 commit comments

Comments
 (0)