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

PR Owners can change their minds #77

Closed
wants to merge 3 commits into from

Conversation

JordanReiter
Copy link

If a PR owner changes their mind & votes against the pull request, that vote should count.
Also I went ahead and switched to a gender-neutral pronoun.

If a PR owner changes their mind & votes against the pull request, that vote should count.
Also I went ahead and switched to a gender-neutral pronoun.
Copy link
Contributor

@pchauncey pchauncey left a comment

Choose a reason for hiding this comment

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

Please also update the README.md to reflect this change?

votes[pr_owner] = 1
# by virtue of creating the PR, the owner casts their vote as 1
# unless they later vote against it, in which case we respect that
if votes.get('pr_owner') != -1:
Copy link

Choose a reason for hiding this comment

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

this is incorrect, should be votes.get(pr_owner)

Copy link

@Ajedi32 Ajedi32 May 23, 2017

Choose a reason for hiding this comment

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

Thanks, I was just about to point that out.

This line in its current form actually just allows the GitHub user named "pr_owner" to override the actual PR owner's vote.

Also, I feel it's worth pointing out that as of the moment of this review, there are 23 other people who voted for this PR without noticing this mistake.

Copy link
Author

Choose a reason for hiding this comment

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

OMG This thing needs to have tests… that's going to be interesting.

@Ajedi32
Copy link

Ajedi32 commented May 23, 2017

Can't the PR owner already just veto the PR if they choose by closing it themselves?

@JordanReiter
Copy link
Author

@Ajedi32 probably but they may as well still have the option. Maybe they end up with misgivings about the pull request but still want it to be decided by a vote.

@patricknelson
Copy link
Contributor

Related: #82 PR owners can submit code that was not what was voted for and use it as a method to inject unexpected malicious code.

@rudehn
Copy link
Contributor

rudehn commented May 23, 2017

Related #48 somehow got through.

@viktorsec
Copy link
Contributor

@JordanReiter please resolve conflicts

chaosbot added a commit that referenced this pull request May 24, 2017
#138: Allow the owner of a PR to downvote it

Description:
Redo of #77 with merge conflicts fixed.

:ok_woman: PR passed with a vote of 17 for and 14 against, with a
weighted total of 4.6 and a threshold of 1.0.

Vote record:
@aaronduino: 1
@DasSkelett: -1
@ECrownofFire: -1
@Goofybud16: 1
@INightmare: 1
@Kalabasa: -1
@LasaleFamine: -1
@MarHoff: -1
@PlasmaPower: 1
@Redmega: 1
@akilegaspi: 1
@amoffat: -1
@arunoda: 1
@bperson: -1
@crispmark: 1
@demiters: -1
@dylanaraps: 1
@eukaryote31: 1
@hfern: 1
@hongaar: -1
@ike709: 1
@jackcutting: -1
@jblz: -1
@loic-sharma: -1
@matthewc-mps-aust: -1
@pangeacake: 1
@pchauncey: 1
@serhalp: 1
@swaggy: -1
@syrusakbary: 1
@tarunbatra: 1
@chaosbot
Copy link
Collaborator

🙅 This PR has merge conflicts, and hasn't been touched in 55 hours. Closing.

Open a new PR with the merge conflicts fixed to restart voting.

@chaosbot chaosbot closed this May 26, 2017
@patricknelson
Copy link
Contributor

Oh... oh my god... it's conscious and has an attitude. WE'RE DOOMED 🤖

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

Successfully merging this pull request may close these issues.

8 participants