Automates exporting Figma comments to XLSX reports and emailing them on schedule.
- XLSX report generation
- Customizable report fields
- Scheduled email delivery
- YAML configuration
- Clone rep:
git clone https://github.com/Hikitak/figma-comment-reporter.git
cd figma-comment-reporter
- Install dependencies:
go mod download
- Build bin file:
go build -o bin/reporter ./cmd/reporter
Copy config.yaml.example
to config.yaml
and configure:
figma:
token: "your_figma_token" # Figma personal access token
file_keys: # Figma file keys
- "abc123"
- "def456"
schedule: "0 9 * * *" # Cron schedule
email:
smtp_host: "smtp.example.com" # SMTP server
smtp_port: 587 # SMTP port
smtp_username: "user@example.com" # SMTP username
smtp_password: "password" # SMTP password
from: "noreply@example.com" # Sender email
to: # Recipients
- "user1@example.com"
- "user2@example.com"
subject: "Figma Comments Report" # Email subject
body: "Attached report" # Email body
report:
fields: # Custom report fields
- name: "file_name" # Field name
display: "File Name" # Column header
# ... other fields
./bin/reporter path/to/config.yaml
Build image:
docker build -t figma-reporter .
Run container:
docker run -v $(pwd)/config.yaml:/root/config.yaml figma-reporter
Available fields:
file_name
: Figma file namefile_id
: Figma file IDnode_name
: Element namenode_id
: Element IDmessage
: Comment textauthor
: Comment authorcreated_at
: Creation timestatus
: Status (open/resolved)resolved_at
: Resolution timelink
: Comment link
Date format example:
- name: "created_at"
display: "Created At"
format: "2006-01-02 15:04"
Cron format:
* * * * *
| | | | |
| | | | +----- Day of week (0-6) (0 = Sunday)
| | | +------- Month (1-12)
| | +--------- Day of month (1-31)
| +----------- Hour (0-23)
+------------- Minute (0-59)