feat: add Gitea API test scripts
- create-gitea-token.sh: Create API token from username/password - full-gitea-test.sh: Complete test creating milestone, issues, comments - test-gitea.sh: Updated with correct scope names (all, read:*, write:*) Test results: ✅ Token creation via Basic Auth ✅ Milestone creation (ID=42) ✅ 3 issues with checklists created ✅ 3 comments added with progress Gitea API scopes: 'all' for full access, or granular like 'read:issue', 'write:issue'
This commit is contained in:
@@ -10,11 +10,11 @@ if [ -z "$GITEA_TOKEN" ]; then
|
||||
echo "❌ GITEA_TOKEN not set!"
|
||||
echo ""
|
||||
echo "To get your token:"
|
||||
echo "1. Go to: https://git.softuniq.eu/user/settings/applications"
|
||||
echo "2. Generate new token with 'repo' and 'issue' scopes"
|
||||
echo "1. Run: ./scripts/create-gitea-token.sh <username> <password>"
|
||||
echo "2. Or create manually at: https://git.softuniq.eu/user/settings/applications"
|
||||
echo "3. Export it: export GITEA_TOKEN=your_token_here"
|
||||
echo ""
|
||||
echo "Example: export GITEA_TOKEN=abc123def456"
|
||||
echo "Note: Use 'all' scope for full access"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user