ref label to route or filter the branches you care about, such as master or release, in Flashduty.
In Flashduty On-call
- In the Flashduty console, go to Integration Center → Change Events
- Select Gitee and enter an integration name
- To assign changes to specific channels, add rules under the integration’s Routes that match labels such as
repoorref - Click Save and copy the generated Push URL
Configure Gitee
1
Add a WebHook
Open the repository home page, go to Manage → WebHooks and add a WebHook. An enterprise WebHook applies to every repository of the enterprise. You need admin permission on the repository or enterprise.
2
Enter the Push URL
- URL: paste the full Push URL of the Flashduty integration
- Password and Signing secret: leave empty. Flashduty authenticates with the
integration_keyin the Push URL and neither reads nor verifies the password or signature Gitee sends with the request
3
Select hooks
Select the hooks you need:
- Push: code pushed to a branch
- Tag Push: a new tag
- Pull Request: a merged pull request (other pull request actions do not create changes)
What one change is
The same commit pushed to two branches is two changes.
Status mapping
Done is an end state, so Flashduty records the change’s end time.
These deliveries return success and create no change: Issue and comment hooks, pushes that delete a branch or tag, pull request hooks whose
action is not merge (open, update, approved, close, tested, and so on), and unrecognized hook types.
Change content
Labels are available for routing and for filtering the change list:
FAQ
Why did every branch push become a change?
Why did every branch push become a change?
A Gitee WebHook cannot filter by branch. Use the integration’s Routes to match the
ref label and assign the branches you care about to a channel, or select only Tag Push and Pull Request.Why is there no change after a pull request merge?
Why is there no change after a pull request merge?
- Check that the WebHook has Pull Request selected
- Only the merge action creates a change; opening, updating or closing returns success and records nothing
- Check the request and Flashduty’s response in the WebHook’s delivery log
Does resending a notification from Gitee record it twice?
Does resending a notification from Gitee record it twice?
No. An event with the same change and the same time is recorded once.
Does Test WebHook create a change?
Does Test WebHook create a change?
Gitee’s Test WebHook sends test data for the selected hook in the same format as a real delivery, so it may create one change. This is expected.
The push returns an InvalidParameter error?
The push returns an InvalidParameter error?
ref is missing,after is missing,repository.id is missing,pull_request.id is missingorpull_request is missing: the payload is incomplete; make sure it comes from a native Gitee WebHook- The body is not JSON: use the current Gitee WebHook (
Content-Type: application/json); the legacy hook sends a form body and is not supported