Skip to content

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.

function getIssues(projectName, repositoryName) {
function getIssues(projectName, repositoryName, labelFilter) {
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

3 participants