Skip to content

Commit

Permalink
refresh gh configs
Browse files Browse the repository at this point in the history
  • Loading branch information
MFM-347 committed Dec 21, 2024
1 parent a67472b commit b625376
Show file tree
Hide file tree
Showing 10 changed files with 441 additions and 51 deletions.
44 changes: 44 additions & 0 deletions .github/.pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Pull Request for RenDroid

## Description

Please provide a detailed summary of the changes, including the purpose and context. Reference any related issues or discussions.

### Type of Change

- [ ] Bug Fix
- [ ] New Feature
- [ ] UI Update
- [ ] Performance Improvement
- [ ] Documentation Update
- [ ] Dependency Update
- [ ] Other (please specify):

## Checklist

Before submitting this pull request, ensure the following tasks have been completed:

- [ ] Changes have been tested locally using `vite dev` or equivalent.
- [ ] Associated documentation has been updated to reflect the changes.
- [ ] This PR resolves any linked issues (**issue ID:** #{ID}).
- [ ] A clear and detailed description of the problem, solution, and implementation approach is provided.
- [ ] Code follows the project's coding standards and guidelines.
- [ ] No errors or warnings are present in the console.
- [ ] Relevant tests have been added or updated and pass locally.
- [ ] All merge conflicts are resolved.

## Testing Instructions

Please describe the testing steps and any relevant configurations for verifying the changes:

1.
2.
3.

## Dependencies and Updates

Include any updates to dependencies, frameworks, or tooling (e.g., `tailwindcss`, `vue-router`, `pinia`) and their impact on the project.

## Additional Comments

Provide any additional context, considerations, or follow-up tasks related to this pull request.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bug Report
description: Report a bug or an issue with this project.
labels: bug
body:
- type: markdown
attributes:
value: |
Thank you for reporting a bug! Please provide the following information.
- type: input
id: title
attributes:
label: Short description
description: A simple title for the issue.
placeholder: Bug - Something is not working
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: Provide a detailed description of the bug, you found.
placeholder: Steps to recreate or reproduce expected behavior, actual behavior.
validations:
required: true
- type: dropdown
id: severity
attributes:
label: Severity
description: How severe is the issue?
options:
- Low
- Medium
- High
- Critical
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Feature Request
description: Suggest a new feature or enhancement for this project.
labels: enhancement
body:
- type: markdown
attributes:
value: |
We appreciate your ideas for improving this project! Please fill in the following:
- type: input
id: title
attributes:
label: Feature title
description: A short title summarizing the feature.
placeholder: Add X functionality
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: Provide a detailed description of the requested feature.
placeholder: Describe the feature, its use cases, and benefits.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives
description: Describe any alternative solutions or approaches you've considered.
placeholder: Provide some alternative solutions, if applicable.
- type: dropdown
id: priority
attributes:
label: Priority
description: How important is this feature?
options:
- Low
- Medium
- High
- Critical
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Question
description: Ask a question related to this project.
labels: question
body:
- type: markdown
attributes:
value: |
Have a question? Please provide as much context as possible.
- type: input
id: title
attributes:
label: Question title
description: A brief summary of your question.
placeholder: Question about {feature}
validations:
required: true
- type: textarea
id: details
attributes:
label: Question details
description: A little Elaboration of your question.
placeholder: Provide additional detailed information.
validations:
required: true
24 changes: 24 additions & 0 deletions .github/workflows/AutoRespond.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
fork:
push:
branches: [develop]
issues:
types: [opened]
issue_comment:
types: [created]
pull_request_target:
types: [opened]
pull_request_review_comment:
types: [created]

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: EddieHubCommunity/gh-action-community/src/welcome@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: '<h1>Feeling great to have your contribution for this project</h1> Welcome to our project'
pr-message: '<h1>Feeling great to have your contribution for this project</h1> Welcome to our project'
footer: 'Our developers will respond you as soon as possible. Any questions? Let us know.'
65 changes: 65 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: AutoFormat

on:
push:
paths:
- "**/*"
branches:
- main
pull_request:
paths:
- "**/*"
branches:
- main
workflow_dispatch:

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Configure Prettier
run: |
echo '{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80,
"arrowParens": "always"
}' > .prettierrc
echo '# Ignore all minified files
*.min.*
.github/**/*
*-min.*
*.xml' > .prettierignore
- name: Install Prettier with plugins
run: |
npm i -D prettier prettier-plugin-java
- name: Format all files
run: |
npx prettier -w *.md *.java
- name: Clean up unnecessary files
run: |
rm -rf node_modules
rm -f package.json
rm -f package-lock.json
rm -f .prettierrc
rm -f .prettierignore
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
48 changes: 32 additions & 16 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
# Code of Conduct
# Our Code of Conduct

## Our Commitment
## Our Pledge

As contributors and maintainers of RenDroid, we pledge to make participation in our project and community a welcoming experience for everyone, regardless of age, body size, disability, ethnicity, gender identity, level of experience, nationality, personal appearance, race, religion, or sexual identity.
We as members, contributors, and leaders pledge to make participation in our project and community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Expected Behavior
We commit to acting and interacting in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

- **Respect**: Show respect and empathy for other members of the community.
- **Collaboration**: Actively collaborate and be open to constructive feedback.
- **Professionalism**: Communicate professionally and avoid offensive language.
## Our Standards

## Unacceptable Behavior
Examples of behavior that contributes to a positive environment for our community include:

- **Harassment**: Any form of harassment, discrimination, or offensive comments.
- **Disrespect**: Insulting or derogatory comments toward others.
- **Disruptive Behavior**: Purposefully undermining community engagement or repeatedly challenging community guidelines.
- Demonstrating empathy and kindness toward other people.
- Being respectful of differing opinions, viewpoints, and experiences.
- Giving and gracefully accepting constructive feedback.
- Focusing on what is best for the community.
- Showing respect for fellow contributors.

## Reporting Issues
Examples of unacceptable behavior include:

If you witness or experience any behavior that violates this Code of Conduct, please report it to the project maintainers by contacting [[email protected]](mailto:[email protected]). All reports will be reviewed and investigated, and all responses will be kept confidential.
- The use of unapropriate language.
- Trolling, insulting or derogatory comments, and personal or political attacks.
- Public or private harassment.
- Publishing others’ private information without their explicit permission.
- Other conduct that could reasonably be considered inappropriate in a professional setting.

## Consequences
## Enforcement Responsibilities

Violators of this Code of Conduct may face temporary or permanent bans from the community and RenDroid repository.
Community leaders are responsible for clarifying and enforcing our standards and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Thank you for helping to create a welcoming community for all!
## Scope

This Code of Conduct applies within all community spaces and when an individual is representing the community in public spaces.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and fairly.

Community leaders are obligated to respect the privacy and security of the reporter of any incident.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
Loading

0 comments on commit b625376

Please sign in to comment.