-
-
Notifications
You must be signed in to change notification settings - Fork 59
Add the labels flowchart to the README. #500
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #500 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 1829 1828 -1
Branches 223 223
=========================================
- Hits 1829 1828 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove the digraph from comments in stage.py
and refer to this one?
Could this also close #184? |
I was thinking about that 🤔 |
I removed the old graph and added a couple of comments. |
# The graph replaces a previous version (written as | ||
# a DOT file) that was included here. | ||
# | ||
# Changes to this file should be reflected in the README. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line necessary?
I'm not even sure the comments are necessary. They are probably relevant now but in 6/12 months time they will probably just become dead weight. I would be okay with removing them as well, but I'll leave that decision to you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one about updating the README is important to ensure the graph in the README keeps matching the code (and in turn the comment in the README ensures the devguide is updated -- assuming people see the comments).
The one about the previous version is not particularly important, but without it someone might end up wasting time looking for that graph they once saw in the code. Having a couple of extra lines for this comment is not a big cost.
This PR adds a flowchart that describe the PR state machine to the
README
.Related issues:
[awaiting ...]
labels are for the bots only. devguide#868The flowchart is described in
bedevere/bedevere/stage.py
Lines 3 to 38 in 428290e
which renders to
For the implementation I used mermaid, which is supported natively by GitHub-flavored Markdown. The new flowchart renders to:
Click to see a screenshot of the flowchart (using the dark theme)