gitcoinco / gitcoinco/web

Import from Github

Open
#10,360 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

**User Story:**
As a funder
I want to be able to import an issue from Github
So that i dont have to duplicate work and have issues in two places

**Acceptance Criteria**

**Form initation - Github Issue URL**
GIVEN I am creating a bounty and I am on the first step
AND i have successfully filled out all required fields
WHEN I click the next button on the wizard
AND i click the import from github button
THEN a text box will appear for the user to enter a github issue URL

**Form Initiation - Loading Github Isue**
GIVEN i am creating a bounty that is tied to a github issue
WHEN i enter a existing github issue url
THEN the title and description fields will be shown with data imported github based on the issue
AND the title and and description fields will be disabled from editing
AND the remaining fields will be editable on this step

**Edit Issue on Github**
GIVEN i am creating a bounty that is tied to a github issue
WHEN i click the "edit on github" link
THEN a new Github tab will open with the in focus issue loaded

**Resynch with Giithub**
GIVEN i am creating a bounty that is tied to a github issue
WHEN i click the "resynch w/ github" link
THEN a call will be made to Github to fetch the latest version of the entered github issue
AND spinner animation will be used until the call is complete

**Switching back to a custom issue**
GIVEN i am creating a bounty that is tied to a github issue
WHEN i switch the bounty from a github issue to a Custom issue
THEN the github issue url will disappear
AND the title and description fields will become editable
AND all existing text will persist on the form

**Product & Design Links:**
https://www.figma.com/file/8AFLrc4dx9xnMXUkWOAaAR/Existing-Bounties-Updates?node-id=196%3A986

**Notes/Assumptions:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.