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

Ensure is[Status]PR only matches PRs and not issues #136

Merged
merged 1 commit into from
Jul 24, 2022
Merged

Conversation

fregante
Copy link
Member

Reverts this PR and instead ensures that isClosedPR, isOpenPR, etc only match PRs:

@fregante fregante requested a review from yakov116 July 24, 2022 06:53
@netlify
Copy link

netlify bot commented Jul 24, 2022

Deploy Preview for preview-for-github-url-detection ready!

Name Link
🔨 Latest commit 56946ed
🔍 Latest deploy log https://app.netlify.com/sites/preview-for-github-url-detection/deploys/62dcec6fb61fab0009612d00
😎 Deploy Preview https://deploy-preview-136--preview-for-github-url-detection.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@fregante fregante added the bug Something isn't working label Jul 24, 2022
@yakov116
Copy link
Member

I think we should still have isClosedConversation that includes both pr and issue with a limitation to the conversation tab.

@fregante
Copy link
Member Author

fregante commented Jul 24, 2022

That sounds way too specific:

  • issue or pr
  • conversation only
  • closed only

In its only instance in RGH, it can be replaced by:

asLongAs: [
	isConversation,
],
include: [
	isClosedIssue, // added in this PR
	isClosedPR,
],

we can revisit if we end up having a lot of features on "closed conversations", but probably not anytime soon.

@fregante fregante changed the title Ensure is[Status]PR only matches PRs Ensure is[Status]PR only matches PRs and not issues Jul 24, 2022
@fregante fregante merged commit 1663cd9 into main Jul 24, 2022
@fregante fregante deleted the fix-is-state-pr branch July 24, 2022 11:38
@kidonng
Copy link
Member

kidonng commented Aug 16, 2022

Not sure if this is what inspired this PR, but it seems issues may (already?) have a "Draft" status as well: github/roadmap#289

(This page stayed in my bookmark for a month because I forgot to post it😅)

@fregante
Copy link
Member Author

It affected open/close states too because the select was just [title="Status: Open"] and [title="Status: Closed"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

None yet

3 participants