Pygithub: GitHub Actions support

Created on 29 Jan 2020  ·  24Comments  ·  Source: PyGithub/PyGithub

Docs here: https://developer.github.com/v3/actions/

Are there plans to add support for GitHub Actions? The API is still in beta, but I would suspect that it won't change much in the future.

feature request

Most helpful comment

I won't split this issue up into six, but documenting progress as I get to them.

  • [ ] Artifacts
  • [x] Secrets
  • [ ] Org secrets
  • [x] Self-hosted runners
  • [x] Workflows
  • [ ] Workflow jobs
  • [x] Workflow runs

All 24 comments

Isn't Actions still in beta?

Looks like the beta ended in November [source]. The API is definitely still in beta though.

Pin this issue to get more attention

I won't split this issue up into six, but documenting progress as I get to them.

  • [ ] Artifacts
  • [x] Secrets
  • [ ] Org secrets
  • [x] Self-hosted runners
  • [x] Workflows
  • [ ] Workflow jobs
  • [x] Workflow runs

1456 and #1457

Are there any plans, when the Actions API will be supported?

Not yet, but we are open to any granular PR to implement the checklist items ^

I have a local branch for Workflows, it requires some polish, tests and more importantly some free time.

I can take Secrets when I have some time.

Is somebody already working on Artifacts ? Otherwise I can take it

@3wnbr1 Feel free

I have a local branch that needs some more love for Workflow Runs.

@3wnbr1 what is the status of your artifacts?

I have list of artifacts and downloading artifact working but I have no tests and also my implementation need modification.

@s-t-e-v-e-n-k WorkflowRun seems to be missing workflow_id attribute: https://docs.github.com/en/rest/reference/actions#list-workflow-runs-for-a-repository

Another small thing: repo.get_workflow(id_or_name) fails if the id is int:

    "GET", self.url + "/actions/workflows/" + id_or_name
TypeError: can only concatenate str (not "int") to str

I've added support for repo.get_workflow_runs parameters in PR #1682 and limited support for runners in #1684

@JacekPliszka & @3wnbr1 What's the status of the artifacts API? I'd be happy to help out, if there's something I can do to push this forward :-)

@YannickJadoul I've proposed some reduction of boilerplatte and I pushed it to my branch https://github.com/JacekPliszka/PyGithub/tree/meta_artifacts but discussion was slow and I got involved in other work and the project I need it for was put on hold.

So you may want to use something from my branch or write it in the current style anew.

@JacekPliszka, OK, great, thanks! :-) Where's this discussion you mention? Was that a public one, or just internally?

Are repo or org secrets being handled in here or elsewhere?

Is secret deletion on the road map? I see that creating/updating secrets is already added (and I think it was being tracked here from what I can tell), but I don't see any interface to the delete API (as seen here )

@YannickJadoul here https://github.com/PyGithub/PyGithub/issues/1556 - the project I needed that for was put on hold so I lost motivation for rewriting what I did

@JacekPliszka, thanks. I had actually found it, back then, and created #1734, recycling part of your original work on this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

242jainabhi picture 242jainabhi  ·  15Comments

thefunkjunky picture thefunkjunky  ·  11Comments

jayfk picture jayfk  ·  11Comments

sfdye picture sfdye  ·  19Comments

RitamDey picture RitamDey  ·  13Comments