Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stateless-labs/proposals into add/c…
Browse files Browse the repository at this point in the history
…ommunity-testing-bot-proposal
  • Loading branch information
vsoch committed Mar 2, 2022
2 parents e78022b + 2104cab commit dbfb4d4
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/scripts/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ def check_duplicates(files):
continue
print("Checking #%s" % pr.number)
response = requests.get(
"https://api.github.com/repos/%s/pulls/%s/files" % (repo_name, number)
"https://api.github.com/repos/%s/pulls/%s/files" % (repo_name, pr.number)
)
files = [
found = [
x["filename"]
for x in response.json()
if x["status"] in ["added", "modified"]
]
for file in files:
for file in found:
lookup[file] = pr.number
worked_on += files
worked_on += found

worked_on = set(worked_on)
for file in files:
dirname = os.path.dirname(file)
if dirname != "proposals":
if not dirname.endswith("proposals"):
continue

if file in worked_on:
Expand Down
7 changes: 4 additions & 3 deletions .github/scripts/check_duplicates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
set -e

# Either get proposals from action, or on reopen, derive
finalset=""
for file in ${proposals}; do
name=$(basename ${file})
dir=$(dirname ${file})
dir=$(basename $(dirname ${file}))
if [[ "${dir}" == "proposals" ]]; then
printf "Including $file\n"
proposals="$name $proposals"
finalset="$file $finalset"
else
printf "Skipping adding $file, not in proposals\n"
fi
done
export proposals
export proposals=$finalset
python .github/scripts/check.py duplicate ${proposals}
5 changes: 4 additions & 1 deletion .github/scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ def prepare_preposals(files, template_string, template_tag, with_pr=False):
"""
Generic shared function to prepare proposal files
"""
tmpdir = tempfile.mkdtemp()
tmpdir = os.path.join(tempfile.mkdtemp(), "proposals")
if not os.path.exists(tmpdir):
os.makedirs(tmpdir)

final_files = []
for filename in files:

Expand Down
35 changes: 35 additions & 0 deletions proposals/code-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
_Institutional source code search_

This is a proposal to develop an institutional-level website for open source software that
has automated nightly updates and registration.

1. A central repository can hold registration metadata for an organization
2. A central server running on a container cluster watches repositories for nightly changes
3. The current state of the code and metadata is pulled into the interface nightly
4. A branded, professional interface akin to [https://cs.opensource.google/](https://cs.opensource.google/) is updated.

## Use Cases

My organization has many repositories on GitHub, and it's hard to provide an automated,
and easy means to maintain a professional presence for the code, along with an interface
to search and find connections between things. GitHub has search, but it is tends to
be limited and extend beyond the small set of repos you are interested in.

## Deliverables

The deliverables for this proposal include:

1. A documentation server that provides search and rendering of institutional code.
2. A GitHub app that connects a central repository to the server
3. automated workflows to update

Opportunities for extension include supporting other hooks or notifications for the organization repos.

## Collaborations

* Research Software Engineers

## Needs

A container-cluster to run a simple server or app, and a GitHub account to develop
the app, and GitHub workflows, etc.

0 comments on commit dbfb4d4

Please sign in to comment.