Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 2 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix issue 2 #3

wants to merge 2 commits into from

Conversation

hutchgrant
Copy link
Member

Related Issue

Resolves #2

Summary of Changes

  • adds labelFilter parameter which is then added to the github API query to filter issues based on labels

@thescientist13 thescientist13 self-requested a review January 1, 2019 20:42
Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

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

Looks good, I think this will just require a bit of documentation from myself in the wiki and making sure API Gateway forwards query strings.

const midFix = `${projectName}/${repositoryName}`;
const labelFix = labelFilter ? `?labels=${labelFilter}` : '';
Copy link
Member

Choose a reason for hiding this comment

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

midFix was just something I used since the URL segment was neither at the beginning or the end.

For something like query parameters, I would probably consider calling it something like labelsQueryParams. If we add additional query parameters, likely we'll want to keep the addition of the ? part programmatic and not specific to the actual key / value string.

@thescientist13 thescientist13 self-assigned this Jan 1, 2019
@thescientist13 thescientist13 added the enhancement New feature or request label Jan 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As a developer, I would like the ability to filter issues by label
2 participants