-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathadd_blurb.html
More file actions
65 lines (61 loc) · 3.76 KB
/
add_blurb.html
File metadata and controls
65 lines (61 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{% extends "base.html" %}
{% block content %}
<div class="row">
<div class="col-md-12">
{% if status == "success" %}
<div class="alert alert-success" role="alert">✅ News file (<a href="{{ commit_url }}">{{ path }}</a>) created for <strong><a href="{{ pr_url }}">GH-{{ pr_number }}</a></strong></div>
<h3>📜🤖 Blurb it again?</h3>
{% else %}
{% if status == "failure" %}
<div class="alert alert-danger" role="alert">❌ Cannot create news file for <strong><a href="{{ pr_url }}">GH-{{ pr_number }}</a></strong>! Make sure you have access to that PR!</div>
<h3>📜🤖 Blurb it again?</h3>
{% endif %}
{% endif %}
<form action="/add_blurb" method="post" accept-charset="utf-8" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="csrf" value="{{ csrf }}">
<div class="mb-3">
<div class="col form-inline">
<label for="issue_number" class="form-inline">GH Issue #</label><input type="text" class="form-control form-inline" pattern="^\d{1,6}$" maxlength="6" placeholder="12345" id="issue_number" name="issue_number" required>
</div>
<div class="col form-inline">
<small id="issue_number-help" class="form-text text-muted">The CPython GitHub issue number.</small>
</div>
</div>
<div class="mb-3">
<div class="col form-inline">
<label for="pr_number" class="form-inline">GH Pull Request #</label><input type="text" class="form-control form-inline" pattern="^\d{1,6}$" maxlength="6" placeholder="12345" id="pr_number" name="pr_number" required>
</div>
<div class="col form-inline">
<small id="gh-help" class="form-text text-muted">The CPython GitHub pull request number.</small>
</div>
</div>
<div class="mb-3">
<div class="col form-inline">
<label for="section" class="form-inline">Choose an option: </label>
<select id="section" name="section" class="form-control form-inline" required>
<option></option>
<option>Security</option>
<option value="Core_and_Builtins">Core and Builtins</option>
<option>Library</option>
<option>Documentation</option>
<option>Tests</option>
<option>Build</option>
<option>Windows</option>
<option>macOS</option>
<option>IDLE</option>
<option value="Tools-Demos">Tools and Demos</option>
<option value="C_API">C API</option>
</select>
</div>
</div>
<div class="mb-3">
<textarea class="form-control" id="news_entry" name="news_entry" rows="10" placeholder="Write your Misc/NEWS entry below.
It should be a simple ReST paragraph.
Don't start with '- Issue #<n>: ' or '- gh-issue-<n>: ' or that sort of stuff." required></textarea>
</div>
<button type="submit" class="btn btn-primary mb-2">📜🤖 blurb it!</button>
</form>
</div>
<div class="col-md-12">Alternatively, you can use <a href="https://devguide.python.org/committing/#what-s-new-and-news-entries">blurb on the command line</a>.</div>
</div>
{% endblock %}