{"id":13629936,"url":"https://github.com/rzr/fediverse-action","last_synced_at":"2025-10-30T01:07:13.708Z","repository":{"id":40727102,"uuid":"245255732","full_name":"rzr/fediverse-action","owner":"rzr","description":"Post to fediverse from github using mastodon-lite","archived":false,"fork":false,"pushed_at":"2025-02-19T11:45:32.000Z","size":1005,"stargazers_count":27,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T08:56:40.416Z","etag":null,"topics":["activitypub","bot","cidcd","federated","fediverse","fediverse-client","github-action","mastodon","social-media"],"latest_commit_sha":null,"homepage":"https://mastodon.social/@rzr/103772277257320621","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rzr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["rzr"],"custom":["https://www.paypal.me/rzrfreefr","www.rzr.online.fr"]}},"created_at":"2020-03-05T19:58:41.000Z","updated_at":"2025-02-19T07:40:54.000Z","dependencies_parsed_at":"2025-03-26T06:42:08.108Z","dependency_job_id":null,"html_url":"https://github.com/rzr/fediverse-action","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":"0.11538461538461542","last_synced_commit":"8506cb8a3052fd34b0d93a244888a81c233abf88"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Ffediverse-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Ffediverse-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Ffediverse-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Ffediverse-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzr","download_url":"https://codeload.github.com/rzr/fediverse-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248556963,"owners_count":21124156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activitypub","bot","cidcd","federated","fediverse","fediverse-client","github-action","mastodon","social-media"],"created_at":"2024-08-01T22:01:24.744Z","updated_at":"2025-10-30T01:07:08.680Z","avatar_url":"https://github.com/rzr.png","language":"JavaScript","funding_links":["https://github.com/sponsors/rzr","https://www.paypal.me/rzrfreefr","www.rzr.online.fr"],"categories":["JavaScript"],"sub_categories":[],"readme":"# Fediverse-Action #\n\n[![GitHub forks](\nhttps://img.shields.io/github/forks/rzr/fediverse-action.svg?style=social\u0026label=Fork\u0026maxAge=2592000\n)](\nhttps://GitHub.com/rzr/fediverse-action/network/\n)\n[![License](\nhttps://img.shields.io/badge/license-ISC-blue.svg?style=flat\n)](\nLICENSE\n)\n[![NPM](\nhttps://img.shields.io/npm/v/fediverse-action.svg\n)](\nhttps://www.npmjs.com/package/fediverse-action\n)\n[![dependencies Status](\nhttps://david-dm.org/rzr/fediverse-action/status.svg\n)](\nhttps://david-dm.org/rzr/fediverse-action\n)\n\n## About ##\n\nPost notification to fediverse social web when code is updated.\nCurrently it was tested with Mastodon service,\nSupport for other ActivityPub services\nlike pleroma or GNUsocial is also welcome.\n\n![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Fediverse_logo_proposal.svg/330px-Fediverse_logo_proposal.svg.png)\n\n## Usage ##\n\n### Join fediverse ###\n\n- If you didn't before register to an instance of mastodon network:\n  - example: \u003chttps://mastodon.social\u003e\n- Once registered and logged, go to settings page to create an application:\n  - example: \u003chttps://mastodon.social/settings/profile\u003e\n- Go to \"Settings\" / \"Development\" / \"New Application\"\n  - example: \u003chttps://mastodon.social/settings/applications/\u003e\n  - example: \u003chttps://mastodon.social/settings/applications/new\u003e\n- Fill application name: mastodon-lite (or anything else),\n  ignore  other fields\n- Submit to generate application\n  - example: \u003chttps://mastodon.social/settings/applications\u003e\n- Go to application details and note \"access token\"\n  - example: \"B4DC0D-DeadBeef1BadCode-1TODO-1TODOtodoTODO\"\n\n### Add secret to github ###\n\n- From your project page:\n  - \u003chttps://github.com/${org}/${project}/settings/secrets\u003e\n- Add new secret with name \"MASTODON_ACCESS_TOKEN\"\n  and the previous  encoded string as value.\n\n### Commit config file ###\n\nTo enable this \"action\" in any of your github hosted project,\na configuration file should be located in \".github/workflow/\" subdir, just like:\n\n- \u003chttps://raw.githubusercontent.com/rzr/fediverse-action/master/.github/workflows/fediverse-action.yml\u003e\n\nBack to your project you can create \".github/workflows/fediverse-action.yml\"\nfile by applying this patch from shell:\n\n``` {.bash org-language=\"sh\"}\ncurl \"https://github.com/rzr/color-sensor-js/commit/867de15f.patch\"  | git am\ngit push\n```\n\nOr pick it from:\n\n- \u003chttps://github.com/rzr/fediverse-action/commit/40dc4bccfb3d8b6efd26327a412b73bbe2f7113d.patch\u003e\n\nThen check action's status on github,\na default message should then appears on\na \"mastodon.social\" profile, something like:\n\n- \u003chttps://mastodon.social/@tizenhelper/103781386501900694\u003e\n- \u003chttps://mastodon.social/tags/FediVerseAction\u003e\n\nNote default \"mastodon.social\" server will be used\nunless you override a host value:\n\n``` {.yml}\n        with:\n          access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}\n          host: \"social.bau-ha.us\" # custom host if not \"mastodon.social\" (default)\n```\n\nExample:\n\n- \u003chttps://github.com/Tarnyko/test-mastodon/commit/414d3191c5a394caac5ed67fe40de24caf063498\u003e\n\nDefault message will link to your repo URL.\n\n### Customize commit message ###\n\nOnce posting is verified,\nthen apply this next change to overload default message\nwith your project's latest git commit message.\n\n```sh\ncurl \"https://github.com/rzr/color-sensor-js/commit/cb4512fe.patch\" | git am\ngit push\n```\n\n- \u003chttps://github.com/abandonware/bmp085-sensor/commit/5701e5c3\u003e\n\n``` {.yml}\n(...)\n    steps:\n      - uses: actions/checkout@v1\n      - id: log\n        run: echo \"::set-output name=message::$(git log --no-merges -1 --oneline)\"\n      - uses: rzr/fediverse-action@master\n        with:\n          access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}\n          message: \"https://github.com/${{ github.repository }}/commit/${{ steps.log.outputs.message }} ~ #FediVerseAction\"\n```\n\nFeel free to edit \"message\" input with anything you prefer.\n\nExamples:\n\n- \u003chttps://github.com/abandonware/bmp085-sensor/commit/5701e5c3e0773fedc65b5477a45005783a30cb63\u003e\n- \u003chttps://mastodon.social/@tizenhelper/103810982954496420\u003e\n\nIf you need to be less verbose you can filter on\n\"Release x.y.z\" commit messages only:\n\n- \u003chttps://github.com/abandonware/node-i2c/commit/1837c8111e5d5bb609824a5981716cbfc28a05cd.patch\u003e\n- \u003chttps://github.com/abandonware/node-i2c/commit/16ce8ec0796efa723079a5103791e57cfe13652b\u003e\n- \u003chttps://github.com/rzr/pinball-table-hurd/commit/53f85ccab02c9820e34edbc937c8f358c9b8ec83\u003e\n\nAs a reference, config file should look like this:\n\n``` {.yml}\n# YAML\n---\nname: fediverse-action\non: [push]\njobs:\n  post:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n      - id: log\n        run: echo \"::set-output name=message::$(git log --no-merges -1 --oneline)\"\n      - if: \"contains(steps.log.outputs.message, 'Release ')\"\n        uses: rzr/fediverse-action@master\n        with:\n          access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}\n          message: \"https://github.com/${{ github.repository }}# ${{ steps.log.outputs.message }} ~ #FediVerseAction\"\n          host: \"mamot.fr\" # If not using default \"mastodon.social\"\n```\n\nYou can get inspired from this reference config file:\n\n- \u003chttps://raw.githubusercontent.com/rzr/mastodon-lite/master/.github/workflows/fediverse-action.yml\u003e\n\nFeel free to also pin version to latest release (-\"@master\" +\"@vX.Y.Z\"):\n\n- \u003chttps://github.com/marketplace/actions/fediverse-action\u003e\n\n## Notes ##\n\nIf you want to crosspost to other social network, it's possible using IFTT:\n\n- \u003chttps://twitter.com/search?q=%23FediVerseAction\u003e\n- \u003chttps://ifttt.com/applets/K6FLEawj-mastodon-twitter-exclude-mentions\u003e\n- \u003chttps://help.twitter.com/en/using-twitter/how-to-tweet?lang=browser#source-labels\u003e\n- \u003chttps://nitter.net/search?q=%23FediVerseAction\u003e\n\n## Community ##\n\nProjects using fediverse-action:\n\n- \u003chttps://github.com/rzr/fediverse-action/blob/master/.github/workflows/fediverse-action.yml\u003e\n  - \u003chttps://mastodon.social/@tizenhelper/103781386501900694\u003e\n\nFeel free to add your config file and relative post to this list:\n\n- \u003chttps://github.com/abandonware/node-eddystone-beacon-scanner/blob/master/.github/workflows/fediverse-action.yml\u003e\n  - \u003chttps://mastodon.social/@tizenhelper/103781987207513944\u003e\n- \u003chttps://github.com/rzr/iotjs-async/blob/master/.github/workflows/fediverse-action.yml\u003e\n  - \u003chttps://mastodon.social/@tizenhelper/103775679164369666\u003e\n- \u003chttps://github.com/rzr/mastodon-lite/blob/master/.github/workflows/fediverse-action.yml\u003e\n  - \u003chttps://mastodon.social/@rzr/103771440856951663\u003e\n- \u003chttps://github.com/rzr/twins/blob/master/.github/workflows/fediverse-action.yml\u003e\n  - \u003chttps://mastodon.social/@rzr/103781317496412496\u003e\n\n## Resources ##\n\n- \u003chttps://github.com/marketplace/actions/fediverse-action/\u003e\n- \u003chttps://github.com/rzr/mastodon-lite/\u003e\n- \u003chttps://help.github.com/en/actions/building-actions/creating-a-javascript-action\u003e\n- \u003chttps://github.com/rzr/webthing-iotjs/wiki/Social\u003e\n- \u003chttps://en.wikipedia.org/wiki/Fediverse\u003e\n- \u003chttps://github.com/features/actions\u003e\n- \u003chttps://www.npmjs.com/package/fediverse-action\u003e\n- \u003chttps://github.community/t5/GitHub-Actions/bd-p/actions\u003e\n- \u003chttps://lab.github.com/githubtraining/github-actions:-continuous-delivery\u003e\n- \u003chttps://mastodon.social/@rzr/103772277257320621#fediverse-action\u003e\n- \u003chttps://github.com/rzr/mastodon-lite/blob/master/.github/workflows/fediverse-action.yml\u003e\n- \u003chttps://mastodon.social/@rzr/103772576183594794#mastodon-lite\u003e\n- \u003chttps://www.reddit.com/r/fediverse/comments/fek66r/fediverseaction_post_to_fediverse_from_github/\u003e\n- \u003chttps://www.linkedin.com/feed/update/urn:li:activity:6641985314296598528\u003e\n\n[![fediverse-action](\nhttps://pbs.twimg.com/media/ESZE74mXkAEojrH?format=jpg\u0026name=medium#./file/githubhackaton.jpg\n)](\nhttps://twitter.com/RzrFreeFr/status/1235750998364352512#fediverse-action#\n\"fediverse-action\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzr%2Ffediverse-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzr%2Ffediverse-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzr%2Ffediverse-action/lists"}