Skip to content

Commit

Permalink
Merge branch 'main' into Animated-Emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
Damini2004 authored Aug 1, 2024
2 parents 645a9bb + 74a3159 commit 43ec511
Show file tree
Hide file tree
Showing 48 changed files with 8,075 additions and 1,544 deletions.
20 changes: 9 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
<!-- ISSUE & PR TITLE SHOULD BE SAME-->
## Description
<!--Please include a brief description of the changes-->

[Please include a brief description of the changes or features added]

## Related Issues

[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
<!--Cite any related issue(s) this pull request addresses. If none, simply state “None”-->
- Closes #

## Type of PR

- [ ] Bug fix
- [ ] Feature enhancement
- [ ] Documentation update
- [ ] Other (specify): _______________
<!-- Mention PR Type according to the issue in brackets below and check the below box -->
- [ ] ()

## Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes]
<!--Attach any relevant screenshots or videos demonstrating the changes-->


## Checklist

<!-- [X] - put a cross/X inside [] to check the box -->
- [ ] I have gone through the [contributing guide](https://github.com/Anishkagupta04/RAPIDOC-HEALTHCARE-WEBSITE-/)
- [ ] I have updated my branch and synced it with project `main` branch before making this PR
- [ ] I have performed a self-review of my code
- [ ] I have tested the changes thoroughly before submitting this pull request.
- [ ] I have provided relevant issue numbers, screenshots, and videos after making the changes.
- [ ] I have commented my code, particularly in hard-to-understand areas.
<!-- [X] - put a cross/X inside [] to check the box -->


## Additional context:
[Include any additional information or context that might be helpful for reviewers.]
<!--Include any additional information or context that might be helpful for reviewers.-->
55 changes: 55 additions & 0 deletions .github/workflows/assignlabel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Assign Issue to Creator

on:
issue_comment:
types: [created]

jobs:
assign-issue:
runs-on: ubuntu-latest
if: contains(github.event.comment.body, '/assign')
steps:
- name: Check commenter permissions
id: check-permissions
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { owner, repo } = context.repo;
const commenter = context.payload.comment.user.login;
const { data: repoPermission } = await github.rest.repos.getCollaboratorPermissionLevel({
owner,
repo,
username: commenter,
});
const allowedPermissions = ['admin', 'maintain', 'write'];
const hasPermission = allowedPermissions.includes(repoPermission.permission);
return hasPermission;
- name: Assign issue to creator
if: steps.check-permissions.outputs.result == 'true'
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const { data: issue } = await github.rest.issues.get({
owner,
repo,
issue_number,
});
const creator = issue.user.login;
await github.rest.issues.addAssignees({
owner,
repo,
issue_number,
assignees: [creator],
});
console.log(`Assigned issue #${issue_number} to creator ${creator}`);
59 changes: 31 additions & 28 deletions .github/workflows/auto-label-issues.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
name: Auto Label Issues
name: Auto Label Issue

on:
issues:
types: [opened, edited]
types: [opened, reopened, edited]

jobs:
label_issues:
label_issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
- name: Label Issue
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issue = context.payload.issue;
const title = issue.title.toLowerCase();
const body = issue.body.toLowerCase();
const labels = [];
if (title.includes('gssoc') || body.includes('gssoc')) {
labels.push('GSSoC');
}
if (title.includes('enhancement') || body.includes('enhancement')) {
labels.push('Enhancement');
}
const issueTitle = issue.title.toLowerCase();
if (title.includes('bug') || body.includes('bug')) {
labels.push('Bug');
// Add gssoc label to all issues
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
labels: ['gssoc']
});
const addLabel = async (label) => {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
labels: [label]
});
};
if (issueTitle.includes('documentation')) {
await addLabel('documentation');
}
if (title.includes('documentation') || body.includes('documentation')) {
labels.push('Documentation');
if (issueTitle.includes('feature')) {
await addLabel('enhancement');
}
if (labels.length > 0) {
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.name,
labels: labels
});
if (issueTitle.includes('bug')) {
await addLabel('bug');
}
26 changes: 26 additions & 0 deletions .github/workflows/auto-label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Auto Label PRs

on:
pull_request:
types: [opened, edited]

jobs:
label_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml

- name: Add GSSOC label
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['gssoc']
})
18 changes: 13 additions & 5 deletions Css-Files/Rateus.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
min-height: 100vh;
padding: 20px;
box-sizing: border-box;
width: 60%;
}

.popup {
Expand Down Expand Up @@ -91,21 +92,22 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
padding: 40px;
animation: slideInFromBottom 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
transition: opacity 0.3s ease-in-out;
background-color: #3fbcc051;
border-radius: 10px;
box-shadow: 0 0 10px rgba(6, 130, 130, 0.1);
max-width: 100%;
width: 80%;
max-width: 200%;
width: 200%;
/* height: 400px; */
box-sizing: border-box;
opacity: 0;
}

.feedback-form h2 {
font-size: 28px;
margin-bottom: 15px;
font-size: 27px;
margin-bottom: 8px;
text-align: center;
font-weight: 1000 !important;
}
Expand Down Expand Up @@ -165,6 +167,8 @@
display: flex;
flex-direction: column;
width: 100%;
position: relative;
bottom: 7px;
}

.feedback-form label {
Expand Down Expand Up @@ -209,6 +213,7 @@
border: none;
padding: 12px 20px;
border-radius: 5px;
margin-left:190px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease, transform 0.2s ease;
Expand Down Expand Up @@ -262,5 +267,8 @@
width: 100%;
padding: 15px;
}
.close-btn{
top: 10px;
}
}

Loading

0 comments on commit 43ec511

Please sign in to comment.