Skip to content

Commit

Permalink
update bugreport component and add some basic badges to actions docs
Browse files Browse the repository at this point in the history
  • Loading branch information
philmillman committed Jan 15, 2025
1 parent d2e9057 commit 023e216
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .dmno/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default defineDmnoService({
extends: GitDataTypes.RepoName,
value: 'dmno',
},
GITHUB_ACTION_REPO_NAME: {
extends: GitDataTypes.RepoName,
value: 'dmno-gh-action',
},
GITHUB_ORG_URL: {
extends: DmnoBaseTypes.url({ allowedDomains: ['github.com'] }),
value: () => `https://github.com/${DMNO_CONFIG.GITHUB_ORG_NAME}`,
Expand All @@ -23,6 +27,11 @@ export default defineDmnoService({
value: () => `${DMNO_CONFIG.GITHUB_ORG_URL}/${DMNO_CONFIG.GITHUB_REPO_NAME}`,
required: true,
},
GITHUB_ACTION_REPO_URL: {
extends: GitDataTypes.PublicRepoUrl,
value: () => `${DMNO_CONFIG.GITHUB_ORG_URL}/${DMNO_CONFIG.GITHUB_ACTION_REPO_NAME}`,
required: true,
},
DISCORD_JOIN_URL: {
extends: 'url',
description: 'Link to discord',
Expand Down
1 change: 1 addition & 0 deletions packages/docs-site/.dmno/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineDmnoService({
},
pick: [
'GITHUB_REPO_URL',
'GITHUB_ACTION_REPO_URL',
'DISCORD_JOIN_URL',
'GENERAL_CONTACT_EMAIL',
'POSTHOG_API_KEY',
Expand Down
8 changes: 4 additions & 4 deletions packages/docs-site/src/components/BugReportLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ interface Props {
| "integrations/nextjs"
| "plugins/1password"
| "plugins/encrypted-vault";
repo?: string;
}
const { label } = Astro.props;
const { label, repo } = Astro.props;
const labels = encodeURIComponent(`${label},bug,triage`);
const titleDefault = encodeURIComponent('[BUG]:')
const titleDefault = encodeURIComponent("[BUG]:");
// https://github.com/dmno-dev/dmno/issues/new?assignees=philmillman&labels=bug%2Ctriage%2Cintegrations%2Fnextjs&projects=&template=bug_report.yml&title=
---

<a
href=`${DMNO_CONFIG.GITHUB_REPO_URL}/issues/new?assignees=philmillman&labels=${labels}&template=bug_report.md&template=bug_report.yml&title=${titleDefault}`
href=`${repo || DMNO_CONFIG.GITHUB_REPO_URL}/issues/new?assignees=philmillman&labels=${labels}&template=bug_report.md&template=bug_report.yml&title=${titleDefault}`
target="_blank"><slot /></a
>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ description: Use DMNO's GitHub Action to reuse your env vars across your GitHub

import BugReportLink from '@/components/BugReportLink.astro';

[![GitHub package.json version](https://img.shields.io/github/package-json/v/dmno-dev/dmno-gh-action?color=green)](https://github.com/dmno-dev/dmno-gh-action)

[![GitHub Marketplace](https://img.shields.io/badge/GitHub%20Marketplace-green)](https://github.com/marketplace/actions/dmno-secrets-and-config)


While DMNO provides everything you need to manage your env vars in your repo, you may want to reuse your env vars across your GitHub Actions workflows. We created a [GitHub Action](https://github.com/marketplace/actions/dmno-secrets-and-config) that makes this easier.

:::tip
Expand Down Expand Up @@ -232,5 +237,5 @@ Make sure:
- You have set any required sensitive [plugin](/docs/plugins/overview/) inputs (e.g., Your 1Password service account token) as [secrets](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions) for your repo or as [environment variables](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-for-github-actions#using-environment-variables-in-your-workflow) in your repo. (See example above.)

:::note
If you run into any issues, feel free to <BugReportLink label='integrations/astro'>report them to us on GitHub</BugReportLink> and try the manual installation steps below.
If you run into any issues, feel free to <BugReportLink label='bug' repo={DMNO_CONFIG.GITHUB_ACTION_REPO_URL}>report them to us on GitHub</BugReportLink> and try the manual installation steps below.
:::

0 comments on commit 023e216

Please sign in to comment.