-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/treat-kotlin-deprecated-as-a-depre…
…cated-operation-master
- Loading branch information
Showing
61 changed files
with
1,216 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "maven" | ||
target-branch: "master" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] | ||
- package-ecosystem: "maven" | ||
target-branch: "1.5" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
- name: Dependency Review | ||
uses: actions/dependency-review-action@v3 | ||
with: | ||
fail-on-severity: high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.3/maven-wrapper-0.5.6.jar | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/usr/bin/python | ||
|
||
import sys | ||
import json | ||
from datetime import datetime | ||
import ghApiClient | ||
|
||
def allPulls(releaseDate): | ||
|
||
result = "" | ||
|
||
baseurl = "https://api.github.com/repos/swagger-api/swagger-core/pulls/" | ||
content = ghApiClient.readUrl('repos/swagger-api/swagger-core/pulls?state=closed&base=master&per_page=100') | ||
for l in content: | ||
stripped = l["url"][len(baseurl):] | ||
mergedAt = l["merged_at"] | ||
if mergedAt is not None: | ||
if datetime.strptime(mergedAt, '%Y-%m-%dT%H:%M:%SZ') > releaseDate: | ||
if not l['title'].startswith("bump snap"): | ||
result += '\n' | ||
result += "* " + l['title'] + " (#" + stripped + ")" | ||
return result | ||
|
||
|
||
def lastReleaseDate(tag): | ||
content = ghApiClient.readUrl('repos/swagger-api/swagger-core/releases/tags/' + tag) | ||
publishedAt = content["published_at"] | ||
return datetime.strptime(publishedAt, '%Y-%m-%dT%H:%M:%SZ') | ||
|
||
|
||
def addRelease(release_title, tag, content): | ||
payload = "{\"tag_name\":\"" + tag + "\", " | ||
payload += "\"name\":" + json.dumps(release_title) + ", " | ||
payload += "\"body\":" + json.dumps(content) + ", " | ||
payload += "\"draft\":" + "true" + ", " | ||
payload += "\"prerelease\":" + "false" + ", " | ||
payload += "\"target_commitish\":\"" + "master" + "\"}" | ||
content = ghApiClient.postUrl('repos/swagger-api/swagger-core/releases', payload) | ||
return content | ||
|
||
def getReleases(): | ||
content = ghApiClient.readUrl('repos/swagger-api/swagger-core/releases') | ||
return content | ||
|
||
# main | ||
def main(last_release, release_title, tag): | ||
baseurl = "https://api.github.com/repos/swagger-api/swagger-core/pulls/" | ||
payload = "{\"tag_name\":\"" + tag + "\", " | ||
payload += "\"name\":" + json.dumps(release_title) + ", " | ||
payload += "\"body\":" + json.dumps(content) + ", " | ||
payload += "\"draft\":" + "true" + ", " | ||
payload += "\"prerelease\":" + "false" + ", " | ||
payload += "\"target_commitish\":\"" + "master" + "\"}" | ||
content = ghApiClient.postUrl('repos/swagger-api/swagger-core/releases', payload) | ||
result = allPulls(lastReleaseDate('v' + last_release)) | ||
addRelease (release_title, tag, result) | ||
|
||
# here start main | ||
main(sys.argv[1], sys.argv[2], sys.argv[3]) | ||
|
Oops, something went wrong.