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

Detect merged/closed PR #137

Closed
gibfahn opened this issue Jan 4, 2018 · 6 comments
Closed

Detect merged/closed PR #137

gibfahn opened this issue Jan 4, 2018 · 6 comments
Assignees

Comments

@gibfahn
Copy link
Member

gibfahn commented Jan 4, 2018

Currently if you run get-metadata on a closed PR, you don't get an obvious indication that it's closed.

▶▶▶ get-metadata 17899                                                                                                                                                                                                                ~/wrk/com/node-core-utils (xdg-config✦)
✔  Done loading data for nodejs/node/pull/17899
----------------------------------- PR info ------------------------------------
Title   doc: remove x86 from os.arch() options #17899
Author  gibfahn
Commits 1
Branch  gibfahn:process-arch -> nodejs:master
Labels  doc
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/17899
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
--------------------------------------------------------------------------------
✔  Requested Changes: 0
✔  Approvals: 7, 3 from TSC (jasnell, cjihrig, danbev)
⚠  Commits were pushed since the last review:
⚠  - doc: remove x86 from os.arch() options
ℹ  Last Full CI on 2018-01-03T22:59:42Z: https://ci.nodejs.org/job/node-test-commit/15215/
⚠  Commits were pushed after the last Full CI run:
⚠  - doc: remove x86 from os.arch() options

It should probably be made clear that the PR is closed.

@tniessen
Copy link
Member

tniessen commented Jan 4, 2018

Would a warning suffice or should this be an error?

@gibfahn
Copy link
Member Author

gibfahn commented Jan 4, 2018

Would a warning suffice or should this be an error?

I'm not sure, I was thinking that a non-zero exit code would be useful if you were scripting this, but I haven't actually scripted it so I'm not sure...

I was also thinking that maybe it shouldn't generate metadata, but again, there may be use-cases where you actually want to get metadata for closed PRs, so IDK about that either.

Basically IDK, that's why I opened this as an issue, to see what people think 😁 .

Maybe just a big 🔴 - PR is closed (Merged) would be adequate.

@joyeecheung
Copy link
Member

It's hard to tell if it's actually merged given the way we land things, but a warning about the PR being closed is definitely doable.

@joyeecheung
Copy link
Member

...oh right, we can potentially do a git log and grep for PR-URLs.

@gibfahn
Copy link
Member Author

gibfahn commented Jan 4, 2018

We can at least tell if it's merged if it's a collaborator's PR (e.g. nodejs/node#17899).

Alternatively maybe look for a landed in comment.

@priyank-p
Copy link
Contributor

We can check and tell if PR is closed: landed by collaborator or merged: landed by the collaborator who open a PR.

I was thinking a warning will be suffice since the metadata would be generated and non-zero.

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

No branches or pull requests

4 participants