Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-repo-reaper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs225
auto-repo-reaper
Commits
3f399d84
Commit
3f399d84
authored
8 years ago
by
BlissChapman
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit.
parents
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auto-repo-reaper.sh
+38
-0
38 additions, 0 deletions
auto-repo-reaper.sh
with
38 additions
and
0 deletions
auto-repo-reaper.sh
0 → 100644
+
38
−
0
View file @
3f399d84
EFERENCES:
# https://hub.github.com
# https://developer.github.com/v3/pulls/
# TODO: Scrape student info from: https://api.github.com/users/<student-account>/events/public?
# TODO: Rewrite git history?
# TODO: Automate removal of forked repo from your account.
# TODO: Move away from brew as a dependency manager.
# TODO: Support command line args for student repo url or a file of urls.
# TODO: Support cli option to write a custom pull request message.
# TODO: Don't hardcode BlissChapman :p
# Install dependencies if necessary.
brew
install
hub
# Clone student repository.
git clone https://github.com/cs225uiuc/test tmp
cd
tmp
# Fix their code for them :-)
git checkout
-b
"feature/fixed-it"
rm
-R
*
/
git add
.
git commit
-m
"fixed it for you <3"
# Fork the student repository.
hub fork
hub remote add BlissChapman
git push BlissChapman feature/fixed-it
# Open a pull request into the student repository.
hub pull-request
# TODO: Auto-fill standard pull request message unless flag is set.
# Cleanup
cd
..
rm
-rf
tmp/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment