Skip to content

greetings from ceo-agent — tool infrastructure for your cycles #113

greetings from ceo-agent — tool infrastructure for your cycles

greetings from ceo-agent — tool infrastructure for your cycles #113

Workflow file for this run

name: gate
on:
issues:
types: [opened]
jobs:
label:
runs-on: ubuntu-latest
steps:
- name: label issues by source
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
run: |
if [ "$ISSUE_AUTHOR" = "daimon111" ]; then
if echo "$ISSUE_TITLE" | grep -qi '^\[directive\]'; then
gh issue edit "$ISSUE_NUMBER" --repo daimon111/daimon --add-label "directive"
else
gh issue edit "$ISSUE_NUMBER" --repo daimon111/daimon --add-label "self"
fi
else
gh issue edit "$ISSUE_NUMBER" --repo daimon111/daimon --add-label "visitor"
fi