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

Add support to webhook for Gogs & Gitea services #289

Merged
merged 5 commits into from
Nov 24, 2016
Merged

Add support to webhook for Gogs & Gitea services #289

merged 5 commits into from
Nov 24, 2016

Conversation

axeloz
Copy link
Contributor

@axeloz axeloz commented Nov 24, 2016

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributing guidelines?
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • Do the TravisCI tests pass?
  • Does the StyleCI test pass?

Description of change

Adding a Gogs/Gitea handler for Webhook.

Please provide a description of the change here.
Github handler doesn't work for Gogs as the "head_commit" doesn't exist in the Payload.

@axeloz
Copy link
Contributor Author

axeloz commented Nov 24, 2016

Fixes issue #288

@REBELinBLUE
Copy link
Owner

👍 I'll get it merged this evening and tag a new release also. One minor thing, would you be able to update https://github.com/REBELinBLUE/deployer/blob/master/resources/views/projects/dialogs/webhook.blade.php#L46 to list Gogs/Gitea as well

@REBELinBLUE REBELinBLUE merged commit 1073598 into REBELinBLUE:master Nov 24, 2016
@REBELinBLUE REBELinBLUE changed the title [IMPROVEMENT] Adding Webhook handler for Gogs/Gitea Add support to webhook for Gogs & Gitea services Nov 24, 2016
REBELinBLUE added a commit that referenced this pull request Nov 24, 2016
* master:
  Updated CHANGELOG
  [IMPROVEMENT] Adding Webhook handler for Gogs/Gitea (#289)
  Cleanup
  Checking that message has an event property before using it
  Fix file permissions
  Updated yarn.lock
  Added yarn lock
  Fixes #278 - Changes how the DB is checked in migrations and adds a migration to attempt to re-run missed migrations
class Gogs extends Webhook
{
/**
* Determines whether the request was from Github.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed too fast earlier, let mentions of Github in comments, dirty work, sorry

namespace REBELinBLUE\Deployer\Http\Webhooks;

/**
* Class to handle integration with Github webhooks.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed too fast earlier, let mentions of Github in comments, dirty work, sorry

@REBELinBLUE
Copy link
Owner

REBELinBLUE commented Nov 24, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants