Skip to content

Input field front end rounding #1

Input field front end rounding

Input field front end rounding #1

Workflow file for this run

name: Issue Gate
on:
issues:
types: [opened, reopened]
permissions:
issues: write
contents: read
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Close issues from unapproved contributors
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const approvedPath = '.github/APPROVED_CONTRIBUTORS';
const approved = fs.existsSync(approvedPath)
? fs.readFileSync(approvedPath, 'utf8')
.split(/\r?\n/)
.map(line => line.trim().toLowerCase())
.filter(line => line && !line.startsWith('#'))
: [];
const user = context.payload.issue.user.login.toLowerCase();
const authorAssociation = context.payload.issue.author_association;
const trusted = approved.includes(user) || ['OWNER', 'MEMBER', 'COLLABORATOR'].includes(authorAssociation);
if (trusted) return;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: 'Thanks for reaching out. Journalit uses Discord as the preferred support and feedback channel: https://discord.gg/AkSw3D9h8b. Public GitHub issues are limited to approved contributors, so this issue is being closed automatically.'
});
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
state: 'closed'
});