diff --git a/.github/workflows/auto-label-pr.yml b/.github/workflows/auto-label-pr.yml index e6cbe781..c2297b74 100644 --- a/.github/workflows/auto-label-pr.yml +++ b/.github/workflows/auto-label-pr.yml @@ -1,26 +1,38 @@ -name: Auto Label PRs +name: Auto Label and Issue Check on: pull_request: - types: [opened, edited] + types: [opened, edited, synchronize] jobs: - label_pr: + auto-label-and-check: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/labeler.yml - - - name: Add GSSOC label + - name: Add GSSoC Label and Check Issue 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'] - }) \ No newline at end of file + const { owner, repo } = context.repo; + const pr = context.payload.pull_request; + + try { + await github.rest.issues.addLabels({ + issue_number: pr.number, + owner: owner, + repo: repo, + labels: ['gssoc'] + }); + console.log('Added gssoc label'); + } catch (error) { + console.error('Error adding gssoc label:', error); + } + + const body = pr.body || ''; + const issueMatch = body.match(/(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\s*:?\s*#(\d+)/i); + + if (!issueMatch) { + core.setFailed('No related issue mentioned in the PR description. Please use the PR template and mention the related issue.'); + } else { + console.log('Related issue found:', issueMatch[1]); + } \ No newline at end of file diff --git a/Html-Files/appointment.html b/Html-Files/appointment.html index ad2833cc..77acf83b 100644 --- a/Html-Files/appointment.html +++ b/Html-Files/appointment.html @@ -792,7 +792,6 @@ border: 1px solid #5a7f5a; border-radius: 5px; font-size: 14px; - width: 100%; box-sizing: border-box; background-color: #005253; color: #e0f7e4; @@ -896,6 +895,19 @@ #preview-section button { font-size: 14px; } +} +@media screen and (max-width: 767px) { + small { + font-size: 12px; + padding: 8px 0; + } +} + +@media screen and (max-width: 480px) { + small { + font-size: 10px; + padding: 6px 0; + } } @@ -938,7 +950,7 @@ }; -