You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duties can be executed in different environments (non-exhaustive list):
On (actual) CI
On the local machine
With github metadata (danger pr and danger ci)
Without github metadata (danger local)
(Internal) For testing purposes
Different duties have different implicit assumptions about their
environment right now, but those assumptions are not checked. Clients of
our library have to write those checks themselves if they want to have a
robust dangerfile that works in a variety of scenarios without breaking.
This is error prone for consumers of our API.
We can provide public helpers that check those assumptions and fail if
they aren't met. Users can compose them with duties they write
themselves if they want. We can also use them internally when exporting
our duties to the world. Ex:
src/duties/pr.js:
module.exports={// No changes here. Export uncomposed duties for testing}
Duties can be executed in different environments (non-exhaustive list):
danger pr
anddanger ci
)danger local
)Different duties have different implicit assumptions about their
environment right now, but those assumptions are not checked. Clients of
our library have to write those checks themselves if they want to have a
robust dangerfile that works in a variety of scenarios without breaking.
This is error prone for consumers of our API.
We can provide public helpers that check those assumptions and fail if
they aren't met. Users can compose them with duties they write
themselves if they want. We can also use them internally when exporting
our duties to the world. Ex:
src/duties/pr.js
:src/duties/index.js
:The text was updated successfully, but these errors were encountered: