-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 support for creating project cards from pull requests #2185
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2185 +/- ##
=======================================
Coverage 65.88% 65.88%
=======================================
Files 546 546
Lines 14293 14293
Branches 838 838
=======================================
Hits 9417 9417
Misses 4718 4718
Partials 158 158
|
When the new integration test is run locally it fails on this line when attempting to retrieve the master branch from the newly created repository: The error is:
In debugging I confirmed the repository is created. When I run |
ad75b43
to
ababe4f
Compare
ababe4f
to
477b3ed
Compare
I figured out what I was doing wrong. The tests for cards did not require auto-init, now they do. I also had to update the Additionally, the helper method I was using was incorrect, since it only supported creating Issue cards, so another helper was introduced to keep the test styles consistent with the other tests. I have squashed my commits and pushed. |
@boblangley!!!!! I just came here to make this change!!!! ❤️❤️❤️❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice spot @boblangley - and thanks for adding that test to verify the behaviour works again!
release_notes: Add support for creating project cards from pull requests |
@boblangley @shiftkey there is still something off after this change. The |
To add more context we do this:
Once the card is created on the board is has the wrong |
The I agree this isn't what I would intuitively expect from the API (the GitHub API has lots of weird decisions in it), it does make sense considering how they describe the relationship between PRs and Issues:
Since the |
The v3 GitHub API now supports adding Pull Requests as project cards, which was disabled when support for project cards was initially added to OctoKit. This PR reintroduces support for PRs as cards, including a new integration test.
Plan of Action