Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix for Add WEBHOOK_JOB to GHEvent #1316

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

Merged
merged 5 commits into from
Nov 23, 2021
Merged

Fix for Add WEBHOOK_JOB to GHEvent #1316

merged 5 commits into from
Nov 23, 2021

Conversation

katieshin
Copy link
Contributor

@katieshin katieshin commented Nov 21, 2021

Description

Adding fix for #1288 - new enum value for WORKFLOW_JOB in GHEvent.

Fixes #1288

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than main. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.

When creating a PR:

  • Fill in the "Description" above.
  • Enable "Allow edits from maintainers".

@@ -69,6 +69,7 @@
TEAM,
TEAM_ADD,
WATCH,
WEBHOOK_JOB,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not WEBHOOK_JOB but WORKFLOW_JOB.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! I'll make the change, thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, my guess is that you will need to change things here: https://github.com/hub4j/github-api/blob/main/src/test/java/org/kohsuke/github/EnumTest.java#L31 .

Always run the tests after a change, especially in a code base you don't know as it's always full of surprises :).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the help!

@bitwiseman bitwiseman changed the title Fix for https://github.com/hub4j/github-api/issues/1288: Add WEBHOOK_… Fix for Add WEBHOOK_JOB to GHEvent Nov 21, 2021
@codecov
Copy link

codecov bot commented Nov 21, 2021

Codecov Report

Merging #1316 (71e522f) into main (a28a726) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1316   +/-   ##
=========================================
  Coverage     77.92%   77.92%           
  Complexity     2016     2016           
=========================================
  Files           198      198           
  Lines          6224     6225    +1     
  Branches        355      355           
=========================================
+ Hits           4850     4851    +1     
  Misses         1164     1164           
  Partials        210      210           
Impacted Files Coverage Δ
src/main/java/org/kohsuke/github/GHEvent.java 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a28a726...71e522f. Read the comment docs.

Copy link
Contributor

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be squashed into one commit for a cleaner history before merging?

@bitwiseman bitwiseman merged commit 48fe488 into hub4j:main Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GHEvents enum is missing workflow_job
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.