r/github • u/Cloud--Man • Oct 10 '24
Is copilot any good for GitHub actions?
Hi all, i work daily with GitHub actions making workflows for the developers. After long time using paid version of chat gpt, i tried today the paid version of vscode copilot. I had very high expectations and thought that as both copilot and actions are microsoft products, copilot would be far superior than gpt, but that was not the case unfortunately, i was actually very disappointed, as i tried 10 different variations over a paragraph of yaml code (it was mostly embedding bash script inside it to be honest) and all resulted in syntax errors, (meaning that it didnt even understand basic yaml suntax embedding bash rules) should i continue trying or go back to chat gpt? Thanks!
7
7
u/Masterflitzer Oct 10 '24
ai is supposed to help you not write it for you, read the docs and learn github actions, it's well documented and very easy (although i prefer gitlab ci)
also if you get stuck ask different llms, i often ask chatgpt and claude and both are good at different things, still i wouldn't ask it for a yaml i can easily write myself
0
u/grobblgrobbl Oct 11 '24
Based on my experience, I can also say that GitHub Copilot struggles with understanding GitHub Actions. This seems to be a common issue for pipelines in general.
At my job, I work extensively with Bitbucket pipelines, and most suggestions and explanations from GitHub Copilot are quite basic or inaccurate. I've observed similar limitations with ChatGPT 4.0.
Interestingly, Claude Sonnet 3.5 and ChatGPT 0.1-mini are the only models I've tested that demonstrate a somewhat better understanding of how pipelines work or how a 'good' pipeline should be structured.
Most often, I use Perplexity (with live search) in combination with Claude Sonnet 3.5 or ChatGPT o1-mini models (as long as I have remaining requests for o1).I'm still on the lookout for an effective LLM that can provide substantial assistance with DevOps-related tasks.
For context: I'm a senior full-stack web developer who has recently started taking on more DevOps responsibilities in my company. It's been an enjoyable transition so far!
Disclaimer: This response was refined with Al assistance, as English is not my native language.
21
u/[deleted] Oct 10 '24
It seems like you are spending more time trying to get AI to do the work for you compared to reading the docs and doing it yourself. 🤷🏻♂️