mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-25 22:47:24 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
525327c150 | ||
|
bc658da61e | ||
|
25f206ccdb | ||
|
d3553de1a6 | ||
|
99379fdbb3 | ||
|
21a9fccd60 | ||
|
8837d2fd60 | ||
|
a66843c3e3 | ||
|
67403a6d2a | ||
|
c137f79e9b |
37
CHANGELOG
37
CHANGELOG
@@ -53,3 +53,40 @@
|
|||||||
* Only require one email when validating GPG key (#2266, #2467, #2663) (#2788)
|
* Only require one email when validating GPG key (#2266, #2467, #2663) (#2788)
|
||||||
* Fix order of comments (#2835) (#2839)
|
* Fix order of comments (#2835) (#2839)
|
||||||
|
|
||||||
|
[1.2.0]
|
||||||
|
* Update to version 1.3.0
|
||||||
|
|
||||||
|
[1.3.0]
|
||||||
|
* Update to version 1.3.1
|
||||||
|
* Add documentationUrl
|
||||||
|
* Sanitize logs for mirror sync (#3057, #3082) (#3078)
|
||||||
|
* Fix missing branch in release bug (#3108) (#3117)
|
||||||
|
* Fix repo indexer and submodule bug (#3107) (#3110)
|
||||||
|
* Fix legacy URL redirects (#3100) (#3106)
|
||||||
|
* Fix redis session failed (#3086) (#3089)
|
||||||
|
* Fix issue list branch link broken (#3061) (#3070)
|
||||||
|
* Fix missing password length check when change password (#3039) (#3071)
|
||||||
|
|
||||||
|
[1.3.1]
|
||||||
|
* Update Gitea to 1.3.2
|
||||||
|
* Fix run web with -p push failed (#3154) (#3179)
|
||||||
|
* Fix source download link when no code unit allowed (#3166) (#3169)
|
||||||
|
* Allow adding collaborators with (fullname) (#3103) (#3168)
|
||||||
|
* Fix repo links (#3093) (#3163)
|
||||||
|
* Fix Uninitialized variable in ParsePatch (#3156) (#3162)
|
||||||
|
* Fix migration order v1.3 (#3157)
|
||||||
|
* Fix avatar URLs (#3069) (#3143)
|
||||||
|
|
||||||
|
[1.4.0]
|
||||||
|
* Fix email sending (use SMTPS)
|
||||||
|
|
||||||
|
[1.4.1]
|
||||||
|
* Update Gitea to 1.3.3
|
||||||
|
* Security fixes
|
||||||
|
* Fix escaping changed title in comments (#3530) (#3535)
|
||||||
|
* Escape search query display (#3486) (#3489)
|
||||||
|
* Bug fixes
|
||||||
|
* Fix repo-transfer-and-team-repo-count bug (#3241) (#3244)
|
||||||
|
* Open external tracker in blank window, consistently with wiki (#3227) (#3228)
|
||||||
|
* Change SSL Mode from checkbox to string in admin page (#3208) (#3211)
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
"author": "Gitea developers",
|
"author": "Gitea developers",
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"tagline": "A painless self-hosted Git Service",
|
"tagline": "A painless self-hosted Git Service",
|
||||||
"version": "1.1.3",
|
"version": "1.4.1",
|
||||||
"healthCheckPath": "/healthcheck",
|
"healthCheckPath": "/healthcheck",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"addons": {
|
"addons": {
|
||||||
@@ -33,5 +33,7 @@
|
|||||||
],
|
],
|
||||||
"tags": [ "version control", "git", "code hosting", "development" ],
|
"tags": [ "version control", "git", "code hosting", "development" ],
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"postInstallMessage": "file://POSTINSTALL.md"
|
"postInstallMessage": "file://POSTINSTALL.md",
|
||||||
|
"minBoxVersion": "1.10.0",
|
||||||
|
"documentationUrl": "https://cloudron.io/documentation/apps/gitea/"
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
This app packages Gitea <upstream>1.2.3</upstream>
|
This app packages Gitea <upstream>1.3.3</upstream>
|
||||||
|
|
||||||
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket or Gitlab.
|
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket or Gitlab.
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
FROM cloudron/base:0.10.0
|
FROM cloudron/base:0.10.0
|
||||||
|
|
||||||
ENV VERSION 1.2.3
|
ENV VERSION 1.3.3
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y openssh-server git && \
|
apt-get install -y openssh-server git && \
|
||||||
|
2
start.sh
2
start.sh
@@ -87,7 +87,7 @@ crudini --set "/run/gitea/app.ini" server SSH_PORT "${SSH_PORT}"
|
|||||||
crudini --set "/run/gitea/app.ini" server APP_DATA_PATH "/app/data/appdata"
|
crudini --set "/run/gitea/app.ini" server APP_DATA_PATH "/app/data/appdata"
|
||||||
crudini --set "/run/gitea/app.ini" repository ROOT "/app/data/repository"
|
crudini --set "/run/gitea/app.ini" repository ROOT "/app/data/repository"
|
||||||
crudini --set "/run/gitea/app.ini" repository.upload TEMP_PATH "/run/gitea/tmp/uploads"
|
crudini --set "/run/gitea/app.ini" repository.upload TEMP_PATH "/run/gitea/tmp/uploads"
|
||||||
crudini --set "/run/gitea/app.ini" mailer HOST "${MAIL_SMTP_SERVER}:${MAIL_SMTP_PORT}"
|
crudini --set "/run/gitea/app.ini" mailer HOST "${MAIL_SMTP_SERVER}:${MAIL_SMTPS_PORT}"
|
||||||
crudini --set "/run/gitea/app.ini" mailer USER "${MAIL_SMTP_USERNAME}"
|
crudini --set "/run/gitea/app.ini" mailer USER "${MAIL_SMTP_USERNAME}"
|
||||||
crudini --set "/run/gitea/app.ini" mailer PASSWD "${MAIL_SMTP_PASSWORD}"
|
crudini --set "/run/gitea/app.ini" mailer PASSWD "${MAIL_SMTP_PASSWORD}"
|
||||||
crudini --set "/run/gitea/app.ini" mailer FROM "${MAIL_FROM}"
|
crudini --set "/run/gitea/app.ini" mailer FROM "${MAIL_FROM}"
|
||||||
|
22
test/test.js
22
test/test.js
@@ -106,7 +106,7 @@ return done();
|
|||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.xpath('//button[contains(text(), "Commit Changes")]')).click();
|
return browser.findElement(by.xpath('//button[contains(text(), "Commit Changes")]')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
waitForUrl('https://' + app.fqdn + '/' + username + '/' + reponame + '/src/master/newfile', done);
|
waitForUrl('https://' + app.fqdn + '/' + username + '/' + reponame + '/src/branch/master/newfile', done);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,6 +220,21 @@ return done();
|
|||||||
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sendMail(done) {
|
||||||
|
browser.get('https://' + app.fqdn + '/admin/config').then(function () {
|
||||||
|
var button = browser.findElement(by.xpath('//button[@id="test-mail-btn"]'));
|
||||||
|
return browser.executeScript('arguments[0].scrollIntoView(true)', button);
|
||||||
|
}).then(function () {
|
||||||
|
return browser.findElement(by.xpath('//input[@name="email"]')).sendKeys('test@cloudron.io');
|
||||||
|
}).then(function () {
|
||||||
|
return browser.findElement(by.xpath('//button[@id="test-mail-btn"]')).click();
|
||||||
|
}).then(function () {
|
||||||
|
return browser.wait(until.elementLocated(by.xpath('//p[contains(text(),"Test email has been sent to \'test@cloudron.io\'")]')), TIMEOUT);
|
||||||
|
}).then(function () {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
xit('build app', function () {
|
xit('build app', function () {
|
||||||
execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
});
|
});
|
||||||
@@ -262,6 +277,7 @@ return done();
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login);
|
it('can login', login);
|
||||||
|
it('can send mail', sendMail);
|
||||||
it('can set avatar', setAvatar);
|
it('can set avatar', setAvatar);
|
||||||
it('can get avatar', checkAvatar);
|
it('can get avatar', checkAvatar);
|
||||||
|
|
||||||
@@ -300,7 +316,7 @@ return done();
|
|||||||
it('file exists in repo', function () { expect(fs.existsSync(repodir + '/newfile')).to.be(true); });
|
it('file exists in repo', function () { expect(fs.existsSync(repodir + '/newfile')).to.be(true); });
|
||||||
|
|
||||||
it('move to different location', function () {
|
it('move to different location', function () {
|
||||||
browser.manage().deleteAllCookies();
|
//browser.manage().deleteAllCookies(); // commented because of error "'Network.deleteCookie' wasn't found"
|
||||||
execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
||||||
@@ -350,6 +366,8 @@ return done();
|
|||||||
execSync('cloudron install --wait --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron install --wait --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can login', login);
|
||||||
|
it('can send mail', sendMail);
|
||||||
it('can get avatar', checkAvatar);
|
it('can get avatar', checkAvatar);
|
||||||
it('can clone the url', cloneRepo);
|
it('can clone the url', cloneRepo);
|
||||||
it('file exists in cloned repo', fileExists);
|
it('file exists in cloned repo', fileExists);
|
||||||
|
Reference in New Issue
Block a user