Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/pr_maintainer_checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ jobs:
id: first_interaction
uses: actions/first-interaction@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
repo_token: ${{ secrets.GITHUB_TOKEN }}
issue_message: |
## Thank you for opening your first issue! 💙

- If you're not already a member of our [public Matrix community](https://matrix.to/#/#scribe_community:matrix.org), please consider joining!
Comment thread
DeleMike marked this conversation as resolved.
- We'd suggest that you use the [Element](https://element.io/) client as well as [Element X](https://element.io/app) for a mobile app
- Join the `General` and `Data` rooms once you're in
- Also consider attending our bi-weekly Saturday developer syncs!
- Details are shared in the `General` room on Matrix each Wednesday before the sync
- It would be great to meet you 😊
pr_message: |
## First PR Commit Check

- [ ] The commit messages for the remote branch should be checked to make sure the contributor's email is set up correctly so that they receive credit for their contribution
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/update_scribe_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,20 @@ jobs:
TYPES_COUNT="${{ steps.run_script.outputs.TYPES_COUNT }}"
TYPES_LIST="${{ steps.run_script.outputs.TYPES_LIST }}"
SQLITE_COUNT="${{ steps.run_script.outputs.SQLITE_COUNT }}"
DURATION_SECONDS="${{ steps.run_script.outputs.DURATION_SECONDS }}"
DURATION_FMT=$(printf '%dm %02ds' $((DURATION_SECONDS / 60)) $((DURATION_SECONDS % 60)))

# Format lists with commas.
LANG_LIST_FORMATTED=$(echo "$LANG_LIST" | sed 's/ /, /g' | sed 's/"/\\"/g')
TYPES_LIST_FORMATTED=$(echo "$TYPES_LIST" | sed 's/ /, /g' | sed 's/"/\\"/g')

# Trigger: schedule vs manual run.
Comment thread
DeleMike marked this conversation as resolved.
if [ "${{ github.event_name }}" = "schedule" ]; then
TRIGGERED_BY="scheduled run"
else
TRIGGERED_BY="manually by ${{ github.actor }}"
fi

TITLE="Toolforge Scribe-Server Update Successful! 🎉"
REPO="${{ github.repository }}"
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
Expand All @@ -203,7 +212,7 @@ jobs:
"msgtype": "m.text",
"format": "org.matrix.custom.html",
"body": "$TITLE - Data updated on Toolforge",
"formatted_body": "<h4>$TITLE</h4><p>Data fetched with Scribe-Data has been updated on Toolforge and migrated to MariaDB 💙</p><ul><li><strong>Languages processed:</strong> $LANG_COUNT ($LANG_LIST_FORMATTED)</li><li><strong>Data types processed:</strong> $TYPES_COUNT ($TYPES_LIST_FORMATTED)</li><li><strong>Data Generation:</strong> Completed ✅</li><li><strong>SQLite Conversion:</strong> Completed ✅</li><li><strong>Files Copied:</strong> $SQLITE_COUNT files on the server are now available for download ⬇️</li></ul><p><a href='$RUN_URL'>View Full Log</a></p>"
"formatted_body": "<h4>$TITLE</h4><p>Data fetched with Scribe-Data has been updated on Toolforge and migrated to MariaDB 💙</p><ul><li><strong>Triggered:</strong> $TRIGGERED_BY</li><li><strong>Duration:</strong> $DURATION_FMT</li><li><strong>Languages processed:</strong> $LANG_COUNT ($LANG_LIST_FORMATTED)</li><li><strong>Data types processed:</strong> $TYPES_COUNT ($TYPES_LIST_FORMATTED)</li><li><strong>Data Generation:</strong> Completed ✅</li><li><strong>SQLite Conversion:</strong> Completed ✅</li><li><strong>Files Copied:</strong> $SQLITE_COUNT files on the server are now available for download ⬇️</li></ul><p><a href='$RUN_URL'>View Full Log</a></p>"
}
EOF
)
Expand Down
Empty file removed contracts/.gitkeep
Empty file.
Loading