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

Add pull_requests attribute to Story #139

Merged
merged 2 commits into from
Apr 23, 2021
Merged

Add pull_requests attribute to Story #139

merged 2 commits into from
Apr 23, 2021

Conversation

gobetti
Copy link
Contributor

@gobetti gobetti commented Nov 19, 2020

In order to get it populated, fields: 'pull_requests' is required when
calling the method that retrieves the story(ies) - otherwise it's nil

@gobetti
Copy link
Contributor Author

gobetti commented Nov 19, 2020

read access is enough for my needs but I suppose we could extend the PullRequest class with methods to modify it

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 97.028% when pulling 54ae048 on gobetti:feature/pull_requests into 2c656e6 on dashofcode:master.

@coveralls
Copy link

coveralls commented Nov 19, 2020

Coverage Status

Coverage increased (+0.03%) to 97.023% when pulling 54ae048 on gobetti:feature/pull_requests into 2c656e6 on dashofcode:master.

@irphilli
Copy link
Owner

Good PR and great add. Sorry we haven't gotten to this sooner - we've just taken ownership of this gem and are still getting ramped up.

To make this PR complete, there would be some tests added that exercise reading the pull requests of a story. Do you mind adding some tests to the PR?

gobetti and others added 2 commits April 23, 2021 17:22
In order to get it populated, `fields: 'pull_requests'` is required when
calling the method that retrieves the story(ies) - otherwise it's nil
@codeclimate
Copy link

codeclimate bot commented Apr 23, 2021

Code Climate has analyzed commit 1337312 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 97.5% (0.0% change).

View more on Code Climate.

Copy link
Owner

@irphilli irphilli left a comment

Choose a reason for hiding this comment

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

Added a simple test and will include this in the next release. Thanks again!

@irphilli irphilli merged commit 5343b08 into irphilli:master Apr 23, 2021
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.

3 participants