Monorepo for Tangled tangled.org
854
fork

Configure Feed

Select the types of activity you want to include in your feed.

proposal: repo: allow deeper integration of community health files (issue templates, pr templates, contribution guide) #195

open opened by samanthanguyen.me

I would like for there to be a way to integrate "community health files" into the appview, similar to other git forges.

Proposed changes#

This goes in the same line of project management UX in another issue I wrote before. Ideally, I should be able to:

  • Define a markdown file for an issue template/pull request template somewhere in the repository (e.g in .tangled/, docs/, or root directory)
  • When I click the new issue button:
    • If the repository has no issue templates, default to the regular form
    • If it does, then I can choose between different issue templates
  • When I click the new pull request button:
    • If there is a template, automatically prefill the form
  • See links to contribution guide when I'm at the issue creation form (issues/new) + pull request creation form (pulls/new). This text can be a description to the body textarea input
    • This text could be as simple as like "Before submitting, be sure to check the contribution guide." (text can totally be workshopped)
    • GitHub uses: "Remember, contributions to this repository should follow its contributing guidelines and code of conduct."

Notes#

GitHub uses these file patterns:

  • Issue template: .github/ISSUE_TEMPLATE/*.md
  • PR template: /pull_request_template.md, {.github,docs}/PULL_REQUEST_TEMPLATE/*.md
  • Template chooser: .github/ISSUE_TEMPLATE/config.yml
  • Contribution guide: /CONTRIBUTING.md, {.github,docs}/CONTRIBUTING.md

Following same/similar file patterns also makes migrating repositories from another git forge to tangled more seamless. GitLab has slightly different patterns, hough I mentioned GitHub's here since it's the most popular one. Ideally the user doesn't have to move the files anywhere if it's already in the root or docs/ dir, OR they can just rename .github/ to .tangled/

I don't actually think it's that common to have multiple PR templates for a repo though, so we could start with allowing just 1 PR template per repo.

Proposed implementation#

  • Choosing an issue template should be some URL query parameter, like issues/new?template=<template-name>
  • Needs storing the data of community health files somewhere. I'm assuming it would make sense to associate community health files of a repository at an ATProto lexicon level?
[deleted by author]
[deleted by author]
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:smd2mvg2dao4rqnnz6qexdov/sh.tangled.repo.issue/3mcogibwukw22