Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example pull request that shows the autograding in action #287

Closed
wants to merge 539 commits into from

Conversation

uhafner
Copy link
Owner

@uhafner uhafner commented Dec 3, 2023

🥫 Eat your own dogfood

The example pull request grades all commits in this repository and shows the results of the autograding action.

dependabot bot and others added 30 commits June 21, 2021 13:02
Bumps [kentaro-m/auto-assign-action](https://github.com/kentaro-m/auto-assign-action) from 1.1.2 to 1.2.0.
- [Release notes](https://github.com/kentaro-m/auto-assign-action/releases)
- [Commits](kentaro-m/auto-assign-action@v1.1.2...v1.2.0)

---
updated-dependencies:
- dependency-name: kentaro-m/auto-assign-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…o-m/auto-assign-action-1.2.0

Bump kentaro-m/auto-assign-action from 1.1.2 to 1.2.0
…ons-io-2.10.0

Bump commons-io from 2.8.0 to 2.10.0
…m/action-label-syncer-1.2.0

Bump micnncim/action-label-syncer from 1 to 1.2.0
…alysis-model-10.2.5

Bump analysis-model from 10.0.0 to 10.2.5
…/cache-2.1.6

Bump actions/cache from 2.1.4 to 2.1.6
…d.tools-jib-maven-plugin-3.1.1

Bump jib-maven-plugin from 3.0.0 to 3.1.1
Bumps [micnncim/action-label-syncer](https://github.com/micnncim/action-label-syncer) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/micnncim/action-label-syncer/releases)
- [Commits](micnncim/action-label-syncer@v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: micnncim/action-label-syncer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…im/action-label-syncer-1.3.0

Bump micnncim/action-label-syncer from 1.2.0 to 1.3.0
…hub-api-1.131

Bump github-api from 1.125 to 1.131
Bumps commons-io from 2.10.0 to 2.11.0.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [jib-maven-plugin](https://github.com/GoogleContainerTools/jib) from 3.1.1 to 3.1.4.
- [Release notes](https://github.com/GoogleContainerTools/jib/releases)
- [Commits](https://github.com/GoogleContainerTools/jib/commits)

---
updated-dependencies:
- dependency-name: com.google.cloud.tools:jib-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [codingstyle-pom](https://github.com/uhafner/codingstyle-pom) from 2.4.0 to 2.11.0.
- [Release notes](https://github.com/uhafner/codingstyle-pom/releases)
- [Changelog](https://github.com/uhafner/codingstyle-pom/blob/main/CHANGELOG.md)
- [Commits](uhafner/codingstyle-pom@v2.4.0...v2.11.0)

---
updated-dependencies:
- dependency-name: edu.hm.hafner:codingstyle-pom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2.3.4...v2.3.5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/checkout-2.3.5

Bump actions/checkout from 2.3.4 to 2.3.5
…odingstyle-pom-2.11.0

Bump codingstyle-pom from 2.4.0 to 2.11.0
…d.tools-jib-maven-plugin-3.1.4

Bump jib-maven-plugin from 3.1.1 to 3.1.4
…ons-io-2.11.0

Bump commons-io from 2.10.0 to 2.11.0
Bumps [analysis-model](https://github.com/jenkinsci/analysis-model) from 10.2.5 to 10.5.2.
- [Release notes](https://github.com/jenkinsci/analysis-model/releases)
- [Changelog](https://github.com/jenkinsci/analysis-model/blob/master/CHANGELOG.md)
- [Commits](jenkinsci/analysis-model@v10.2.5...v10.5.2)

---
updated-dependencies:
- dependency-name: edu.hm.hafner:analysis-model
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…nalysis-model-10.5.2

Bump analysis-model from 10.2.5 to 10.5.2
Bumps [kentaro-m/auto-assign-action](https://github.com/kentaro-m/auto-assign-action) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/kentaro-m/auto-assign-action/releases)
- [Commits](kentaro-m/auto-assign-action@v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: kentaro-m/auto-assign-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](actions/cache@v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [codingstyle-pom](https://github.com/uhafner/codingstyle-pom) from 2.11.0 to 2.16.0.
- [Release notes](https://github.com/uhafner/codingstyle-pom/releases)
- [Changelog](https://github.com/uhafner/codingstyle-pom/blob/main/CHANGELOG.md)
- [Commits](uhafner/codingstyle-pom@v2.11.0...v2.16.0)

---
updated-dependencies:
- dependency-name: edu.hm.hafner:codingstyle-pom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [depgraph-maven-plugin](https://github.com/ferstl/depgraph-maven-plugin) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/ferstl/depgraph-maven-plugin/releases)
- [Commits](ferstl/depgraph-maven-plugin@depgraph-maven-plugin-3.3.0...depgraph-maven-plugin-3.3.1)

---
updated-dependencies:
- dependency-name: com.github.ferstl:depgraph-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [jib-maven-plugin](https://github.com/GoogleContainerTools/jib) from 3.1.4 to 3.2.0.
- [Release notes](https://github.com/GoogleContainerTools/jib/releases)
- [Commits](https://github.com/GoogleContainerTools/jib/commits)

---
updated-dependencies:
- dependency-name: com.google.cloud.tools:jib-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.15.0 to 5.18.1.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](release-drafter/release-drafter@v5.15.0...v5.18.1)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
uhafner and others added 27 commits December 1, 2023 12:28
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/setup-java-4

Bump actions/setup-java from 3 to 4
…odingstyle-pom-3.39.0

Bump edu.hm.hafner:codingstyle-pom from 3.37.0 to 3.39.0
…ons-io-2.15.1

Bump commons-io:commons-io from 2.15.0 to 2.15.1
@uhafner uhafner added the internal Internal changes without user or API impact label Dec 3, 2023

import static org.assertj.core.api.Assertions.*;

class AutoGradingActionTest extends ResourceTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: AutoGradingActionTest is not referenced within this codebase. If not used as an external API it should be removed.
*
* @author Ullrich Hafner
*/
class FileNameRenderer {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note

Unused class: FileNameRenderer is not referenced within this codebase. If not used as an external API it should be removed.

private String readDefaultConfiguration() {
try {
var defaultConfig = getClass().getResource("/default-config.json");

Check warning

Code scanning / CodeQL

Unsafe use of getResource Warning

The idiom getClass().getResource() is unsafe for classes that may be extended.
var prNumber = getEnv("PR_NUMBER");
if (!prNumber.isBlank()) {
github.getRepository(repository)
.getPullRequest(Integer.parseInt(prNumber))

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
*
* @author Ullrich Hafner
*/
class ReportFinderTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: ReportFinderTest is not referenced within this codebase. If not used as an external API it should be removed.
@uhafner uhafner closed this Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal changes without user or API impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants