The bot automating the publiccodeyml organization procedures implemented as a GitHub action.
The bot is instructed to perform tasks using its tag (fe. @yaml-9000) in issues and PR comments followed by the command.
-
@yaml-9000 vote-start
: Open the polls for the voting procedure on the current proposal -
@yaml-9000 vote-end
: End the voting procedure, closing the pools and announcing the results. -
@yaml-9000 breaking-change
: Mark the proposal as a breaking change to the Standard.Aliases:
breaking
,major
-
@yaml-9000 minor-change
: Mark the proposal as a minor change to the StandardAliases:
minor
-
@yaml-9000 bugfix-change
: Mark the proposal as a bugfix change to the StandardAliases:
bugfix
,patch
-
@yaml-9000 deprecation-change
: Mark the proposal as a change deprecating something in the StandardAliases:
deprecation
-
@yaml-9000 national-section USERNAME
: Mark the proposal as a change in the national section (doc).It needs the
USERNAME
of the Steering Commitee Member Steering representing that Country as an argument (fe.@yaml-9000 national-section mickey
).Aliases:
national
,country-section
,country
,country-specific
Use the following inputs in the GitHub action via with
:
-
username
[Optional] - GitHub repository to fetch (defaultbot
) -
github_token
[Optional] - GitHub token to interact with GitHub API (default${{ github.token }}
).If the environment
GITHUB_TOKEN
variable is set, it takes precedence over the input.
Include this action in your repo by creating
.github/workflows/publiccodeyml-bot.yml
and edit where needed:
on:
issue_comment:
types: [created]
jobs:
examplejob:
runs-on: ubuntu-latest
steps:
- uses: publiccodeyml/bot@v1
with:
username: yaml-9000
Install dependencies
npm i
Build the action
npm run build
Contributing is always appreciated. Feel free to open issues, fork or submit a Pull Request. If you want to know more about how to add new fields, check out CONTRIBUTING.md.
This software is maintained by the Developers Italia team.
© 2021 Dipartimento per la Trasformazione Digitale - Presidenza del Consiglio dei Ministri
Licensed under the EUPL. The version control system provides attribution for specific lines of code.
This GitHub Action is published in the Github Marketplace. As such, you can find the Terms of Service here. Also, here you can find the GitHub Marketplace Developer Agreement.