Skip to content

Add a shared cross-track maintenance workflow, and let the topic control the pause - #271

Draft
exercism-agent[bot] wants to merge 2 commits into
mainfrom
cross-track-maintenance
Draft

exercism-agent[bot] wants to merge 2 commits into
mainfrom
cross-track-maintenance

Conversation

@exercism-agent

@exercism-agent exercism-agent Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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-paused topic 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

  • To give every repo one entry point, this PR adds 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 is opened.
  • Workflows triggered by comments and reviews have write access to the repo. To keep future jobs safe, a comment at the top of the file says that no job may check out or run code from a PR.
  • To let the topic control the pause, community-contributions.yml now reads the repo's topics first. If the repo has the community-contributions-paused topic, 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.
  • To let each track decide whether it accepts approaches and articles from the community, the exception now has its own topic. If a paused repo has the approaches-and-articles-accepted topic, and every file in a PR is under exercises/*/*/.approaches/ or exercises/*/*/.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, through paths-ignore in 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.
  • To let every repo share one calling workflow, forum_category is 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, -analyzer or -representer ending. Calling workflows that already pass forum_category will keep working.

How the PRs fit together

  1. Before this PR merges, every repo with the old pause workflow needs the community-contributions-paused topic, and the 54 maintained repos with the exception need the approaches-and-articles-accepted topic. The paused topic is already on all of them.
  2. This PR adds the shared workflow and lets the topic control the pause.
  3. One PR per track and tooling repo adds cross-track-maintenance.yml and deletes the old ping and pause workflows. We will test this change on a private test repo before opening those PRs.
  4. Sync the cross-track maintenance workflow in place of the cross-track ping workflow org-wide-files#425 makes org-wide-files keep the new file in sync.

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.

  • The forth, gdscript, harbour, idris and pyret test runners pass 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.
  • The lean track repo passes support. It will link to the lean category, which exists.
  • The euphoria track repo passes openeuphoria. It will link to euphoria, which glennj has confirmed is the right category.

🤖 Generated with Claude Code

…rol the pause

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>
per_page: 100,
});
const pattern = /^exercises\/[^\/]+\/[^\/]+\/\.(approaches|articles)\//;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on both.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be controlled via a file in the repo vs a repo topic?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@glennj glennj Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I strongly disagree that an entry will be easier to find for someone who doesn't know that they are looking for.

If we decide not to use the topic, perhaps we need to add an icon to the track's README, like moonscript has:


image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea was that topics are easier to toggle on and off without having to go through PRs/commits

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if we use topics anyway, I'd say use them all the way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

image

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>
@glennj

glennj commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

The euphoria track repo passes openeuphoria. It will link to euphoria. The forum has both categories, so please check which one is right.

"euphoria" is correct. The openeuphoria category has no posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants