GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - all-contributors/contribution-types: The contribution types supported by All Contributors, as data. ๐Ÿ”ฃ

BranchesTags
Open more actions menu

Latest commit

 

History

133 Commits
133 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
src
src
 
 
.all-contributorsrc
.all-contributorsrc
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
cspell.json
cspell.json
 
 
eslint.config.ts
eslint.config.ts
 
 
knip.config.ts
knip.config.ts
 
 
oxfmt.config.ts
oxfmt.config.ts
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

All Contributors: Contribution Types

The contribution types supported by All Contributors, as data. ๐Ÿ”ฃ

๐Ÿ‘ช All Contributors: 3 ๐Ÿงช Coverage ๐Ÿ“ License: MIT ๐Ÿ“ฆ npm version

Usage

npm i all-contributors-types
import {
  contributionTypes,
  createContributionLink,
  isContributionTypeName,
} from 'all-contributors-types';

contributionTypes.bug;
// { description: "Bug reports", link: "issues", symbol: "๐Ÿ›" }

createContributionLink('bug', {
  login: 'JoshuaKGoldberg',
  projectName: 'contribution-types',
  projectOwner: 'all-contributors',
});
// "https://github.com/all-contributors/contribution-types/issues?q=author%3AJoshuaKGoldberg"

isContributionTypeName('bug'); // true
isContributionTypeName('other'); // false

The data and links are kept in sync with @all-contributors/cli's emoji key.

contributionTypes

Each contribution type, keyed by name, with:

  • description: human-readable description, such as "Bug reports"
  • link (optional): which kind of repository page it links to: "commits", "issues", or "reviews"
  • symbol: emoji, such as "๐Ÿ›"

The ContributionTypeName type is a union of all contribution type names.

createContributionLink

Creates the URL a contribution links to in an All Contributors README table, the same as all-contributors generate. Contribution types without a link get a #type-login anchor.

Options:

  • login (optional): username of the contributor
  • projectName: name of the repository
  • projectOwner: owner of the repository
  • repoHost (optional): base URL of the repository host, if not the default for repoType
  • repoType (optional): "github" (default) or "gitlab"

isContributionTypeName

Type guard for whether a string is a known ContributionTypeName.

Why?

all-contributors/cli#295 Expose contribution-types in separate package tracks a first-party package exposing these utilities and types. In the meantime, this package approximates what all-contributors does.

Development

See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md. Thanks! ๐Ÿ”ฃ

Contributors

Jim Madge
Jim Madge

๐Ÿšง
Josh Goldberg โœจ
Josh Goldberg โœจ

๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ“– ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ“† ๐Ÿ”ง
michael faith
michael faith

๐Ÿšง ๐Ÿ”ง ๐Ÿค” ๐Ÿ“– ๐Ÿš‡ ๐Ÿ’ป โš ๏ธ

About

The contribution types supported by All Contributors, as data. ๐Ÿ”ฃ

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

Generated from JoshuaKGoldberg/create-typescript-app
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.