-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixed code standared violation fixes #16
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,36 @@ | ||||||||||
--- | ||||||||||
name: Bug report | ||||||||||
about: Create a report to help us improve | ||||||||||
title: "[BUG] " | ||||||||||
labels: bug | ||||||||||
assignees: Sachinbisht27 | ||||||||||
|
||||||||||
--- | ||||||||||
|
||||||||||
**Describe the bug** | ||||||||||
A clear and concise description of what the bug is. | ||||||||||
|
||||||||||
**To Reproduce** | ||||||||||
Steps to reproduce the behavior: | ||||||||||
1. Set webhook payload '...' | ||||||||||
2. Trigger webhook '....' | ||||||||||
3. See the error | ||||||||||
|
||||||||||
**Expected behavior** | ||||||||||
A clear and concise description of what you expected to happen. | ||||||||||
|
||||||||||
**Screenshots** | ||||||||||
If applicable, add screenshots to help explain your problem. | ||||||||||
|
||||||||||
**Environment (please complete the following information):** | ||||||||||
- Webhook Payload ``` here``` | ||||||||||
- Environment - Production/Staging/other | ||||||||||
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct the indentation for unordered list items under the "Environment" section. - - Environment - Production/Staging/other
+ - Environment: Production/Staging/other Committable suggestion
Suggested change
|
||||||||||
|
||||||||||
**Additional context** | ||||||||||
Add any other context about the problem here. | ||||||||||
|
||||||||||
**Acceptance Criteria** | ||||||||||
Add acceptance criteria here. | ||||||||||
|
||||||||||
**Documentation** | ||||||||||
Add whatever documentation will be required here. |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||
--- | ||||
name: Feature request | ||||
about: Suggest an idea for this project | ||||
title: "[FEATURE] " | ||||
labels: enhancement | ||||
assignees: Sachinbisht27 | ||||
|
||||
--- | ||||
|
||||
**Is your feature request related to a problem? Please describe.** | ||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||||
|
||||
**Describe the solution you'd like** | ||||
A clear and concise description of what you want to happen. | ||||
|
||||
**Describe alternatives you've considered** | ||||
A clear and concise description of any alternative solutions or features you've considered. | ||||
|
||||
**Additional context** | ||||
Add any other context or screenshots about the feature request here. | ||||
|
||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are multiple consecutive blank lines. This could be a typographical error and should be reduced to a single blank line to maintain consistency and readability. - Committable suggestion
Suggested change
|
||||
**Acceptance Criteria** | ||||
Add acceptance criteria here. | ||||
|
||||
**Documentation** | ||||
Add whatever documentation will be required here. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,37 @@ | ||||||
<!-- Pull Request Title Guidelines --> | ||||||
<!-- | ||||||
Please follow the format: #<issue_id> <Title> | ||||||
- <issue_id>: Id of the issue for which the PR belongs to (e.g., #1023) | ||||||
- <Title>: A brief summary of the change (e.g., Add user authentication functionality) | ||||||
Example of Pull Request Title: #1023 Add user authentication functionality | ||||||
--> | ||||||
|
||||||
#[ISSUE_ID] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ATX-style heading should have a space after the hash for proper markdown formatting. This ensures the text is correctly rendered as a heading. - #[ISSUE_ID]
+ # [ISSUE_ID] Committable suggestion
Suggested change
|
||||||
<!--- If there is an open issue, please link to the issue here by replacing [ISSUE_ID]--> | ||||||
<!-- Make sure the PR is against the `develop` branch --> | ||||||
|
||||||
### Please complete the following steps and check these boxes before filing your PR: | ||||||
|
||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Multiple consecutive blank lines found. This could be a typographical error and should be reduced to a single blank line to maintain consistency and readability. - Committable suggestion
Suggested change
|
||||||
### Types of changes | ||||||
<!--- What types of changes does your code introduce? --> | ||||||
- [ ] Bug fix (a change which fixes an issue) | ||||||
- [ ] New feature (a change which adds functionality) | ||||||
|
||||||
|
||||||
### Short description of what this resolves: | ||||||
<!--- Describe your changes in detail --> | ||||||
<!--- Why these change required? What problem does it solve? --> | ||||||
|
||||||
|
||||||
### Checklist: | ||||||
<!--- Mark the checkboxes accordingly. --> | ||||||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||||||
- [ ] I have performed a self-review of my own code. | ||||||
- [ ] The code follows the style guidelines of this project. | ||||||
- [ ] The code changes are passing the CI checks | ||||||
- [ ] I have documented my code wherever required. | ||||||
- [ ] The changes requires a change to the documentation. | ||||||
- [ ] I have updated the documentation based on the my changes. | ||||||
- [ ] I have added tests to cover my changes (if not applicable, please state why) | ||||||
- [ ] All new and existing tests are passing. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-json | ||
- id: check-yaml | ||
- id: check-merge-conflict | ||
- id: check-added-large-files | ||
- id: debug-statements | ||
- id: requirements-txt-fixer | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
args: [--line-length=88] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
exclude: __init__.py | ||
args: [--max-line-length=170] | ||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.7.5 | ||
hooks: | ||
- id: docformatter |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -4,52 +4,52 @@ | |||
|
||||
1. Go to the channel on which you want to install the app | ||||
2. Go to the view all members icon on the top right of the channel | ||||
|
||||
 | ||||
|
||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Multiple consecutive blank lines found. This could be a typographical error and should be reduced to a single blank line to maintain consistency and readability. - Committable suggestion
Suggested change
|
||||
3. Click on **add app** option | ||||
4. Click on **View app directory** | ||||
5. Click on the **build** option at the top right of the menu | ||||
6. Create an app from scratch | ||||
7. Provide a name to the app and assign it to a workspace | ||||
8. Go to OAuth and Permission menu | ||||
|
||||
 | ||||
|
||||
|
||||
9. Under the scope section, give the app permission to write messages | ||||
|
||||
 | ||||
|
||||
|
||||
10. Install the app to the workspace | ||||
|
||||
 | ||||
|
||||
|
||||
11. Give permission to the app | ||||
|
||||
 | ||||
|
||||
|
||||
12. Once the app is installed copy the OAuth Token as it will be used for authentication. | ||||
|
||||
 | ||||
|
||||
|
||||
13. Go to the channel where you want to add app. | ||||
14. Click on the `channel name` . | ||||
15. Click on the integrations tab here. | ||||
|
||||
 | ||||
|
||||
|
||||
16. Then click on the `Add apps`. | ||||
|
||||
 | ||||
|
||||
|
||||
17. Then recognize the newly created app and add to the channel. | ||||
|
||||
 | ||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,8 +20,8 @@ def send_alert(self, slack_block): | |||||
channel=self.channel_name, | ||||||
blocks=slack_block["blocks"], | ||||||
) | ||||||
logger.info(f"Alert Sent") | ||||||
logger.info("Alert Sent") | ||||||
return True | ||||||
except Exception as e: | ||||||
logger.error(f"Exception occurred:{e}") | ||||||
logger.error(f"Exception occurred:{e}. Response: {response}") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Undefined variable - logger.error(f"Exception occurred:{e}. Response: {response}")
+ logger.error(f"Exception occurred:{e}") Committable suggestion
Suggested change
|
||||||
return False |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pre-commit==2.20.0 | ||
python-dotenv==0.20.0 | ||
slackclient==2.9.4 | ||
functions-framework==3.2.0 | ||
google-cloud-logging==3.5.0 | ||
google_cloud_bigquery==3.11.4 | ||
pre-commit==2.20.0 | ||
python-dotenv==0.20.0 | ||
slackclient==2.9.4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
slackclient==2.9.4 | ||
functions-framework==3.2.0 | ||
google-cloud-logging==3.5.0 | ||
google_cloud_bigquery==3.11.4 | ||
slackclient==2.9.4 | ||
Werkzeug==2.3.7 |
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.
Ensure lists in markdown are surrounded by blank lines for proper rendering.
Committable suggestion