[GitHub Action] Automatically open a PR for accepted guideline issues#122
Conversation
✅ Deploy Preview for scrc-coding-guidelines ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
PLeVasseur
left a comment
There was a problem hiding this comment.
Hey @x0rw thanks for taking this on. I haven't reviewed it in detail yet.
Noticed that you could use an existing label tho 👍
By the way, I see the build is failing -- is that intentional / expected?
I'd like to start reviewing once the build passes.
|
Hi @PLeVasseur. |
|
Also, let me know when to remove those json test issues because i picked them randomly from my repo. |
|
Hey @x0rw -- could you rebase? @darkwisebear recently update the spec lock file. |
34a4740 to
2d60b33
Compare
|
Could you help me become less ignorant? 😅 Is it possible to enable anyone to try to auto-rebase? Is it this the Automatic Rebase action or something else? (that action looks kinda nice...) |
Hey @PLeVasseur 😄 |
|
@PLeVasseur, |
PLeVasseur
left a comment
There was a problem hiding this comment.
Hey @x0rw -- sorry for the long delay 😅 I'm back from my "workation" in Japan and jumping back into reviews.
Bottom-line: I really like the concept and how you executed it.
Summary of feedback: As you can see from some of the comments I left, there's some refactoring that needs to be done to allow for easier maintenance in the future between both generate-guideline-templates.py and auto-pr-helper.py. Hope the rationale makes sense! 🙏
36406c5 to
b5c4829
Compare
|
About testing the auto-pr script, I went with snapshot testing approach, i compare the generated .rst template from issue json with the expected .rst result, |
PLeVasseur
left a comment
There was a problem hiding this comment.
Thanks for taking on the refactoring @x0rw! I've suggested some bits here that I think could help. Could you take a look?
|
Hi @x0rw -- could you rebase? I think this looks solid enough to merge then. 👍 |
test auto-pr template 2 test auto-pr template 3 test auto-pr template 4 test auto-pr template 5 test auto-pr template 6 test auto-pr template 7 test auto-pr template 8 test auto-pr template 9
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
add snapshot testing and their runner renamed generate-guideline-templates.py to generate_guideline_templates.py general refactor
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
This workflow only triggers when the auto-pr script or the snapshot test directory changes
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
Co-authored-by: Pete LeVasseur <plevasseur@gmail.com>
|
Hey @PLeVasseur, I'm testing ways to convert markdown directly into .rst format so that issue #156 can be transformed, with links, tables, highlights, bullet points without compromising readability in the issue form. |
c1ebb63 to
9641978
Compare
|
Hi @PLeVasseur, |
22aac67

Hey 👋.
This PR adds a workflow that automatically opens a PR for the accepted guidelines marked by 'accepted' label,
The script extracts the marked issue and parses it into a proper guideline rst file and appends this content into the appropriate chapter(eg. if the chapter is
concurrencyit will append the gl tosrc/coding-guidelines/concurreny.rst, note: the chapters title in here should be directly mapped to the names in coding-guidelines/ directory).Tasks:
issuefrom stdin and turn it into our guidelines' .rst formatgithub.event.issuevariableHow to test? :
Current Limitations
Markdown headings (e.g.,
##) cannot be used inside content blocks in the issue template that are converted to reStructuredText (.rst) directives.Use bold text or other alternatives for emphasis or headings within these blocks.
Why?