Comments (8)
Right, the actual values used for approval are fully configurable using the methods
section of options
(defaults below):
methods:
comments:
- ":+1:"
- "👍"
github_review: true
You can also only accept GitHub reviews for approval.
from policy-bot.
Even if 👍 is the whole comment, it's definitely not obvious.
It's how I accidentally merged and released a PR that definitely shouldn't have been merged and released, just by trying to ack somebody else's comment.
from policy-bot.
it's a very weird feeling to have to worry about my choice of emoji so as to prevent accidentally releasing code.
from policy-bot.
CC @iamdanfox
from policy-bot.
So as a short-term remediation, we can just explicitly declare the type of approvals we consider valid in the the foundry default policy and override the defaults, maybe it should be a string like ==LGTM==
or ==APPROVED==
so it's hard to misfire?
from policy-bot.
Why allow anything but an actual approval?
from policy-bot.
bumping this issue. now that standardization PRs have been rolled out across the board, it's quite a bit harder to know how and where to make changes to override these defaults.
combined with the fact that our automation has achieved impressive levels of sentience (via eggtimer, bulldozer, canaries, etc), this means that an accidental 👍 comment made by someone could have pretty far-reaching effects.
can we please have the default changed to something safer? I like the ==LGTM==
idea above.
from policy-bot.
Moving internally since this is a discussion on a specific policy file and not the bot itself.
from policy-bot.
Related Issues (20)
- [Question] default reviewer for non matching rules HOT 2
- How to ignore a user's approval in one team when the user is member of two approval teams? HOT 2
- Policy bot stuck on `Commit hash does not have a pushed date` HOT 29
- Trouble loading policy from repo HOT 2
- Allow '=' as comparison operator HOT 1
- Misleading documentation about file path regular expressions HOT 1
- AppID ENV Variable not respected HOT 2
- Confusing behavior with skipped checks. HOT 5
- Add feature to use request more reviewers than required count in case of random-users HOT 1
- [Question] Approval by teams agregator
- Declarative Testing of Policies HOT 5
- Certain merges can lead to ignored commits during evaluation
- Request for Advice on Using Policy Bot in Open Source Projects for Testing, Approving, Merging of PRs HOT 3
- If no rule matches can policy-bot not set a failed status on the PR? HOT 1
- Unable to run policy-bot behind a reverse-prxoy HOT 3
- `common.IsActor()` does not actually use `ctx` and can be simplified.
- Condition for not having specific label(s) HOT 6
- has_successful_status causes review requests while PR has draft status HOT 5
- Status check clarification HOT 2
- Feature Request: Predicate to skip rule if a file was changed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from policy-bot.