Skip to content

feat: add GitHub PR flow for new entries#167

Open
ethanholz wants to merge 1 commit into
mainfrom
fix-add-project-github-pr
Open

feat: add GitHub PR flow for new entries#167
ethanholz wants to merge 1 commit into
mainfrom
fix-add-project-github-pr

Conversation

@ethanholz

Copy link
Copy Markdown
Collaborator

Adds support to the web form to "Open GitHub PR". There is some validation that I will need for a non-OMSF contributor before merging but this is a good first pass.

Assisted-by: Pi:gpt-5.5

Copilot AI review requested due to automatic review settings June 24, 2026 16:58
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been staged at https://7ffebd58.omsf-directory.pages.dev.

It has been updated for commit b12e9ca.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub-assisted submission flow to the “Add New Entry” form so users can generate YAML and jump to GitHub with a prefilled new file path/content, enabling a PR-based contribution workflow.

Changes:

  • Adds an “Entry Type” selector and derives a target YAML path (software/... vs workflows/...).
  • Adds a new action to open GitHub’s “new file” page with prefilled filename/content/commit message.
  • Updates helper copy and UI layout (target path display, button group), and fixes a tags description typo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +246 to +251
<Bubble onclick={() => openGitHubNewFile()} disabled={!isFormValid}
>Open GitHub PR</Bubble
>
<Bubble onclick={() => copyYamlToClipboard()} disabled={!isFormValid}
>Copy YAML</Bubble
>
Comment on lines +134 to +136
<option value="software">Software</option>
<option value="workflows">Workflow</option>
</select>
Comment on lines +100 to +111
function openGitHubNewFile() {
const params = new URLSearchParams({
filename: targetPath,
value: yamlContent,
message: `Add ${formData.name} to OMSF directory`,
});
window.open(
`${GITHUB_NEW_FILE_URL}?${params.toString()}`,
"_blank",
"noopener,noreferrer",
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants