|
17 | 17 |
|
18 | 18 | class GitHubOptionsForm(forms.Form): |
19 | 19 | repo = forms.CharField( |
20 | | - label=_('Repository Name'), |
21 | | - widget=forms.TextInput(attrs={'placeholder': 'e.g. getsentry/sentry'}), |
22 | | - help_text=_('Enter your repository name, including the owner.')) |
| 20 | + label=_('Repository Name'), |
| 21 | + widget=forms.TextInput(attrs={'placeholder': 'e.g. getsentry/sentry'}), |
| 22 | + help_text=_('Enter your repository name, including the owner.')) |
23 | 23 | endpoint = forms.CharField( |
24 | | - label=_('GitHub API Endpoint'), |
25 | | - widget=forms.TextInput(attrs={'placeholder': 'https://api.github.com'}), |
26 | | - initial='https://api.github.com', |
27 | | - help_text=_('Enter the base URL to the GitHub API.')) |
| 24 | + label=_('GitHub API Endpoint'), |
| 25 | + widget=forms.TextInput(attrs={'placeholder': 'https://api.github.com'}), |
| 26 | + initial='https://api.github.com', |
| 27 | + help_text=_('Enter the base URL to the GitHub API.')) |
28 | 28 | github_url = forms.CharField( |
29 | | - label=_('GitHub Base URL'), |
30 | | - widget=forms.TextInput(attrs={'placeholder': 'https://github.com'}), |
31 | | - initial='https://github.com', |
32 | | - help_text=_('Enter the base URL to the GitHub for generating issue links.')) |
| 29 | + label=_('GitHub Base URL'), |
| 30 | + widget=forms.TextInput(attrs={'placeholder': 'https://github.com'}), |
| 31 | + initial='https://github.com', |
| 32 | + help_text=_('Enter the base URL to the GitHub for generating issue links.')) |
33 | 33 |
|
34 | 34 | def clean_endpoint(self): |
35 | 35 | data = self.cleaned_data['endpoint'] |
@@ -75,14 +75,14 @@ def create_issue(self, request, group, form_data, **kwargs): |
75 | 75 | url = '%s/repos/%s/issues' % (endpoint, repo,) |
76 | 76 |
|
77 | 77 | json_data = { |
78 | | - "title": form_data['title'], |
79 | | - "body": form_data['description'], |
80 | | - # "assignee": form_data['asignee'], |
81 | | - # "milestone": 1, |
82 | | - # "labels": [ |
83 | | - # "Label1", |
84 | | - # "Label2" |
85 | | - # ] |
| 78 | + "title": form_data['title'], |
| 79 | + "body": form_data['description'], |
| 80 | + # "assignee": form_data['asignee'], |
| 81 | + # "milestone": 1, |
| 82 | + # "labels": [ |
| 83 | + # "Label1", |
| 84 | + # "Label2" |
| 85 | + # ] |
86 | 86 | } |
87 | 87 |
|
88 | 88 | req_headers = { |
|
0 commit comments