BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AllanBowe
Barite | Level 11

I don't see a function for it, and wondered if there was something undocumented?

Or a clever use of something else?  Modifying the .git folder perhaps?

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
1 ACCEPTED SOLUTION

Accepted Solutions
dazimm
SAS Employee

Hey Allan,

 

We currently do not have a tag function implemented for SAS. This is definitely something we can address. I'll open a project management ticket for SAS and SASStudio to get this on the books. We have thought about implementing this in the past but we just haven't gotten around to it.

 

A workaround would be to create the tag files manually. A tag file is just a pointer file to a commit. They reside in <localrepo>/.git/refs/tags. Name the file what you would want your tag to be with no extension. The contents of the file would be the commit ID of the target commit you want to tag. The problem with this workaround is SASStudio currently does not have an implementation for tag badges in the commit history view.

 

Another thing you could do is to use a branch as a tag. If you create a branch at the target commit, it will act just like a tag as long as you do not commit anything to it. For others to see it, you will need to check out the branch and push it to the remote repository. This workaround will allow you to see your "tags" in SASStudio.

 

Danny

View solution in original post

2 REPLIES 2
dazimm
SAS Employee

Hey Allan,

 

We currently do not have a tag function implemented for SAS. This is definitely something we can address. I'll open a project management ticket for SAS and SASStudio to get this on the books. We have thought about implementing this in the past but we just haven't gotten around to it.

 

A workaround would be to create the tag files manually. A tag file is just a pointer file to a commit. They reside in <localrepo>/.git/refs/tags. Name the file what you would want your tag to be with no extension. The contents of the file would be the commit ID of the target commit you want to tag. The problem with this workaround is SASStudio currently does not have an implementation for tag badges in the commit history view.

 

Another thing you could do is to use a branch as a tag. If you create a branch at the target commit, it will act just like a tag as long as you do not commit anything to it. For others to see it, you will need to check out the branch and push it to the remote repository. This workaround will allow you to see your "tags" in SASStudio.

 

Danny

AllanBowe
Barite | Level 11

Thanks Danny!  Those are nice hacks.

In the end I actually used an 'out of the box' solution - I used SAS to create a `.github/workflows/release.yml` which triggered an action to create the tag as part of the push to main.

 

The source code is all here:  https://github.com/sasjs/core/blob/main/sasjs/utils/create_sas_package.sas#L177

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 868 views
  • 3 likes
  • 2 in conversation