Skip to content

Commit cf98fd4

Browse files
Implement exercise T4L2/tags-update (#91)
# Exercise Review ## Exercise Discussion Fixes #62 ## Checklist - [ ] If you require a new remote repository on the `Git-Mastery` organization, have you [created a request](https://github.com/git-mastery/exercises/issues/new?template=request_exercise_repository.md) for it? - [X] Have you written unit tests using [`repo-smith`](https://github.com/git-mastery/repo-smith) to validate the exercise grading scheme? - [X] Have you tested the download script using `test-download.sh`? - [X] Have you verified that this exercise does not already exist or is not currently in review? - [ ] Did you introduce a new grading mechanism that should belong to [`git-autograder`](https://github.com/git-mastery/git-autograder)? - [ ] Did you introduce a new dependency that should belong to [`app`](https://github.com/git-mastery/app)?
2 parents e1a84d7 + f59e80f commit cf98fd4

15 files changed

+389
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"exercise_name": "tags-update",
3+
"tags": [
4+
"git-tag"
5+
],
6+
"requires_git": true,
7+
"requires_github": true,
8+
"base_files": {},
9+
"exercise_repo": {
10+
"repo_type": "remote",
11+
"repo_name": "duty-roster",
12+
"repo_title": "gm-duty-roster",
13+
"create_fork": false,
14+
"init": null
15+
}
16+
}

tags_update/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See https://git-mastery.github.io/lessons/tag/exercise-tags-update.html

tags_update/__init__.py

Whitespace-only changes.

tags_update/download.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from exercise_utils.git import tag, tag_with_options
2+
3+
4+
def setup(verbose: bool = False):
5+
tag_with_options("first-update", ["HEAD~4"], verbose)
6+
tag("april-update", verbose)
7+
tag("may-update", verbose)

tags_update/tests/__init__.py

Whitespace-only changes.

tags_update/tests/specs/base.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Add January duty roster
6+
id: start
7+
- type: tag
8+
tag-name: january-update
9+
- type: commit
10+
empty: true
11+
message: Update duty roster for February
12+
id: february-commit
13+
- type: commit
14+
empty: true
15+
message: Update roster for March
16+
id: march-commit
17+
- type: commit
18+
empty: true
19+
message: Update duty roster for April
20+
id: april-commit
21+
- type: tag
22+
tag-name: april-update
23+
- type: commit
24+
empty: true
25+
message: Update roster for May
26+
id: may-commit
27+
- type: tag
28+
tag-name: may-update
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Add January duty roster
6+
id: start
7+
- type: tag
8+
tag-name: first-update
9+
- type: commit
10+
empty: true
11+
message: Update duty roster for February
12+
id: february-commit
13+
- type: commit
14+
empty: true
15+
message: Update roster for March
16+
id: march-commit
17+
- type: commit
18+
empty: true
19+
message: Update duty roster for April
20+
id: april-commit
21+
- type: tag
22+
tag-name: april-update
23+
- type: commit
24+
empty: true
25+
message: Update roster for May
26+
id: may-commit
27+
- type: tag
28+
tag-name: may-update
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Add January duty roster
6+
id: start
7+
- type: tag
8+
tag-name: january-update
9+
- type: commit
10+
empty: true
11+
message: Update duty roster for February
12+
id: february-commit
13+
- type: commit
14+
empty: true
15+
message: Update roster for March
16+
id: march-commit
17+
- type: commit
18+
empty: true
19+
message: Update duty roster for April
20+
id: april-commit
21+
- type: commit
22+
empty: true
23+
message: Update roster for May
24+
id: may-commit
25+
- type: tag
26+
tag-name: may-update
27+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Update duty roster for February
6+
id: start
7+
- type: tag
8+
tag-name: january-update
9+
- type: commit
10+
empty: true
11+
message: Update roster for March
12+
id: march-commit
13+
- type: commit
14+
empty: true
15+
message: Update duty roster for April
16+
id: april-commit
17+
- type: tag
18+
tag-name: april-update
19+
- type: commit
20+
empty: true
21+
message: Update roster for May
22+
id: may-commit
23+
- type: tag
24+
tag-name: may-update
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Add January duty roster
6+
id: start
7+
- type: commit
8+
empty: true
9+
message: Update duty roster for February
10+
id: february-commit
11+
- type: commit
12+
empty: true
13+
message: Update roster for March
14+
id: march-commit
15+
- type: commit
16+
empty: true
17+
message: Update duty roster for April
18+
id: april-commit
19+
- type: commit
20+
empty: true
21+
message: Update roster for May
22+
id: may-commit
23+
- type: tag
24+
tag-name: april-update
25+
- type: tag
26+
tag-name: may-update
27+

0 commit comments

Comments
 (0)