Skip to content
valery-vitkoPublic

About

PivotalTracker Google Chrome extension

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

Links to Jira

Google Chrome extension for GitHub / PlanITpoker workflows:

  • Jira links — highlights Jira issue IDs (and Pivotal Tracker story numbers) as clickable links.
  • GitHub check suppression — ignores chosen CI checks by name and repaints the red commit-status ✗ as a green ✓ or yellow ⚠ when only ignored checks fail (purely cosmetic).

Supported web pages:

  • GitHub pull request, commit, commits-list, and repository pages
  • PlanITpoker (https://*.planitpoker.com/board/)

Install from Chrome Web Store.

How to install from source code.

Jira routing

Jira links point at https://<tenant>.atlassian.net, and a single browser profile is often used across multiple orgs. Instead of one Jira tenant name, the extension keeps an ordered routing table of URL pattern -> Jira tenant rules, edited on the Options page (add, delete, and reorder rows).

On each page, the tenant used is taken from the first rule whose pattern matches the page URL (window.location.href). If no rule matches, no Jira links are created (Pivotal Tracker links are unaffected).

Pattern syntax — each pattern is a regex tested against the full page URL:

  • A bare string is the regex source, with no flags, e.g. .* (catch-all), Steinpilz, or valery-vitko/ptlinks.
  • /body/flags is the literal form, e.g. /steinpilz/i (case-insensitive).
  • Invalid regex rows are ignored, and flagged in the Options UI.

The Options page also has a Test a URL box: paste a URL and it shows which rule wins and the resolved https://<tenant>.atlassian.net link, so you can check the routing table before saving.

Existing users are migrated automatically — a previously configured single Jira tenant name becomes a .* catch-all route, so nothing breaks after upgrading.

GitHub check suppression

GitHub's commit CI rollup shows a red ✗ if any check fails — even a check you have deliberately chosen to tolerate (e.g. a security scan allowed to fail). This feature ignores such checks by name and, when the only failing checks are ignored ones, repaints the summary icon as a green ✓ or a yellow ⚠ with a tooltip naming what was suppressed.

It is purely cosmetic — it never changes GitHub's real status, branch protection, or merge eligibility. A genuinely broken build still shows red.

Configure it on the extension's Options page:

  • Enabled — master switch for the feature.
  • Ignore these checks — one pattern per line. Plain text is a case-insensitive substring match against the full check label; wrap in /…/ for a regex (e.g. /trivy.*scan/i).
  • Replacement icon — green ✓ or yellow ⚠ (the warning is recommended: it signals "passed except suppressed" rather than a fully clean run).
  • Debug logging — logs each scraped check and decision to the console (prefixed [ptlinks:check-suppressor]); useful if GitHub changes its markup.

Works on pull request, commit, commits-list, and repository pages.

Development

Install dependencies

npm install

Run tests

npm test

Publishing

Quick publish (build + tag)

./scripts/publish.ps1

The script runs tests, builds a ZIP, syncs version into package.json, creates a git tag, and optionally uploads to the Chrome Web Store.

Chrome Web Store CLI setup (one-time)

To enable automated upload/publish from the CLI, follow these steps:

1. Create a Google Cloud project

  1. Go to Google Cloud Console
  2. Create a new project (any name, e.g. "CWS Publishing")
  3. Go to APIs & Services > Library
  4. Search for Chrome Web Store API and enable it

2. Create OAuth2 credentials

  1. Go to APIs & Services > Credentials
  2. Click Create Credentials > OAuth client ID
  3. Application type: Desktop app
  4. Note the Client ID and Client Secret

3. Get a refresh token

  1. Go to APIs & Services > OAuth consent screen
  2. Set up the consent screen (External is fine for personal use; add yourself as a test user)
  3. Run the interactive script:
./scripts/get-refresh-token.ps1

It will prompt for your Client ID/Secret (pre-filled from .env if available), open the browser for authorization, capture the redirect automatically, exchange the code for a refresh token, and offer to save everything to .env.local.

Tip: while the OAuth app is in Testing, Google expires refresh tokens after 7 days (publishing then fails with invalid_grant). To stop that, move the app to production — see docs/switch-oauth-to-production.md.

4. Set environment variables

Variable Value
EXTENSION_ID Your extension ID from the Developer Dashboard (e.g. gkioloikgbfkgonlmmhkgchmoilcbglb)
CLIENT_ID OAuth2 Client ID from step 2
CLIENT_SECRET OAuth2 Client Secret from step 2
REFRESH_TOKEN Refresh token from step 3

Copy .env to .env.local and fill in your real values:

cp .env .env.local

scripts/publish.ps1 loads .env first (committed, contains placeholders), then .env.local (git-ignored, contains secrets). Environment variables already set in the shell take precedence over both files.

5. Publish

Once set, ./scripts/publish.ps1 will automatically upload the ZIP and prompt to publish.

Manual publish (without CLI setup)

  1. Run ./scripts/publish.ps1 to build the ZIP and create a git tag
  2. Go to the Chrome Web Store Developer Dashboard
  3. Upload the ZIP from webstore/
  4. Push the git tag: git push origin v<version>

About

PivotalTracker Google Chrome extension

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages