Skip to content

Site doesn't work with proxy/cloudflare #34

Site doesn't work with proxy/cloudflare

Site doesn't work with proxy/cloudflare #34

name: Issues Detection(Owner = Label)
on:
issues:
types: [opened]
jobs:
lock-issues:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ISSUES_TOKEN }} # define GITHUB_TOKEN as ISSUES_TOKEN
if: ${{ github.event.issue.user.login == github.repository_owner }} #If issue opener is repository owner
steps:
- name: Label <TheHellTower>
uses: actions/github-script@v4
with:
script: |
const issueNumber = context.payload.issue.number;
const lockParams = {
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
labels: ["TheHellTower"]
};
return github.issues.update(lockParams);
github-token: ${{ env.GITHUB_TOKEN }}