Make gitea public URL configurable

[?]
Mar 30, 2021, 9:01 PM
6SK7HL54JMRLGXTXJMEU7OJ3IFET2AVJ6A62HRXPJEOAJN5GRLYAC

Dependencies

  • [2] 3VSNQ6TJ Implement VM-test for gitea plugin
  • [3] A4NSGFS3 LDAP: add VM test to flake.nix
  • [4] JFG4FYTW Implement simple status notifications for Git repos hosted on gitea
  • [5] 3JXCTKEC Add markdown files for documentation
  • [6] RWNXH3H2 lastModified -> lastModifiedDate
  • [7] ZLLMZMPO Fix error codes for GiteaStatus plugin

Change contents

  • replacement in doc/manual/src/projects.md at line 489
    [3.735][3.735:1140]()
    | Type | Name | Value |
    | -------------- | ------------------- | ----------------------------------- |
    | `String value` | `gitea_repo_name` | *Name of the repository to build* |
    | `String value` | `gitea_repo_owner` | *Owner of the repository* |
    | `String value` | `gitea_status_repo` | *Name of the `Git checkout` input* |
    [3.735]
    [3.1140]
    | Type | Name | Value |
    | -------------- | ------------------- | ---------------------------------- |
    | `String value` | `gitea_repo_name` | *Name of the repository to build* |
    | `String value` | `gitea_repo_owner` | *Owner of the repository* |
    | `String value` | `gitea_status_repo` | *Name of the `Git checkout` input* |
    | `String value` | `gitea_http_url` | *Public URL of `gitea`*, optional |
  • replacement in flake.nix at line 594
    [2.4227][2.4227:4303]()
    "gitea_status_repo": {"value": "git", "type": "string"}
    [2.4227]
    [2.4303]
    "gitea_status_repo": {"value": "git", "type": "string"},
    "gitea_http_url": {"value": "http://localhost:3001", "type": "string"}
  • edit in src/lib/Hydra/Plugin/GiteaStatus.pm at line 58
    [3.2919]
    [3.2919]
    my $gitea_url = $eval->jobsetevalinputs->find({ name => "gitea_http_url" });
  • replacement in src/lib/Hydra/Plugin/GiteaStatus.pm at line 66
    [3.3285][2.8237:8330]()
    my $url = "http://$domain:3001/api/v1/repos/$repoOwner/$repoName/statuses/$rev";
    [3.3285]
    [3.3378]
    my $host;
    unless (defined $gitea_url) {
    $host = "https://$domain";
    } else {
    $host = $gitea_url->value;
    }
  • edit in src/lib/Hydra/Plugin/GiteaStatus.pm at line 73
    [3.3379]
    [3.3379]
    my $url = "$host/api/v1/repos/$repoOwner/$repoName/statuses/$rev";