Skip to content

Files

Latest commit

 

History

History
109 lines (88 loc) · 3.4 KB

README.md

File metadata and controls

109 lines (88 loc) · 3.4 KB

🗂️ Active projects

⚠️ This plugin requires a personal token with public_repo scope.

The projects plugin displays the progress of your profile projects.

Because of GitHub REST API limitation, provided token requires public_repo scope to access projects informations.

Note that by default, projects have progress tracking disabled. To enable it, open the ≡ Menu and edit the project to opt-in to Track project progress (it can be a bit confusing since it's actually not in the project settings).

Enable "Track project progress"

💬 Create a personal project on GitHub

On your profile, select the Projects tab: Create a new project

Fill the informations and set visibility to public: Configure project

💬 Use repositories projects

It is possible to display projects related to repositories along with personal projects.

To do so, open your repository project and retrieve the last URL endpoint, in the format :user/:repository/projects/:project_id (for example, lowlighter/metrics/projects/1) and add it in the plugin_projects_repositories option. Enable Track project progress in the project settings to display a progress bar in generated metrics.

Add a repository project

➡️ Available options

TypeDescription
plugin_projects Display active projects
type: boolean
default: no
plugin_projects_limit Maximum number of projects to display
type: number (0 ≤ 𝑥 ≤ 100)
default: 4
plugin_projects_repositories List of repository project identifiers to disaplay
type: array (comma-separated)
plugin_projects_descriptions Display projects descriptions
type: boolean
default: no

→ Full specification

ℹ️ Examples workflows

name: Project from a repository
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.projects.svg
  token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
  base: ''
  plugin_projects: 'yes'
  plugin_projects_repositories: lowlighter/metrics/projects/1
  plugin_projects_descriptions: 'yes'