Repository navigation
Add a shared cross-track maintenance workflow, and let the topic control the pause - #271
exercism-agent[bot] wants to merge 2 commits into
Conversation
…rol the pause Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>
| per_page: 100, | ||
| }); | ||
| const pattern = /^exercises\/[^\/]+\/[^\/]+\/\.(approaches|articles)\//; |
There was a problem hiding this comment.
Can you make the approaches/articles pause-exception something that can be controlled per track? Some tracks may not want this exception. Tracks without any maintainers should not have this exception.
There was a problem hiding this comment.
Done in dbccd0e. The exception now needs the approaches-and-articles-accepted topic on the repo, and unmaintained tracks never get it, even with the topic. Of the 61 track repos with the exception today, the seven unmaintained ones will lose it, and the other 54 will get the topic so they keep it.
There was a problem hiding this comment.
Could this be controlled via a file in the repo vs a repo topic?
There was a problem hiding this comment.
Yes, it could. The workflow would read a file from the repo's default branch, such as a .github/community-contributions.yml with a setting for approaches and articles. That would work like .github/required-checks.yml, which the daily repo settings script already reads.
The trade-offs:
- Who can change it. With a file, track maintainers can change the setting themselves with a PR, and the change is reviewed and kept in the history. Only org admins can change topics, so with a topic, maintainers have to ask someone.
- Where it shows. A topic shows on the repo page, and the org can search for it. A file is only visible inside the repo.
- Cost. A file means one more API call on each run, and a rule for what happens if the file is missing or invalid. With a topic, the workflow already has the data, because it reads the topics for the pause.
The same choice applies to the pause itself, which the plan puts in the community-contributions-paused topic.
I can switch the exception to a file if you and the other reviewers prefer that.
There was a problem hiding this comment.
Yeah. It's easier for maintainers to change things when it's a config. The topic is more visible if you know to look for it. If you don't know that we use topics like that, a config may be easier to find.
There was a problem hiding this comment.
I think the idea was that topics are easier to toggle on and off without having to go through PRs/commits
There was a problem hiding this comment.
And if we use topics anyway, I'd say use them all the way
There was a problem hiding this comment.
I'm with @IsaacG here - while I like the idea of topics a lot, I would prefer to be able to toggle them myself as a maintainer, rather than have to ask someone to do it. Yes - PRs for change are a bit of a PITA, but I'd rather do that than have to wait or debate flipping them. Having a file also means having a record of when/how often the change to contribution was made.
I strongly disagree that an entry will be easier to find for someone who doesn't know that they are looking for.
Easier to find is .... well, debatable in all cases. Python has the following in its README, and folx blow right by it:
So either way (topic or not), there likely needs to be multiple layers of notifying folx.
Unmaintained tracks never get the exception. Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>
"euphoria" is correct. The openeuphoria category has no posts. |

Today each repo has its own pause workflow. While a repo is paused, the workflow closes issues and PRs from people outside the Exercism org and points them to the forum. This PR makes the
community-contributions-pausedtopic decide whether a repo is paused, following the discussion in https://forum.exercism.org/t/auditing-community-contribution-workflow-vs-repo-topics/87880. It also adds one shared workflow for every track and tooling repo to call. Once every repo calls it, we can add an org-wide job by changing only this repo.What changes
cross-track-maintenance.yml, a reusable workflow with two jobs. The first job runs the existing cross-track ping when a PR is opened. The second job runs the pause when an issue or PR is opened. The calling workflow in each repo also runs on comments and reviews, so that future jobs can use those events. Because of that, each job checks that the event isopened.community-contributions.ymlnow reads the repo's topics first. If the repo has thecommunity-contributions-pausedtopic, the workflow carries on as today and closes issues and PRs from people outside the org. If the repo doesn't have the topic, the workflow leaves them open.approaches-and-articles-acceptedtopic, and every file in a PR is underexercises/*/*/.approaches/orexercises/*/*/.articles/, the PR stays open. Unmaintained tracks never get the exception, even with the topic, because nobody maintains them to review those PRs. 61 track repos have the exception today, throughpaths-ignorein their calling workflow. Seven of them are unmaintained (cfml, delphi, groovy, objective-c, purescript, reasonml and swift), and the other 54 will get the new topic so they keep the exception.forum_categoryis now optional. If a repo's calling workflow leaves it out, the workflow works out the category from the repo name by removing any-test-runner,-analyzeror-representerending. Calling workflows that already passforum_categorywill keep working.How the PRs fit together
community-contributions-pausedtopic, and the 54 maintained repos with the exception need theapproaches-and-articles-acceptedtopic. The paused topic is already on all of them.cross-track-maintenance.ymland deletes the old ping and pause workflows. We will test this change on a private test repo before opening those PRs.Please merge them in that order.
Forum categories that will change
A few repos pass a forum category that differs from their track name. After they switch to the new calling workflow, their closing comment will link to the category worked out from the repo name.
generic. They will link to their track's own category. The forum has a category for each of these tracks except Harbour, so the Harbour test runner's link will name a category that doesn't exist.support. It will link to theleancategory, which exists.openeuphoria. It will link toeuphoria, which glennj has confirmed is the right category.🤖 Generated with Claude Code