Skip to content

Show warning when user attempts to disable PR edits - #1770

Merged
sindresorhus merged 18 commits into
refined-github:masterfrom
CEOehis:allow-edits-warn
Feb 21, 2019
Merged

sindresorhus merged 18 commits into
refined-github:masterfrom
CEOehis:allow-edits-warn

Conversation

@CEOehis

@CEOehis CEOehis commented Feb 11, 2019

Copy link
Copy Markdown
Contributor

closes #1665

- refactor conditionals
@fregante

fregante commented Feb 13, 2019 •

Copy link
Copy Markdown
Member

I think your last force push undid some of my changes. --force isn't necessary on PRs since they'll be squashed anyway.

@CEOehis

CEOehis commented Feb 13, 2019

Copy link
Copy Markdown
Contributor Author

I think your last force push undid some of my changes. --force isn't necessary on PRs since they'll be squashed anyway.

Noted. The force push was to fix a Travis linting issue though.

@sindresorhus sindresorhus changed the title show warning when user attempts to disable edits Show warning when user attempts to disable PR edits Feb 14, 2019
@fregante fregante self-assigned this Feb 14, 2019
@fregante

fregante commented Feb 14, 2019 •

Copy link
Copy Markdown
Member

@sindresorhus suggestions for the copy?

screenshot 2019-02-15 at 03 12 29

@fregante fregante removed their assignment Feb 15, 2019
@sindresorhus

Copy link
Copy Markdown
Member

@bfred-it Something like this?

Disabling this prevents the maintainers from doing important changes to your pull request which can result in it taking longer to merge or risk it not being merged at all.

@fregante

Copy link
Copy Markdown
Member

@bfred-it Something like this?

Disabling this prevents the maintainers from doing important changes to your pull request which can result in it taking longer to merge or risk it not being merged at all.

A bit too formal and a single long sentence. How about:

Maintainers want change. Maintainers can't change. Maintainers be angry. Maintainers block your PR. Don't give anger to maintainers 🐻

Or:

Maintainers may require changes. It’s easier and faster to allow them to make direct changes before merging.

Comment thread source/content.ts Resolved
@CEOehis

CEOehis commented Feb 20, 2019

Copy link
Copy Markdown
Contributor Author

Or:

Maintainers may require changes. It’s easier and faster to allow them to make direct changes before merging.

This one sounds better.

@sindresorhus

Copy link
Copy Markdown
Member

Maintainers may require changes. It’s easier and faster to allow them to make direct changes before merging.

👍

@fregante
fregante self-requested a review February 21, 2019 05:36
@fregante

fregante commented Feb 21, 2019 •

Copy link
Copy Markdown
Member

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@CEOehis I'm trying to push but, uhm... your checkbox was unchecked! It's easier and faster to allow me to make direct changes before merging. 🤣

@CEOehis

CEOehis commented Feb 21, 2019

Copy link
Copy Markdown
Contributor Author

@CEOehis I'm trying to push but, uhm... your checkbox was unchecked! It's easier and faster to allow me to make direct changes before merging. 🤣

🤣 I'm sorry. I forgot to toggle it back when I was testing the feature on the sidebar. I've reenabled edits @bfred-it

@sindresorhus
sindresorhus merged commit 56a0749 into refined-github:master Feb 21, 2019
@sindresorhus

Copy link
Copy Markdown
Member

Looks good 👌

@busches

busches commented Mar 5, 2019

Copy link
Copy Markdown
Member

Getting an error when on any PR, not just opening PRs:

content.js:185 TypeError: Cannot read property 'checked' of null
    at update (content.js:6423)
    at init (content.js:6429)
    at run (content.js:180)
    at load (content.js:232)
    at onAjaxedPagesRaw (content.js:137)
    at onAjaxedPagesRaw (content.js:132)

We need to check if the checkbox is there and likely shortcut if it doesn't exist.

@fregante

fregante commented Mar 6, 2019

Copy link
Copy Markdown
Member

Reported in #1811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Show warning if PR submitter tries to uncheck Allow edits from maintainers

5 participants